Class ItemRenderer
java.lang.Object
net.minecraft.client.renderer.entity.ItemRenderer
- All Implemented Interfaces:
PreparableReloadListener,ResourceManagerReloadListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
PreparableReloadListener.PreparationBarrier -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockEntityWithoutLevelRendererstatic final floatstatic final floatstatic final floatstatic final ResourceLocationstatic final ResourceLocationstatic final intstatic final intstatic final intprivate final ItemColorsprivate final ItemModelShaperprivate final Minecraftstatic final ModelResourceLocationprivate static final ModelResourceLocationprivate final TextureManagerstatic final ModelResourceLocationprivate static final ModelResourceLocation -
Constructor Summary
ConstructorsConstructorDescriptionItemRenderer(Minecraft pMinecraft, TextureManager pTextureManager, ModelManager pModelManager, ItemColors pItemColors, BlockEntityWithoutLevelRenderer pBlockEntityRenderer) -
Method Summary
Modifier and TypeMethodDescriptionstatic VertexConsumergetArmorFoilBuffer(MultiBufferSource pBufferSource, RenderType pRenderType, boolean pHasFoil) static VertexConsumergetCompassFoilBuffer(MultiBufferSource pBufferSource, RenderType pRenderType, PoseStack.Pose pPose) static VertexConsumergetFoilBuffer(MultiBufferSource pBufferSource, RenderType pRenderType, boolean pIsItem, boolean pGlint) static VertexConsumergetFoilBufferDirect(MultiBufferSource pBufferSource, RenderType pRenderType, boolean pNoEntity, boolean pWithGlint) getModel(ItemStack pStack, Level pLevel, LivingEntity pEntity, int pSeed) private static booleanhasAnimatedTexture(ItemStack pStack) voidonResourceManagerReload(ResourceManager pResourceManager) voidrender(ItemStack pItemStack, ItemDisplayContext pDisplayContext, boolean pLeftHand, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pCombinedLight, int pCombinedOverlay, BakedModel pModel) voidrenderModelLists(BakedModel pModel, ItemStack pStack, int pCombinedLight, int pCombinedOverlay, PoseStack pPoseStack, VertexConsumer pBuffer) voidrenderQuadList(PoseStack pPoseStack, VertexConsumer pBuffer, List<BakedQuad> pQuads, ItemStack pItemStack, int pCombinedLight, int pCombinedOverlay) voidrenderStatic(LivingEntity pEntity, ItemStack pItemStack, ItemDisplayContext pDiplayContext, boolean pLeftHand, PoseStack pPoseStack, MultiBufferSource pBufferSource, Level pLevel, int pCombinedLight, int pCombinedOverlay, int pSeed) voidrenderStatic(ItemStack pStack, ItemDisplayContext pDisplayContext, int pCombinedLight, int pCombinedOverlay, PoseStack pPoseStack, MultiBufferSource pBufferSource, Level pLevel, int pSeed) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
getNameMethods inherited from interface net.minecraft.server.packs.resources.ResourceManagerReloadListener
reload
-
Field Details
-
ENCHANTED_GLINT_ENTITY
-
ENCHANTED_GLINT_ITEM
-
IGNORED
-
GUI_SLOT_CENTER_X
public static final int GUI_SLOT_CENTER_X- See Also:
-
GUI_SLOT_CENTER_Y
public static final int GUI_SLOT_CENTER_Y- See Also:
-
ITEM_COUNT_BLIT_OFFSET
public static final int ITEM_COUNT_BLIT_OFFSET- See Also:
-
COMPASS_FOIL_UI_SCALE
public static final float COMPASS_FOIL_UI_SCALE- See Also:
-
COMPASS_FOIL_FIRST_PERSON_SCALE
public static final float COMPASS_FOIL_FIRST_PERSON_SCALE- See Also:
-
COMPASS_FOIL_TEXTURE_SCALE
public static final float COMPASS_FOIL_TEXTURE_SCALE- See Also:
-
TRIDENT_MODEL
-
TRIDENT_IN_HAND_MODEL
-
SPYGLASS_MODEL
-
SPYGLASS_IN_HAND_MODEL
-
minecraft
-
itemModelShaper
-
textureManager
-
itemColors
-
blockEntityRenderer
-
-
Constructor Details
-
ItemRenderer
public ItemRenderer(Minecraft pMinecraft, TextureManager pTextureManager, ModelManager pModelManager, ItemColors pItemColors, BlockEntityWithoutLevelRenderer pBlockEntityRenderer)
-
-
Method Details
-
getItemModelShaper
-
renderModelLists
public void renderModelLists(BakedModel pModel, ItemStack pStack, int pCombinedLight, int pCombinedOverlay, PoseStack pPoseStack, VertexConsumer pBuffer) -
render
public void render(ItemStack pItemStack, ItemDisplayContext pDisplayContext, boolean pLeftHand, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pCombinedLight, int pCombinedOverlay, BakedModel pModel) -
hasAnimatedTexture
-
getArmorFoilBuffer
public static VertexConsumer getArmorFoilBuffer(MultiBufferSource pBufferSource, RenderType pRenderType, boolean pHasFoil) -
getCompassFoilBuffer
public static VertexConsumer getCompassFoilBuffer(MultiBufferSource pBufferSource, RenderType pRenderType, PoseStack.Pose pPose) -
getFoilBuffer
public static VertexConsumer getFoilBuffer(MultiBufferSource pBufferSource, RenderType pRenderType, boolean pIsItem, boolean pGlint) -
getFoilBufferDirect
public static VertexConsumer getFoilBufferDirect(MultiBufferSource pBufferSource, RenderType pRenderType, boolean pNoEntity, boolean pWithGlint) -
renderQuadList
public void renderQuadList(PoseStack pPoseStack, VertexConsumer pBuffer, List<BakedQuad> pQuads, ItemStack pItemStack, int pCombinedLight, int pCombinedOverlay) -
getModel
public BakedModel getModel(ItemStack pStack, @Nullable Level pLevel, @Nullable LivingEntity pEntity, int pSeed) -
renderStatic
public void renderStatic(ItemStack pStack, ItemDisplayContext pDisplayContext, int pCombinedLight, int pCombinedOverlay, PoseStack pPoseStack, MultiBufferSource pBufferSource, @Nullable Level pLevel, int pSeed) -
renderStatic
public void renderStatic(@Nullable LivingEntity pEntity, ItemStack pItemStack, ItemDisplayContext pDiplayContext, boolean pLeftHand, PoseStack pPoseStack, MultiBufferSource pBufferSource, @Nullable Level pLevel, int pCombinedLight, int pCombinedOverlay, int pSeed) -
onResourceManagerReload
- Specified by:
onResourceManagerReloadin interfaceResourceManagerReloadListener
-
getBlockEntityRenderer
-