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(ModelBakery.MissingModels missingModels, Map<BlockState,BlockStateModel> blockStateModels, Map<ResourceLocation,ItemModel> itemStackModels, Map<ResourceLocation,ClientItem.Properties> itemProperties, StandaloneModelLoader.BakedModels standaloneModels)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<BlockState, BlockStateModel> 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 ModelBakery.MissingModelsThe field for themissingModelsrecord component.private final StandaloneModelLoader.BakedModelsThe field for thestandaloneModelsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBakingResult(ModelBakery.MissingModels missingModels, Map<BlockState, BlockStateModel> blockStateModels, Map<ResourceLocation, ItemModel> itemStackModels, Map<ResourceLocation, ClientItem.Properties> itemProperties) Deprecated.BakingResult(ModelBakery.MissingModels missingModels, Map<BlockState, BlockStateModel> blockStateModels, Map<ResourceLocation, ItemModel> itemStackModels, Map<ResourceLocation, ClientItem.Properties> itemProperties, StandaloneModelLoader.BakedModels 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 themissingModelsrecord component.Returns the value of thestandaloneModelsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
missingModels
The field for themissingModelsrecord component. -
blockStateModels
The field for theblockStateModelsrecord 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(ModelBakery.MissingModels missingModels, Map<BlockState, BlockStateModel> blockStateModels, Map<ResourceLocation, ItemModel> itemStackModels, Map<ResourceLocation, ClientItem.Properties> itemProperties) -
BakingResult
public BakingResult(ModelBakery.MissingModels missingModels, Map<BlockState, BlockStateModel> blockStateModels, Map<ResourceLocation, ItemModel> itemStackModels, Map<ResourceLocation, ClientItem.Properties> itemProperties, StandaloneModelLoader.BakedModels standaloneModels) Creates an instance of aBakingResultrecord class.- Parameters:
missingModels- the value for themissingModelsrecord componentblockStateModels- the value for theblockStateModelsrecord 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). -
missingModels
Returns the value of themissingModelsrecord component.- Returns:
- the value of the
missingModelsrecord component
-
blockStateModels
Returns the value of theblockStateModelsrecord component.- Returns:
- the value of the
blockStateModelsrecord 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(ModelBakery.MissingModels, Map, Map, Map, net.neoforged.neoforge.client.model.standalone.StandaloneModelLoader.BakedModels)instead