public class ItemRenderer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private float |
equippedProgressMainHand |
private float |
equippedProgressOffHand |
private RenderItem |
itemRenderer |
private ItemStack |
itemStackMainHand |
private ItemStack |
itemStackOffHand |
private Minecraft |
mc |
private float |
prevEquippedProgressMainHand |
private float |
prevEquippedProgressOffHand |
private RenderManager |
renderManager |
private static ResourceLocation |
RES_MAP_BACKGROUND |
private static ResourceLocation |
RES_UNDERWATER_OVERLAY |
Constructor and Description |
---|
ItemRenderer(Minecraft mcIn) |
Modifier and Type | Method and Description |
---|---|
private float |
getMapAngleFromPitch(float pitch) |
private void |
renderArm(EnumHandSide p_187455_1_) |
private void |
renderArmFirstPerson(float p_187456_1_,
float p_187456_2_,
EnumHandSide p_187456_3_) |
private void |
renderArms() |
private void |
renderBlockInHand(TextureAtlasSprite sprite) |
private void |
renderFireInFirstPerson() |
void |
renderItem(EntityLivingBase entityIn,
ItemStack heldStack,
ItemCameraTransforms.TransformType transform) |
void |
renderItemInFirstPerson(AbstractClientPlayer player,
float p_187457_2_,
float p_187457_3_,
EnumHand hand,
float p_187457_5_,
ItemStack stack,
float p_187457_7_) |
void |
renderItemInFirstPerson(float partialTicks) |
void |
renderItemSide(EntityLivingBase entitylivingbaseIn,
ItemStack heldStack,
ItemCameraTransforms.TransformType transform,
boolean leftHanded) |
private void |
renderMapFirstPerson(float p_187463_1_,
float p_187463_2_,
float p_187463_3_) |
private void |
renderMapFirstPerson(ItemStack stack) |
private void |
renderMapFirstPersonSide(float p_187465_1_,
EnumHandSide hand,
float p_187465_3_,
ItemStack stack) |
void |
renderOverlays(float partialTicks) |
private void |
renderWaterOverlayTexture(float partialTicks) |
void |
resetEquippedProgress(EnumHand hand) |
private void |
rotateArm(float p_187458_1_) |
private void |
rotateArroundXAndY(float angle,
float angleY) |
private void |
setLightmap() |
private void |
transformEatFirstPerson(float p_187454_1_,
EnumHandSide hand,
ItemStack stack) |
private void |
transformFirstPerson(EnumHandSide hand,
float p_187453_2_) |
private void |
transformSideFirstPerson(EnumHandSide hand,
float p_187459_2_) |
void |
updateEquippedItem() |
private static final ResourceLocation RES_MAP_BACKGROUND
private static final ResourceLocation RES_UNDERWATER_OVERLAY
private final Minecraft mc
private ItemStack itemStackMainHand
private ItemStack itemStackOffHand
private float equippedProgressMainHand
private float prevEquippedProgressMainHand
private float equippedProgressOffHand
private float prevEquippedProgressOffHand
private final RenderManager renderManager
private final RenderItem itemRenderer
public ItemRenderer(Minecraft mcIn)
public void renderItem(EntityLivingBase entityIn, ItemStack heldStack, ItemCameraTransforms.TransformType transform)
public void renderItemSide(EntityLivingBase entitylivingbaseIn, ItemStack heldStack, ItemCameraTransforms.TransformType transform, boolean leftHanded)
private void rotateArroundXAndY(float angle, float angleY)
private void setLightmap()
private void rotateArm(float p_187458_1_)
private float getMapAngleFromPitch(float pitch)
private void renderArms()
private void renderArm(EnumHandSide p_187455_1_)
private void renderMapFirstPersonSide(float p_187465_1_, EnumHandSide hand, float p_187465_3_, ItemStack stack)
private void renderMapFirstPerson(float p_187463_1_, float p_187463_2_, float p_187463_3_)
private void renderMapFirstPerson(ItemStack stack)
private void renderArmFirstPerson(float p_187456_1_, float p_187456_2_, EnumHandSide p_187456_3_)
private void transformEatFirstPerson(float p_187454_1_, EnumHandSide hand, ItemStack stack)
private void transformFirstPerson(EnumHandSide hand, float p_187453_2_)
private void transformSideFirstPerson(EnumHandSide hand, float p_187459_2_)
public void renderItemInFirstPerson(float partialTicks)
public void renderItemInFirstPerson(AbstractClientPlayer player, float p_187457_2_, float p_187457_3_, EnumHand hand, float p_187457_5_, ItemStack stack, float p_187457_7_)
public void renderOverlays(float partialTicks)
private void renderBlockInHand(TextureAtlasSprite sprite)
private void renderWaterOverlayTexture(float partialTicks)
private void renderFireInFirstPerson()
public void updateEquippedItem()
public void resetEquippedProgress(EnumHand hand)