Uses of Enum Class
net.minecraft.world.item.ItemDisplayContext
Package
Description
Extension interfaces for
client
-only classes.-
Uses of ItemDisplayContext in net.minecraft.client.renderer
Modifier and TypeMethodDescriptionvoid
BlockEntityWithoutLevelRenderer.renderByItem
(ItemStack p_108830_, ItemDisplayContext p_270899_, PoseStack p_108832_, MultiBufferSource p_108833_, int p_108834_, int p_108835_) void
ItemInHandRenderer.renderItem
(LivingEntity p_270072_, ItemStack p_270793_, ItemDisplayContext p_270837_, boolean p_270203_, PoseStack p_270974_, MultiBufferSource p_270686_, int p_270103_) -
Uses of ItemDisplayContext in net.minecraft.client.renderer.block.model
Modifier and TypeFieldDescriptionfinal com.google.common.collect.ImmutableMap<ItemDisplayContext,
ItemTransform> ItemTransforms.moddedTransforms
Modifier and TypeMethodDescriptionprivate ItemTransform
BlockModel.getTransform
(ItemDisplayContext p_270662_) private ItemTransform
ItemTransforms.Deserializer.getTransform
(com.google.gson.JsonDeserializationContext p_270385_, com.google.gson.JsonObject p_270436_, ItemDisplayContext p_270100_) ItemTransforms.getTransform
(ItemDisplayContext p_270619_) boolean
ItemTransforms.hasTransform
(ItemDisplayContext p_270365_) ModifierConstructorDescriptionItemTransforms
(ItemTransform p_111798_, ItemTransform p_111799_, ItemTransform p_111800_, ItemTransform p_111801_, ItemTransform p_111802_, ItemTransform p_111803_, ItemTransform p_111804_, ItemTransform p_111805_, com.google.common.collect.ImmutableMap<ItemDisplayContext, ItemTransform> moddedTransforms) -
Uses of ItemDisplayContext in net.minecraft.client.renderer.entity
Modifier and TypeMethodDescriptionvoid
ItemRenderer.render
(ItemStack p_115144_, ItemDisplayContext p_270188_, boolean p_115146_, PoseStack p_115147_, MultiBufferSource p_115148_, int p_115149_, int p_115150_, BakedModel p_115151_) void
ItemRenderer.renderStatic
(LivingEntity p_270101_, ItemStack p_270637_, ItemDisplayContext p_270437_, boolean p_270434_, 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.entity.layers
Modifier and TypeMethodDescriptionprotected void
ItemInHandLayer.renderArmWithItem
(LivingEntity p_117185_, ItemStack p_117186_, ItemDisplayContext p_270970_, HumanoidArm p_117188_, PoseStack p_117189_, MultiBufferSource p_117190_, int p_117191_) protected void
PlayerItemInHandLayer.renderArmWithItem
(LivingEntity p_270884_, ItemStack p_270379_, ItemDisplayContext p_270607_, HumanoidArm p_270324_, PoseStack p_270124_, MultiBufferSource p_270414_, int p_270295_) -
Uses of ItemDisplayContext in net.minecraft.client.resources.model
Modifier and TypeMethodDescriptionMultiPartBakedModel.applyTransform
(ItemDisplayContext transformType, PoseStack poseStack, boolean applyLeftHandTransform) WeightedBakedModel.applyTransform
(ItemDisplayContext transformType, PoseStack poseStack, boolean applyLeftHandTransform) -
Uses of ItemDisplayContext in net.minecraft.world.entity
Modifier and TypeFieldDescriptionprivate final ItemDisplayContext
Display.ItemDisplay.ItemRenderState.itemTransform
The field for theitemTransform
record component.Modifier and TypeMethodDescriptionprivate ItemDisplayContext
Display.ItemDisplay.getItemTransform()
Display.ItemDisplay.ItemRenderState.itemTransform()
Returns the value of theitemTransform
record component.Modifier and TypeMethodDescriptionprivate void
Display.ItemDisplay.setItemTransform
(ItemDisplayContext p_270370_) ModifierConstructorDescriptionItemRenderState
(ItemStack itemStack, ItemDisplayContext itemTransform) Creates an instance of aItemRenderState
record class. -
Uses of ItemDisplayContext in net.minecraft.world.item
Modifier and TypeFieldDescriptionstatic final IForgeRegistry.AddCallback<ItemDisplayContext>
ItemDisplayContext.ADD_CALLBACK
static final IntFunction<ItemDisplayContext>
ItemDisplayContext.BY_ID
static final com.mojang.serialization.Codec<ItemDisplayContext>
ItemDisplayContext.CODEC
Modifier and TypeMethodDescriptionstatic ItemDisplayContext
ItemDisplayContext.create
(String keyName, ResourceLocation serializedName, ItemDisplayContext fallback) 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.Modifier and TypeMethodDescriptionstatic ItemDisplayContext
ItemDisplayContext.create
(String keyName, ResourceLocation serializedName, ItemDisplayContext fallback) ModifierConstructorDescriptionprivate
ItemDisplayContext
(ResourceLocation serializeName, ItemDisplayContext fallback) -
Uses of ItemDisplayContext in net.minecraftforge.client
Modifier and TypeMethodDescriptionstatic BakedModel
ForgeHooksClient.handleCameraTransforms
(PoseStack poseStack, BakedModel model, ItemDisplayContext cameraTransformType, boolean applyLeftHandTransform) -
Uses of ItemDisplayContext in net.minecraftforge.client.extensions
Modifier and TypeMethodDescriptiondefault BakedModel
IForgeBakedModel.applyTransform
(ItemDisplayContext transformType, PoseStack poseStack, boolean applyLeftHandTransform) Applies a transform for the givenItemTransforms.TransformType
andapplyLeftHandTransform
, and returns the model to be rendered. -
Uses of ItemDisplayContext in net.minecraftforge.client.model
Modifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableMap<ItemDisplayContext,
BakedModel> SeparateTransformsModel.Baked.perspectives
private final com.google.common.collect.ImmutableMap<ItemDisplayContext,
BlockModel> SeparateTransformsModel.perspectives
Modifier and TypeMethodDescriptionBakedModelWrapper.applyTransform
(ItemDisplayContext cameraTransformType, PoseStack poseStack, boolean applyLeftHandTransform) SeparateTransformsModel.Baked.applyTransform
(ItemDisplayContext cameraTransformType, PoseStack poseStack, boolean applyLeftHandTransform) ModifierConstructorDescriptionBaked
(boolean isAmbientOcclusion, boolean isGui3d, boolean isSideLit, TextureAtlasSprite particle, ItemOverrides overrides, BakedModel baseModel, com.google.common.collect.ImmutableMap<ItemDisplayContext, BakedModel> perspectives) SeparateTransformsModel
(BlockModel baseModel, com.google.common.collect.ImmutableMap<ItemDisplayContext, BlockModel> perspectives) -
Uses of ItemDisplayContext in net.minecraftforge.client.model.generators
Modifier and TypeFieldDescriptionprivate final Map<ItemDisplayContext,
ModelBuilder<T>.TransformsBuilder.TransformVecBuilder> ModelBuilder.TransformsBuilder.transforms
Modifier and TypeMethodDescription(package private) Map<ItemDisplayContext,
ItemTransform> ModelBuilder.TransformsBuilder.build()
Modifier and TypeMethodDescriptionModelBuilder.TransformsBuilder.transform
(ItemDisplayContext type) Begin building a new transform for the given perspective. -
Uses of ItemDisplayContext in net.minecraftforge.client.model.generators.loaders
Modifier and TypeMethodDescriptionSeparateTransformsModelBuilder.perspective
(ItemDisplayContext perspective, T modelBuilder) -
Uses of ItemDisplayContext in net.minecraftforge.registries
Modifier and TypeFieldDescription(package private) static final DeferredRegister<ItemDisplayContext>
ForgeRegistries.DEFERRED_DISPLAY_CONTEXTS
static final Supplier<IForgeRegistry<ItemDisplayContext>>
ForgeRegistries.DISPLAY_CONTEXTS
CallingSupplier.get()
beforeNewRegistryEvent
is fired will result in a null registry returned.static final ResourceKey<Registry<ItemDisplayContext>>
ForgeRegistries.Keys.DISPLAY_CONTEXTS
Modifier and TypeMethodDescription(package private) static RegistryBuilder<ItemDisplayContext>
GameData.getItemDisplayContextRegistryBuilder()