Class StuckInBodyLayer<M extends PlayerModel>
java.lang.Object
net.minecraft.client.renderer.entity.layers.RenderLayer<PlayerRenderState,M>
net.minecraft.client.renderer.entity.layers.StuckInBodyLayer<M>
- Direct Known Subclasses:
ArrowLayer,BeeStingerLayer
public abstract class StuckInBodyLayer<M extends PlayerModel>
extends RenderLayer<PlayerRenderState,M>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Modelprivate final StuckInBodyLayer.PlacementStyleprivate final ResourceLocation -
Constructor Summary
ConstructorsConstructorDescriptionStuckInBodyLayer(LivingEntityRenderer<?, PlayerRenderState, M> pRenderer, Model pModel, ResourceLocation pTexture, StuckInBodyLayer.PlacementStyle pPlacementStyle) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract intnumStuck(PlayerRenderState pRenderState) voidrender(PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, PlayerRenderState pRenderState, float pYRot, float pXRot) private voidrenderStuckItem(PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, float pX, float pY, float pZ) private static floatsnapToFace(float pValue) Methods inherited from class net.minecraft.client.renderer.entity.layers.RenderLayer
coloredCutoutModelCopyLayerRender, getParentModel, renderColoredCutoutModel
-
Field Details
-
model
-
texture
-
placementStyle
-
-
Constructor Details
-
StuckInBodyLayer
public StuckInBodyLayer(LivingEntityRenderer<?, PlayerRenderState, M> pRenderer, Model pModel, ResourceLocation pTexture, StuckInBodyLayer.PlacementStyle pPlacementStyle)
-
-
Method Details
-
numStuck
-
renderStuckItem
private void renderStuckItem(PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, float pX, float pY, float pZ) -
render
public void render(PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, PlayerRenderState pRenderState, float pYRot, float pXRot) - Specified by:
renderin classRenderLayer<PlayerRenderState,M extends PlayerModel>
-
snapToFace
private static float snapToFace(float pValue)
-