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 p_117575_, MultiBufferSource p_117576_, int p_117577_, PlayerRenderState p_363391_, float p_117579_, float p_117580_) 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 p_117575_, MultiBufferSource p_117576_, int p_117577_, PlayerRenderState p_363391_, float p_117579_, float p_117580_) - Specified by:
renderin classRenderLayer<PlayerRenderState,M extends PlayerModel>
-
snapToFace
private static float snapToFace(float value)
-