Uses of Enum Class
net.minecraft.world.item.ItemDisplayContext
Packages that use ItemDisplayContext
Package
Description
-
Uses of ItemDisplayContext in net.minecraft.client.renderer
Methods in net.minecraft.client.renderer with parameters of type ItemDisplayContextModifier and TypeMethodDescriptionvoid
SpecialBlockModelRenderer.renderByBlock
(Block pBlock, ItemDisplayContext pDisplayContext, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay) void
ItemInHandRenderer.renderItem
(LivingEntity pEntity, ItemStack pStack, ItemDisplayContext pDisplayContext, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight) -
Uses of ItemDisplayContext in net.minecraft.client.renderer.block.model
Fields in net.minecraft.client.renderer.block.model with type parameters of type ItemDisplayContextModifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableMap
<ItemDisplayContext, ItemTransform> ItemTransforms.moddedTransforms
The field for themoddedTransforms
record component.Methods in net.minecraft.client.renderer.block.model that return types with arguments of type ItemDisplayContextModifier and TypeMethodDescriptioncom.google.common.collect.ImmutableMap
<ItemDisplayContext, ItemTransform> ItemTransforms.moddedTransforms()
Returns the value of themoddedTransforms
record component.Methods in net.minecraft.client.renderer.block.model with parameters of type ItemDisplayContextModifier and TypeMethodDescriptionprivate ItemTransform
ItemTransforms.Deserializer.getTransform
(com.google.gson.JsonDeserializationContext p_270385_, com.google.gson.JsonObject p_270436_, ItemDisplayContext p_270100_) ItemTransforms.getTransform
(ItemDisplayContext pDisplayContext) Constructor parameters in net.minecraft.client.renderer.block.model with type arguments of type ItemDisplayContextModifierConstructorDescriptionItemTransforms
(ItemTransform thirdPersonLeftHand, ItemTransform thirdPersonRightHand, ItemTransform firstPersonLeftHand, ItemTransform firstPersonRightHand, ItemTransform head, ItemTransform gui, ItemTransform ground, ItemTransform fixed, com.google.common.collect.ImmutableMap<ItemDisplayContext, ItemTransform> moddedTransforms) Creates an instance of aItemTransforms
record class. -
Uses of ItemDisplayContext in net.minecraft.client.renderer.entity
Methods in net.minecraft.client.renderer.entity with parameters of type ItemDisplayContextModifier and TypeMethodDescriptionstatic void
ItemRenderer.renderItem
(ItemDisplayContext pDisplayContext, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, int[] pTintLayers, List<BakedQuad> pQuads, RenderType pRenderType, ItemStackRenderState.FoilType pFoilType) void
ItemRenderer.renderStatic
(LivingEntity pEntity, ItemStack pStack, ItemDisplayContext pDisplayContext, PoseStack pPoseStack, MultiBufferSource pBufferSource, Level pLevel, int pPackedLight, int pPackedOverlay, int pSeed) void
ItemRenderer.renderStatic
(ItemStack pStack, ItemDisplayContext pDisplayContext, int pPackedLight, int pPackedOverlay, PoseStack pPoseStack, MultiBufferSource pBufferSource, Level pLevel, int pSeed) -
Uses of ItemDisplayContext in net.minecraft.client.renderer.item
Fields in net.minecraft.client.renderer.item declared as ItemDisplayContextModifier and TypeFieldDescription(package private) ItemDisplayContext
ItemStackRenderState.displayContext
Methods in net.minecraft.client.renderer.item with parameters of type ItemDisplayContextModifier and TypeMethodDescriptionvoid
ItemModelResolver.appendItemLayers
(ItemStackRenderState pRenderState, ItemStack pStack, ItemDisplayContext pDisplayContext, Level pLevel, LivingEntity pEntity, int pSeed) void
ModelRenderProperties.applyToLayer
(ItemStackRenderState.LayerRenderState pRenderState, ItemDisplayContext pDisplayContext) void
BlockModelWrapper.update
(ItemStackRenderState pRenderState, ItemStack pStack, ItemModelResolver pItemModelResolver, ItemDisplayContext pDisplayContext, ClientLevel pLevel, LivingEntity pEntity, int pSeed) void
BundleSelectedItemSpecialRenderer.update
(ItemStackRenderState p_387618_, ItemStack p_386990_, ItemModelResolver p_386923_, ItemDisplayContext p_387805_, ClientLevel p_387156_, LivingEntity p_388838_, int p_386711_) void
CompositeModel.update
(ItemStackRenderState pRenderState, ItemStack pStack, ItemModelResolver pItemModelResolver, ItemDisplayContext pDisplayContext, ClientLevel pLevel, LivingEntity pEntity, int pSeed) void
ConditionalItemModel.update
(ItemStackRenderState pRenderState, ItemStack pStack, ItemModelResolver pItemModelResolver, ItemDisplayContext pDisplayContext, ClientLevel pLevel, LivingEntity pEntity, int pSeed) void
EmptyModel.update
(ItemStackRenderState p_390492_, ItemStack p_390354_, ItemModelResolver p_390507_, ItemDisplayContext p_390501_, ClientLevel p_390403_, LivingEntity p_390475_, int p_390493_) void
ItemModel.update
(ItemStackRenderState pRenderState, ItemStack pStack, ItemModelResolver pItemModelResolver, ItemDisplayContext pDisplayContext, ClientLevel pLevel, LivingEntity pEntity, int pSeed) void
MissingItemModel.update
(ItemStackRenderState pRenderState, ItemStack pStack, ItemModelResolver pItemModelResolver, ItemDisplayContext pDisplayContext, ClientLevel pLevel, LivingEntity pEntity, int pSeed) void
RangeSelectItemModel.update
(ItemStackRenderState pRenderState, ItemStack pStack, ItemModelResolver pItemModelResolver, ItemDisplayContext pDisplayContext, ClientLevel pLevel, LivingEntity pEntity, int pSeed) void
SelectItemModel.update
(ItemStackRenderState pRenderState, ItemStack pStack, ItemModelResolver pItemModelResolver, ItemDisplayContext pDisplayContext, ClientLevel pLevel, LivingEntity pEntity, int pSeed) void
SpecialModelWrapper.update
(ItemStackRenderState pRenderState, ItemStack pStack, ItemModelResolver pItemModelResolver, ItemDisplayContext pDisplayContext, ClientLevel pLevel, LivingEntity pEntity, int pSeed) void
ItemModelResolver.updateForLiving
(ItemStackRenderState pRenderState, ItemStack pStack, ItemDisplayContext pDisplayContext, LivingEntity pEntity) void
ItemModelResolver.updateForNonLiving
(ItemStackRenderState pRenderState, ItemStack pStack, ItemDisplayContext pDisplayContext, Entity pEntity) void
ItemModelResolver.updateForTopItem
(ItemStackRenderState pRenderState, ItemStack pStack, ItemDisplayContext pDisplayContext, Level pLevel, LivingEntity pEntity, int pSeed) -
Uses of ItemDisplayContext in net.minecraft.client.renderer.item.properties.conditional
Methods in net.minecraft.client.renderer.item.properties.conditional with parameters of type ItemDisplayContextModifier and TypeMethodDescriptionboolean
Broken.get
(ItemStack p_386887_, ClientLevel p_388949_, LivingEntity p_386628_, int p_387040_, ItemDisplayContext p_389458_) boolean
BundleHasSelectedItem.get
(ItemStack p_387343_, ClientLevel p_386467_, LivingEntity p_387284_, int p_388377_, ItemDisplayContext p_389630_) boolean
ComponentMatches.get
(ItemStack p_399920_, ClientLevel p_399844_, LivingEntity p_399573_, int p_400095_, ItemDisplayContext p_400208_) boolean
CustomModelDataProperty.get
(ItemStack pStack, ClientLevel pLevel, LivingEntity pEntity, int pSeed, ItemDisplayContext pDisplayContext) boolean
Damaged.get
(ItemStack p_388323_, ClientLevel p_388659_, LivingEntity p_386950_, int p_387664_, ItemDisplayContext p_389573_) boolean
ExtendedView.get
(ItemStack p_389501_, ClientLevel p_389409_, LivingEntity p_389583_, int p_389502_, ItemDisplayContext p_389679_) boolean
FishingRodCast.get
(ItemStack p_388347_, ClientLevel p_388341_, LivingEntity p_386847_, int p_386531_, ItemDisplayContext p_389619_) boolean
HasComponent.get
(ItemStack p_388222_, ClientLevel p_386715_, LivingEntity p_386871_, int p_387461_, ItemDisplayContext p_389562_) boolean
IsCarried.get
(ItemStack p_387247_, ClientLevel p_387933_, LivingEntity p_388427_, int p_386998_, ItemDisplayContext p_389534_) boolean
IsKeybindDown.get
(ItemStack p_389550_, ClientLevel p_389440_, LivingEntity p_389703_, int p_389439_, ItemDisplayContext p_389599_) boolean
IsSelected.get
(ItemStack p_387724_, ClientLevel p_387118_, LivingEntity p_387251_, int p_388905_, ItemDisplayContext p_389631_) boolean
IsUsingItem.get
(ItemStack p_386538_, ClientLevel p_386504_, LivingEntity p_388492_, int p_387916_, ItemDisplayContext p_389393_) boolean
IsViewEntity.get
(ItemStack p_390357_, ClientLevel p_390458_, LivingEntity p_390497_, int p_390451_, ItemDisplayContext p_390466_) boolean
ItemModelPropertyTest.get
(ItemStack pStack, ClientLevel pLevel, LivingEntity pEntity, int pSeed, ItemDisplayContext pDisplayContext) -
Uses of ItemDisplayContext in net.minecraft.client.renderer.item.properties.select
Fields in net.minecraft.client.renderer.item.properties.select with type parameters of type ItemDisplayContextModifier and TypeFieldDescriptionstatic final SelectItemModelProperty.Type
<DisplayContext, ItemDisplayContext> DisplayContext.TYPE
static final com.mojang.serialization.Codec
<ItemDisplayContext> DisplayContext.VALUE_CODEC
Methods in net.minecraft.client.renderer.item.properties.select that return ItemDisplayContextModifier and TypeMethodDescriptionDisplayContext.get
(ItemStack p_388079_, ClientLevel p_388467_, LivingEntity p_388500_, int p_388313_, ItemDisplayContext p_387120_) Methods in net.minecraft.client.renderer.item.properties.select that return types with arguments of type ItemDisplayContextModifier and TypeMethodDescriptionDisplayContext.type()
com.mojang.serialization.Codec
<ItemDisplayContext> DisplayContext.valueCodec()
Methods in net.minecraft.client.renderer.item.properties.select with parameters of type ItemDisplayContextModifier and TypeMethodDescriptionCharge.get
(ItemStack p_387321_, ClientLevel p_387482_, LivingEntity p_387912_, int p_387536_, ItemDisplayContext p_387489_) ComponentContents.get
(ItemStack p_397602_, ClientLevel p_397414_, LivingEntity p_397883_, int p_397032_, ItemDisplayContext p_397548_) ContextDimension.get
(ItemStack p_390388_, ClientLevel p_390477_, LivingEntity p_390423_, int p_390520_, ItemDisplayContext p_390452_) ContextEntityType.get
(ItemStack p_390525_, ClientLevel p_390442_, LivingEntity p_390437_, int p_390427_, ItemDisplayContext p_390397_) CustomModelDataProperty.get
(ItemStack p_388036_, ClientLevel p_387600_, LivingEntity p_388624_, int p_388055_, ItemDisplayContext p_387132_) DisplayContext.get
(ItemStack p_388079_, ClientLevel p_388467_, LivingEntity p_388500_, int p_388313_, ItemDisplayContext p_387120_) ItemBlockState.get
(ItemStack p_387708_, ClientLevel p_388625_, LivingEntity p_388880_, int p_388899_, ItemDisplayContext p_388088_) LocalTime.get
(ItemStack pStack, ClientLevel pLevel, LivingEntity pEntity, int pSeed, ItemDisplayContext pDisplayContext) MainHand.get
(ItemStack p_387406_, ClientLevel p_387423_, LivingEntity p_388453_, int p_388098_, ItemDisplayContext p_386609_) SelectItemModelProperty.get
(ItemStack pStack, ClientLevel pLevel, LivingEntity pEntity, int pSeed, ItemDisplayContext pDisplayContext) TrimMaterialProperty.get
(ItemStack p_387701_, ClientLevel p_388261_, LivingEntity p_387373_, int p_388817_, ItemDisplayContext p_386970_) -
Uses of ItemDisplayContext in net.minecraft.client.renderer.special
Methods in net.minecraft.client.renderer.special with parameters of type ItemDisplayContextModifier and TypeMethodDescriptionvoid
BannerSpecialRenderer.render
(BannerPatternLayers pPatterns, ItemDisplayContext pDisplayContext, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, boolean pHasFoilType) void
BedSpecialRenderer.render
(ItemDisplayContext pDisplayContext, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, boolean pHasFoilType) void
ChestSpecialRenderer.render
(ItemDisplayContext pDisplayContext, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, boolean pHasFoilType) void
ConduitSpecialRenderer.render
(ItemDisplayContext pDisplayContext, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, boolean pHasFoilType) void
DecoratedPotSpecialRenderer.render
(PotDecorations pPatterns, ItemDisplayContext pDisplayContext, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, boolean pHasFoilType) void
HangingSignSpecialRenderer.render
(ItemDisplayContext pDisplayContext, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, boolean pHasFoilType) default void
NoDataSpecialModelRenderer.render
(Void pPatterns, ItemDisplayContext pDisplayContext, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, boolean pHasFoilType) void
NoDataSpecialModelRenderer.render
(ItemDisplayContext pDisplayContext, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, boolean pHasFoilType) void
PlayerHeadSpecialRenderer.render
(PlayerHeadSpecialRenderer.PlayerHeadRenderInfo pPatterns, ItemDisplayContext pDisplayContext, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, boolean pHasFoilType) void
ShieldSpecialRenderer.render
(DataComponentMap pPatterns, ItemDisplayContext pDisplayContext, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, boolean pHasFoilType) void
ShulkerBoxSpecialRenderer.render
(ItemDisplayContext pDisplayContext, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, boolean pHasFoilType) void
SkullSpecialRenderer.render
(ItemDisplayContext pDisplayContext, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, boolean pHasFoilType) void
SpecialModelRenderer.render
(T pPatterns, ItemDisplayContext pDisplayContext, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, boolean pHasFoilType) void
StandingSignSpecialRenderer.render
(ItemDisplayContext pDisplayContext, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, boolean pHasFoilType) void
TridentSpecialRenderer.render
(ItemDisplayContext pDisplayContext, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, boolean pHasFoilType) -
Uses of ItemDisplayContext in net.minecraft.client.resources.model
Methods in net.minecraft.client.resources.model with parameters of type ItemDisplayContextModifier and TypeMethodDescriptionstatic ItemTransform
ResolvedModel.findTopTransform
(ResolvedModel pModel, ItemDisplayContext pDisplayContext) -
Uses of ItemDisplayContext in net.minecraft.world.entity
Fields in net.minecraft.world.entity declared as ItemDisplayContextModifier and TypeFieldDescriptionprivate final ItemDisplayContext
Display.ItemDisplay.ItemRenderState.itemTransform
The field for theitemTransform
record component.Methods in net.minecraft.world.entity that return ItemDisplayContextModifier and TypeMethodDescriptionprivate ItemDisplayContext
Display.ItemDisplay.getItemTransform()
Display.ItemDisplay.ItemRenderState.itemTransform()
Returns the value of theitemTransform
record component.Methods in net.minecraft.world.entity with parameters of type ItemDisplayContextModifier and TypeMethodDescriptionprivate void
Display.ItemDisplay.setItemTransform
(ItemDisplayContext pItemTransform) Constructors in net.minecraft.world.entity with parameters of type ItemDisplayContextModifierConstructorDescriptionItemRenderState
(ItemStack itemStack, ItemDisplayContext itemTransform) Creates an instance of aItemRenderState
record class. -
Uses of ItemDisplayContext in net.minecraft.world.item
Fields in net.minecraft.world.item with type parameters of type ItemDisplayContextModifier and TypeFieldDescriptionstatic final IntFunction
<ItemDisplayContext> ItemDisplayContext.BY_ID
static final com.mojang.serialization.Codec
<ItemDisplayContext> ItemDisplayContext.CODEC
private final Supplier
<ItemDisplayContext> ItemDisplayContext.fallback
Methods in net.minecraft.world.item that return ItemDisplayContextModifier and TypeMethodDescription@Nullable ItemDisplayContext
ItemDisplayContext.fallback()
static ItemDisplayContext
Returns the enum constant of this class with the specified name.static ItemDisplayContext[]
ItemDisplayContext.values()
Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of ItemDisplayContext in net.neoforged.neoforge.client.model.generators.template
Fields in net.neoforged.neoforge.client.model.generators.template with type parameters of type ItemDisplayContextModifier and TypeFieldDescription(package private) final Map
<ItemDisplayContext, TransformVecBuilder> ExtendedModelTemplate.transforms
(package private) final Map
<ItemDisplayContext, TransformVecBuilder> ExtendedModelTemplateBuilder.transforms
Methods in net.neoforged.neoforge.client.model.generators.template with parameters of type ItemDisplayContextModifier and TypeMethodDescriptionExtendedModelTemplateBuilder.transform
(ItemDisplayContext type, Consumer<TransformVecBuilder> action) Begin building a new transform for the given perspective.Constructors in net.neoforged.neoforge.client.model.generators.template with parameters of type ItemDisplayContext -
Uses of ItemDisplayContext in net.neoforged.neoforge.client.model.item
Methods in net.neoforged.neoforge.client.model.item with parameters of type ItemDisplayContextModifier and TypeMethodDescriptionvoid
DynamicFluidContainerModel.update
(ItemStackRenderState renderState, ItemStack stack, ItemModelResolver modelResolver, ItemDisplayContext displayContext, @Nullable ClientLevel level, @Nullable LivingEntity entity, int p_387820_)