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 theblockStateModels
record component.private final Map
<ResourceLocation, ClientItem.Properties> The field for theitemProperties
record component.private final Map
<ResourceLocation, ItemModel> The field for theitemStackModels
record component.private final ItemModel
The field for themissingItemModel
record component.private final BakedModel
The field for themissingModel
record component.private final Map
<ResourceLocation, BakedModel> The field for thestandaloneModels
record 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 aBakingResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockStateModels
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theitemProperties
record component.Returns the value of theitemStackModels
record component.Returns the value of themissingItemModel
record component.Returns the value of themissingModel
record component.Returns the value of thestandaloneModels
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
missingModel
The field for themissingModel
record component. -
blockStateModels
The field for theblockStateModels
record component. -
missingItemModel
The field for themissingItemModel
record component. -
itemStackModels
The field for theitemStackModels
record component. -
itemProperties
The field for theitemProperties
record component. -
standaloneModels
The field for thestandaloneModels
record 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 aBakingResult
record class.- Parameters:
missingModel
- the value for themissingModel
record componentblockStateModels
- the value for theblockStateModels
record componentmissingItemModel
- the value for themissingItemModel
record componentitemStackModels
- the value for theitemStackModels
record componentitemProperties
- the value for theitemProperties
record componentstandaloneModels
- the value for thestandaloneModels
record 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 themissingModel
record component.- Returns:
- the value of the
missingModel
record component
-
blockStateModels
Returns the value of theblockStateModels
record component.- Returns:
- the value of the
blockStateModels
record component
-
missingItemModel
Returns the value of themissingItemModel
record component.- Returns:
- the value of the
missingItemModel
record component
-
itemStackModels
Returns the value of theitemStackModels
record component.- Returns:
- the value of the
itemStackModels
record component
-
itemProperties
Returns the value of theitemProperties
record component.- Returns:
- the value of the
itemProperties
record component
-
standaloneModels
Returns the value of thestandaloneModels
record component.- Returns:
- the value of the
standaloneModels
record component
-
BakingResult(BakedModel, Map, ItemModel, Map, Map, Map)
} instead