Record Class ModelBakery.BakingResult
java.lang.Object
java.lang.Record
net.minecraft.client.resources.model.ModelBakery.BakingResult
- Enclosing class:
ModelBakery
public static record ModelBakery.BakingResult(BakedModel missingModel, Map<ModelResourceLocation,BakedModel> blockStateModels, ItemModel missingItemModel, Map<ResourceLocation,ItemModel> itemStackModels, Map<ResourceLocation,ClientItem.Properties> itemProperties, Map<ResourceLocation,BakedModel> standaloneModels)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<ModelResourceLocation, BakedModel> The field for theblockStateModelsrecord component.private final Map<ResourceLocation, ClientItem.Properties> The field for theitemPropertiesrecord component.private final Map<ResourceLocation, ItemModel> The field for theitemStackModelsrecord component.private final ItemModelThe field for themissingItemModelrecord component.private final BakedModelThe field for themissingModelrecord component.private final Map<ResourceLocation, BakedModel> The field for thestandaloneModelsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBakingResult(BakedModel missingModel, Map<ModelResourceLocation, BakedModel> blockStateModels, ItemModel missingItemModel, Map<ResourceLocation, ItemModel> itemStackModels, Map<ResourceLocation, ClientItem.Properties> itemProperties) Deprecated.BakingResult(BakedModel missingModel, Map<ModelResourceLocation, BakedModel> blockStateModels, ItemModel missingItemModel, Map<ResourceLocation, ItemModel> itemStackModels, Map<ResourceLocation, ClientItem.Properties> itemProperties, Map<ResourceLocation, BakedModel> standaloneModels) Creates an instance of aBakingResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockStateModelsrecord 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 theitemPropertiesrecord component.Returns the value of theitemStackModelsrecord component.Returns the value of themissingItemModelrecord component.Returns the value of themissingModelrecord component.Returns the value of thestandaloneModelsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
missingModel
The field for themissingModelrecord component. -
blockStateModels
The field for theblockStateModelsrecord component. -
missingItemModel
The field for themissingItemModelrecord component. -
itemStackModels
The field for theitemStackModelsrecord component. -
itemProperties
The field for theitemPropertiesrecord component. -
standaloneModels
The field for thestandaloneModelsrecord component.
-
-
Constructor Details
-
BakingResult
@Deprecated public BakingResult(BakedModel missingModel, Map<ModelResourceLocation, BakedModel> blockStateModels, ItemModel missingItemModel, Map<ResourceLocation, ItemModel> itemStackModels, Map<ResourceLocation, ClientItem.Properties> itemProperties) Deprecated.Neo: useBakingResult(BakedModel, Map, ItemModel, Map, Map, Map)} instead -
BakingResult
public BakingResult(BakedModel missingModel, Map<ModelResourceLocation, BakedModel> blockStateModels, ItemModel missingItemModel, Map<ResourceLocation, ItemModel> itemStackModels, Map<ResourceLocation, ClientItem.Properties> itemProperties, Map<ResourceLocation, BakedModel> standaloneModels) Creates an instance of aBakingResultrecord class.- Parameters:
missingModel- the value for themissingModelrecord componentblockStateModels- the value for theblockStateModelsrecord componentmissingItemModel- the value for themissingItemModelrecord componentitemStackModels- the value for theitemStackModelsrecord componentitemProperties- the value for theitemPropertiesrecord componentstandaloneModels- the value for thestandaloneModelsrecord component
-
-
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). -
missingModel
Returns the value of themissingModelrecord component.- Returns:
- the value of the
missingModelrecord component
-
blockStateModels
Returns the value of theblockStateModelsrecord component.- Returns:
- the value of the
blockStateModelsrecord component
-
missingItemModel
Returns the value of themissingItemModelrecord component.- Returns:
- the value of the
missingItemModelrecord component
-
itemStackModels
Returns the value of theitemStackModelsrecord component.- Returns:
- the value of the
itemStackModelsrecord component
-
itemProperties
Returns the value of theitemPropertiesrecord component.- Returns:
- the value of the
itemPropertiesrecord component
-
standaloneModels
Returns the value of thestandaloneModelsrecord component.- Returns:
- the value of the
standaloneModelsrecord component
-
BakingResult(BakedModel, Map, ItemModel, Map, Map, Map)} instead