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> renderer, Model model, ResourceLocation texture, StuckInBodyLayer.PlacementStyle placementStyle) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract intnumStuck(PlayerRenderState renderState) voidrender(PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, PlayerRenderState renderState, float yRot, float xRot) private voidrenderStuckItem(PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, float x, float y, float z) private static floatsnapToFace(float value) 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> renderer, Model model, ResourceLocation texture, StuckInBodyLayer.PlacementStyle placementStyle)
-
-
Method Details
-
numStuck
-
renderStuckItem
private void renderStuckItem(PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, float x, float y, float z) -
render
public void render(PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, PlayerRenderState renderState, float yRot, float xRot) - Specified by:
renderin classRenderLayer<PlayerRenderState,M extends PlayerModel>
-
snapToFace
private static float snapToFace(float value)
-