Record Class ItemModel.BakeContext
java.lang.Object
java.lang.Record
net.minecraft.client.render.item.model.ItemModel.BakeContext
- Record Components:
blockModelBaker-entityModelSet-missingItemModel-
- Enclosing interface:
ItemModel
@Environment(CLIENT)
public static record ItemModel.BakeContext(Baker blockModelBaker, LoadedEntityModels entityModelSet, ItemModel missingItemModel)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/item/model/ItemModel$BakeContextintermediary net/minecraft/class_10439$class_10440official hbm$anamed blockModelBakerintermediary comp_3390official anamed entityModelSetintermediary comp_3391official bnamed missingItemModelintermediary comp_3392official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BakerThe field for theblockModelBakerrecord component.private final LoadedEntityModelsThe field for theentityModelSetrecord component.private final ItemModelThe field for themissingItemModelrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBakeContext(Baker baker, LoadedEntityModels loadedEntityModels, ItemModel itemModel) -
Method Summary
Modifier and TypeMethodDescriptionbake(Identifier id) Returns the value of theblockModelBakerrecord 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.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
blockModelBaker
The field for theblockModelBakerrecord component. -
entityModelSet
The field for theentityModelSetrecord component. -
missingItemModel
The field for themissingItemModelrecord component.
-
-
Constructor Details
-
BakeContext
-
-
Method Details
-
bake
- Mappings:
Namespace Name Mixin selector named bakeLnet/minecraft/client/render/item/model/ItemModel$BakeContext;bake(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/render/model/BakedModel;intermediary method_65592Lnet/minecraft/class_10439$class_10440;method_65592(Lnet/minecraft/class_2960;)Lnet/minecraft/class_1087;official aLhbm$a;a(Lakv;)Lhgt;
-
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.- Returns:
- the value of the
entityModelSetrecord component
-
missingItemModel
Returns the value of themissingItemModelrecord component.- Returns:
- the value of the
missingItemModelrecord component
-