Record Class ItemModel.BakeContext
java.lang.Object
java.lang.Record
net.minecraft.client.render.item.model.ItemModel.BakeContext
- Record Components:
blockModelBaker-entityModelSet-spriteHolder-playerSkinRenderCache-missingItemModel-contextSwapper-
- All Implemented Interfaces:
SpecialModelRenderer.BakeContext
- Enclosing interface:
ItemModel
@Environment(CLIENT)
public static record ItemModel.BakeContext(Baker blockModelBaker, LoadedEntityModels entityModelSet, SpriteHolder spriteHolder, PlayerSkinCache playerSkinRenderCache, ItemModel missingItemModel, @Nullable ContextSwapper contextSwapper)
extends Record
implements SpecialModelRenderer.BakeContext
- Mappings:
Namespace Name named net/minecraft/client/render/item/model/ItemModel$BakeContextintermediary net/minecraft/class_10439$class_10440official hyp$anamed blockModelBakerintermediary comp_3390official anamed entityModelSetintermediary comp_3391official bnamed spriteHolderintermediary comp_4551official cnamed playerSkinRenderCacheintermediary comp_4658official dnamed missingItemModelintermediary comp_3392official enamed contextSwapperintermediary comp_3611official f
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.render.item.model.special.SpecialModelRenderer.BakeContext
SpecialModelRenderer.BakeContext.Simple -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BakerThe field for theblockModelBakerrecord component.private final @Nullable ContextSwapperThe field for thecontextSwapperrecord component.private final LoadedEntityModelsThe field for theentityModelSetrecord component.private final ItemModelThe field for themissingItemModelrecord component.private final PlayerSkinCacheThe field for theplayerSkinRenderCacherecord component.private final SpriteHolderThe field for thespriteHolderrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBakeContext(Baker baker, LoadedEntityModels loadedEntityModels, SpriteHolder spriteHolder, PlayerSkinCache playerSkinCache, ItemModel itemModel, @Nullable ContextSwapper contextSwapper) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockModelBakerrecord component.Returns the value of thecontextSwapperrecord component.Returns the value of theentityModelSetrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themissingItemModelrecord component.Returns the value of theplayerSkinRenderCacherecord component.Returns the value of thespriteHolderrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
blockModelBaker
The field for theblockModelBakerrecord component. -
entityModelSet
The field for theentityModelSetrecord component. -
spriteHolder
The field for thespriteHolderrecord component. -
playerSkinRenderCache
The field for theplayerSkinRenderCacherecord component. -
missingItemModel
The field for themissingItemModelrecord component. -
contextSwapper
The field for thecontextSwapperrecord component.
-
-
Constructor Details
-
BakeContext
public BakeContext(Baker baker, LoadedEntityModels loadedEntityModels, SpriteHolder spriteHolder, PlayerSkinCache playerSkinCache, ItemModel itemModel, @Nullable @Nullable ContextSwapper contextSwapper)
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
blockModelBaker
Returns the value of theblockModelBakerrecord component.- Returns:
- the value of the
blockModelBakerrecord component
-
entityModelSet
Returns the value of theentityModelSetrecord component.- Specified by:
entityModelSetin interfaceSpecialModelRenderer.BakeContext- Returns:
- the value of the
entityModelSetrecord component
-
spriteHolder
Returns the value of thespriteHolderrecord component.- Specified by:
spriteHolderin interfaceSpecialModelRenderer.BakeContext- Returns:
- the value of the
spriteHolderrecord component
-
playerSkinRenderCache
Returns the value of theplayerSkinRenderCacherecord component.- Specified by:
playerSkinRenderCachein interfaceSpecialModelRenderer.BakeContext- Returns:
- the value of the
playerSkinRenderCacherecord component
-
missingItemModel
Returns the value of themissingItemModelrecord component.- Returns:
- the value of the
missingItemModelrecord component
-
contextSwapper
Returns the value of thecontextSwapperrecord component.- Returns:
- the value of the
contextSwapperrecord component
-