Class ItemInHandLayer<T extends LivingEntity,M extends EntityModel<T> & ArmedModel>
java.lang.Object
net.minecraft.client.renderer.entity.layers.RenderLayer<T,M>
net.minecraft.client.renderer.entity.layers.ItemInHandLayer<T,M>
- Direct Known Subclasses:
PlayerItemInHandLayer
public class ItemInHandLayer<T extends LivingEntity,M extends EntityModel<T> & ArmedModel>
extends RenderLayer<T,M>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionItemInHandLayer
(RenderLayerParent<T, M> pRenderer, ItemInHandRenderer pItemInHandRenderer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
render
(PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight, T pLivingEntity, float pLimbSwing, float pLimbSwingAmount, float pPartialTicks, float pAgeInTicks, float pNetHeadYaw, float pHeadPitch) protected void
renderArmWithItem
(LivingEntity pLivingEntity, ItemStack pItemStack, ItemDisplayContext pDisplayContext, HumanoidArm pArm, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight) Methods inherited from class net.minecraft.client.renderer.entity.layers.RenderLayer
coloredCutoutModelCopyLayerRender, getParentModel, getTextureLocation, renderColoredCutoutModel
-
Field Details
-
itemInHandRenderer
-
-
Constructor Details
-
ItemInHandLayer
-
-
Method Details
-
render
public void render(PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight, T pLivingEntity, float pLimbSwing, float pLimbSwingAmount, float pPartialTicks, float pAgeInTicks, float pNetHeadYaw, float pHeadPitch) - Specified by:
render
in classRenderLayer<T extends LivingEntity,
M extends EntityModel<T> & ArmedModel>
-
renderArmWithItem
protected void renderArmWithItem(LivingEntity pLivingEntity, ItemStack pItemStack, ItemDisplayContext pDisplayContext, HumanoidArm pArm, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight)
-