28 lines
1.1 KiB
Java
28 lines
1.1 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package net.minecraft.client.renderer.entity.layers;
|
|
|
|
import net.minecraft.client.model.ArrowModel;
|
|
import net.minecraft.client.model.PlayerModel;
|
|
import net.minecraft.client.model.geom.ModelLayers;
|
|
import net.minecraft.client.renderer.entity.EntityRendererProvider;
|
|
import net.minecraft.client.renderer.entity.LivingEntityRenderer;
|
|
import net.minecraft.client.renderer.entity.TippableArrowRenderer;
|
|
import net.minecraft.client.renderer.entity.layers.StuckInBodyLayer;
|
|
import net.minecraft.client.renderer.entity.state.ArrowRenderState;
|
|
import net.minecraft.client.renderer.entity.state.AvatarRenderState;
|
|
|
|
public class ArrowLayer<M extends PlayerModel>
|
|
extends StuckInBodyLayer<M, ArrowRenderState> {
|
|
public ArrowLayer(LivingEntityRenderer<?, AvatarRenderState, M> renderer, EntityRendererProvider.Context context) {
|
|
super(renderer, new ArrowModel(context.bakeLayer(ModelLayers.ARROW)), new ArrowRenderState(), TippableArrowRenderer.NORMAL_ARROW_LOCATION, StuckInBodyLayer.PlacementStyle.IN_CUBE);
|
|
}
|
|
|
|
@Override
|
|
protected int numStuck(AvatarRenderState state) {
|
|
return state.arrowCount;
|
|
}
|
|
}
|
|
|