类 ItemRenderer
java.lang.Object
net.minecraft.client.renderer.entity.ItemRenderer
-
嵌套类概要
从接口继承的嵌套类/接口 net.minecraft.server.packs.resources.PreparableReloadListener
PreparableReloadListener.PreparationBarrier
-
字段概要
字段修饰符和类型字段说明private final BlockEntityWithoutLevelRenderer
static final float
static final float
static final float
static final ResourceLocation
static final ResourceLocation
static final int
static final int
static final int
private final ItemColors
private final ItemModelShaper
private final Minecraft
static final ModelResourceLocation
private static final ModelResourceLocation
private final TextureManager
static final ModelResourceLocation
private static final ModelResourceLocation
-
构造器概要
构造器构造器说明ItemRenderer
(Minecraft pMinecraft, TextureManager pTextureManager, ModelManager pModelManager, ItemColors pItemColors, BlockEntityWithoutLevelRenderer pBlockEntityRenderer) -
方法概要
修饰符和类型方法说明static VertexConsumer
getArmorFoilBuffer
(MultiBufferSource pBuffer, RenderType pRenderType, boolean pNoEntity, boolean pWithGlint) static VertexConsumer
getCompassFoilBuffer
(MultiBufferSource pBuffer, RenderType pRenderType, PoseStack.Pose pMatrixEntry) static VertexConsumer
getCompassFoilBufferDirect
(MultiBufferSource pBuffer, RenderType pRenderType, PoseStack.Pose pMatrixEntry) static VertexConsumer
getFoilBuffer
(MultiBufferSource pBuffer, RenderType pRenderType, boolean pIsItem, boolean pGlint) static VertexConsumer
getFoilBufferDirect
(MultiBufferSource pBuffer, RenderType pRenderType, boolean pNoEntity, boolean pWithGlint) getModel
(ItemStack pStack, Level pLevel, LivingEntity pEntity, int pSeed) private static boolean
hasAnimatedTexture
(ItemStack pStack) void
onResourceManagerReload
(ResourceManager pResourceManager) void
render
(ItemStack pItemStack, ItemDisplayContext pDisplayContext, boolean pLeftHand, PoseStack pPoseStack, MultiBufferSource pBuffer, int pCombinedLight, int pCombinedOverlay, BakedModel pModel) void
renderModelLists
(BakedModel pModel, ItemStack pStack, int pCombinedLight, int pCombinedOverlay, PoseStack pMatrixStack, VertexConsumer pBuffer) void
renderQuadList
(PoseStack pPoseStack, VertexConsumer pBuffer, List<BakedQuad> pQuads, ItemStack pItemStack, int pCombinedLight, int pCombinedOverlay) void
renderStatic
(LivingEntity pEntity, ItemStack pItemStack, ItemDisplayContext pDiplayContext, boolean pLeftHand, PoseStack pPoseStack, MultiBufferSource pBuffer, Level pLevel, int pCombinedLight, int pCombinedOverlay, int pSeed) void
renderStatic
(ItemStack pStack, ItemDisplayContext pDisplayContext, int pCombinedLight, int pCombinedOverlay, PoseStack pPoseStack, MultiBufferSource pBuffer, Level pLevel, int pSeed) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.server.packs.resources.PreparableReloadListener
getName
从接口继承的方法 net.minecraft.server.packs.resources.ResourceManagerReloadListener
reload
-
字段详细资料
-
ENCHANTED_GLINT_ENTITY
-
ENCHANTED_GLINT_ITEM
-
IGNORED
-
GUI_SLOT_CENTER_X
public static final int GUI_SLOT_CENTER_X- 另请参阅:
-
GUI_SLOT_CENTER_Y
public static final int GUI_SLOT_CENTER_Y- 另请参阅:
-
ITEM_COUNT_BLIT_OFFSET
public static final int ITEM_COUNT_BLIT_OFFSET- 另请参阅:
-
COMPASS_FOIL_UI_SCALE
public static final float COMPASS_FOIL_UI_SCALE- 另请参阅:
-
COMPASS_FOIL_FIRST_PERSON_SCALE
public static final float COMPASS_FOIL_FIRST_PERSON_SCALE- 另请参阅:
-
COMPASS_FOIL_TEXTURE_SCALE
public static final float COMPASS_FOIL_TEXTURE_SCALE- 另请参阅:
-
TRIDENT_MODEL
-
TRIDENT_IN_HAND_MODEL
-
SPYGLASS_MODEL
-
SPYGLASS_IN_HAND_MODEL
-
minecraft
-
itemModelShaper
-
textureManager
-
itemColors
-
blockEntityRenderer
-
-
构造器详细资料
-
ItemRenderer
public ItemRenderer(Minecraft pMinecraft, TextureManager pTextureManager, ModelManager pModelManager, ItemColors pItemColors, BlockEntityWithoutLevelRenderer pBlockEntityRenderer)
-
-
方法详细资料
-
getItemModelShaper
-
renderModelLists
public void renderModelLists(BakedModel pModel, ItemStack pStack, int pCombinedLight, int pCombinedOverlay, PoseStack pMatrixStack, VertexConsumer pBuffer) -
render
public void render(ItemStack pItemStack, ItemDisplayContext pDisplayContext, boolean pLeftHand, PoseStack pPoseStack, MultiBufferSource pBuffer, int pCombinedLight, int pCombinedOverlay, BakedModel pModel) -
hasAnimatedTexture
-
getArmorFoilBuffer
public static VertexConsumer getArmorFoilBuffer(MultiBufferSource pBuffer, RenderType pRenderType, boolean pNoEntity, boolean pWithGlint) -
getCompassFoilBuffer
public static VertexConsumer getCompassFoilBuffer(MultiBufferSource pBuffer, RenderType pRenderType, PoseStack.Pose pMatrixEntry) -
getCompassFoilBufferDirect
public static VertexConsumer getCompassFoilBufferDirect(MultiBufferSource pBuffer, RenderType pRenderType, PoseStack.Pose pMatrixEntry) -
getFoilBuffer
public static VertexConsumer getFoilBuffer(MultiBufferSource pBuffer, RenderType pRenderType, boolean pIsItem, boolean pGlint) -
getFoilBufferDirect
public static VertexConsumer getFoilBufferDirect(MultiBufferSource pBuffer, 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 pBuffer, @Nullable Level pLevel, int pSeed) -
renderStatic
public void renderStatic(@Nullable LivingEntity pEntity, ItemStack pItemStack, ItemDisplayContext pDiplayContext, boolean pLeftHand, PoseStack pPoseStack, MultiBufferSource pBuffer, @Nullable Level pLevel, int pCombinedLight, int pCombinedOverlay, int pSeed) -
onResourceManagerReload
-
getBlockEntityRenderer
-