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 p_386618_, ItemDisplayContext p_386576_, PoseStack p_386646_, MultiBufferSource p_386540_, int p_388855_, int p_388672_) void
ItemInHandRenderer.renderItem
(LivingEntity p_270072_, ItemStack p_270793_, ItemDisplayContext p_270837_, PoseStack p_270974_, MultiBufferSource p_270686_, int p_270103_) -
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 p_270619_) 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 p_361627_, PoseStack p_360423_, MultiBufferSource p_360415_, int p_361265_, int p_364771_, int[] p_386517_, List<BakedQuad> p_404702_, RenderType p_388877_, ItemStackRenderState.FoilType p_387026_) void
ItemRenderer.renderStatic
(LivingEntity p_270101_, ItemStack p_270637_, ItemDisplayContext p_270437_, PoseStack p_270230_, MultiBufferSource p_270411_, Level p_270641_, int p_270595_, int p_270927_, int p_270845_) void
ItemRenderer.renderStatic
(ItemStack p_270761_, ItemDisplayContext p_270648_, int p_270410_, int p_270894_, PoseStack p_270430_, MultiBufferSource p_270457_, Level p_270149_, int p_270509_) -
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 p_387962_, ItemStack p_388009_, ItemDisplayContext p_387722_, Level p_388449_, LivingEntity p_388907_, int p_388206_) void
ModelRenderProperties.applyToLayer
(ItemStackRenderState.LayerRenderState p_405601_, ItemDisplayContext p_405202_) void
BlockModelWrapper.update
(ItemStackRenderState p_386488_, ItemStack p_386443_, ItemModelResolver p_388726_, ItemDisplayContext p_388231_, ClientLevel p_387522_, LivingEntity p_387263_, int p_388300_) 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 p_386893_, ItemStack p_387281_, ItemModelResolver p_388412_, ItemDisplayContext p_388059_, ClientLevel p_388484_, LivingEntity p_388840_, int p_387330_) void
ConditionalItemModel.update
(ItemStackRenderState p_387756_, ItemStack p_387286_, ItemModelResolver p_386644_, ItemDisplayContext p_387754_, ClientLevel p_388301_, LivingEntity p_387078_, int p_387025_) 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 p_388724_, ItemStack p_387772_, ItemModelResolver p_387767_, ItemDisplayContext p_388857_, ClientLevel p_387982_, LivingEntity p_386606_, int p_387820_) void
MissingItemModel.update
(ItemStackRenderState p_386627_, ItemStack p_388292_, ItemModelResolver p_388302_, ItemDisplayContext p_388518_, ClientLevel p_387367_, LivingEntity p_388182_, int p_388913_) void
RangeSelectItemModel.update
(ItemStackRenderState p_387732_, ItemStack p_386891_, ItemModelResolver p_388786_, ItemDisplayContext p_387570_, ClientLevel p_388512_, LivingEntity p_388280_, int p_388577_) void
SelectItemModel.update
(ItemStackRenderState p_387349_, ItemStack p_386764_, ItemModelResolver p_388842_, ItemDisplayContext p_386961_, ClientLevel p_386907_, LivingEntity p_387755_, int p_386608_) void
SpecialModelWrapper.update
(ItemStackRenderState p_388134_, ItemStack p_387781_, ItemModelResolver p_387931_, ItemDisplayContext p_388057_, ClientLevel p_388213_, LivingEntity p_388020_, int p_387759_) void
ItemModelResolver.updateForLiving
(ItemStackRenderState p_387100_, ItemStack p_387635_, ItemDisplayContext p_388107_, LivingEntity p_388201_) void
ItemModelResolver.updateForNonLiving
(ItemStackRenderState p_386914_, ItemStack p_388286_, ItemDisplayContext p_387479_, Entity p_386766_) void
ItemModelResolver.updateForTopItem
(ItemStackRenderState p_387014_, ItemStack p_388693_, ItemDisplayContext p_388835_, Level p_388064_, LivingEntity p_388047_, int p_388137_) -
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 p_387675_, ClientLevel p_387669_, LivingEntity p_388044_, int p_388257_, ItemDisplayContext p_389481_) 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 p_399831_, ClientLevel p_399506_, LivingEntity p_399675_, int p_400089_, ItemDisplayContext p_400225_) -
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 p_389482_, ClientLevel p_389609_, LivingEntity p_389651_, int p_389546_, ItemDisplayContext p_389556_) MainHand.get
(ItemStack p_387406_, ClientLevel p_387423_, LivingEntity p_388453_, int p_388098_, ItemDisplayContext p_386609_) SelectItemModelProperty.get
(ItemStack p_387845_, ClientLevel p_387945_, LivingEntity p_388349_, int p_388630_, ItemDisplayContext p_388902_) 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 p_388526_, ItemDisplayContext p_387517_, PoseStack p_388611_, MultiBufferSource p_388866_, int p_387337_, int p_386801_, boolean p_387745_) void
BedSpecialRenderer.render
(ItemDisplayContext p_387275_, PoseStack p_387960_, MultiBufferSource p_386542_, int p_386921_, int p_387639_, boolean p_387936_) void
ChestSpecialRenderer.render
(ItemDisplayContext p_388647_, PoseStack p_387780_, MultiBufferSource p_386788_, int p_387736_, int p_387546_, boolean p_387869_) void
ConduitSpecialRenderer.render
(ItemDisplayContext p_387714_, PoseStack p_386873_, MultiBufferSource p_388451_, int p_387407_, int p_387355_, boolean p_386645_) void
DecoratedPotSpecialRenderer.render
(PotDecorations p_387830_, ItemDisplayContext p_388378_, PoseStack p_387712_, MultiBufferSource p_386487_, int p_388845_, int p_388255_, boolean p_386498_) void
HangingSignSpecialRenderer.render
(ItemDisplayContext p_389655_, PoseStack p_389572_, MultiBufferSource p_389478_, int p_389663_, int p_389449_, boolean p_389652_) default void
NoDataSpecialModelRenderer.render
(Void p_388741_, ItemDisplayContext p_388330_, PoseStack p_386566_, MultiBufferSource p_387064_, int p_386544_, int p_388169_, boolean p_387813_) void
NoDataSpecialModelRenderer.render
(ItemDisplayContext p_388455_, PoseStack p_387697_, MultiBufferSource p_386694_, int p_388874_, int p_388252_, boolean p_387131_) void
ShieldSpecialRenderer.render
(DataComponentMap p_386991_, ItemDisplayContext p_388730_, PoseStack p_387961_, MultiBufferSource p_388686_, int p_387382_, int p_387013_, boolean p_387902_) void
ShulkerBoxSpecialRenderer.render
(ItemDisplayContext p_387436_, PoseStack p_387209_, MultiBufferSource p_388521_, int p_388851_, int p_387596_, boolean p_388474_) void
SkullSpecialRenderer.render
(ResolvableProfile p_388043_, ItemDisplayContext p_387716_, PoseStack p_386490_, MultiBufferSource p_388080_, int p_387930_, int p_387838_, boolean p_386959_) void
SpecialModelRenderer.render
(T p_387335_, ItemDisplayContext p_388635_, PoseStack p_387508_, MultiBufferSource p_387513_, int p_386748_, int p_388858_, boolean p_387642_) void
StandingSignSpecialRenderer.render
(ItemDisplayContext p_389518_, PoseStack p_389707_, MultiBufferSource p_389673_, int p_389471_, int p_389604_, boolean p_389437_) void
TridentSpecialRenderer.render
(ItemDisplayContext p_387547_, PoseStack p_386661_, MultiBufferSource p_386541_, int p_387525_, int p_388595_, boolean p_388045_) -
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 p_404657_, ItemDisplayContext p_405330_) -
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 p_270370_) 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_)