Record Class ModelManager.ReloadState
java.lang.Object
java.lang.Record
net.minecraft.client.resources.model.ModelManager.ReloadState
- Enclosing class:
ModelManager
private static record ModelManager.ReloadState(ModelBakery.BakingResult bakedModels, it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState> modelGroups, Map<BlockState, BlockStateModel> blockStateModels, Map<BlockState, BlockModel> blockModels, Map<Fluid, FluidModel> fluidModels, EntityModelSet entityModelSet)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ModelBakery.BakingResultThe field for thebakedModelsrecord component.private final Map<BlockState, BlockModel> The field for theblockModelsrecord component.private final Map<BlockState, BlockStateModel> The field for theblockStateModelsrecord component.private final EntityModelSetThe field for theentityModelSetrecord component.private final Map<Fluid, FluidModel> The field for thefluidModelsrecord component.private final it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState> The field for themodelGroupsrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateReloadState(ModelBakery.BakingResult bakedModels, it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState> modelGroups, Map<BlockState, BlockStateModel> blockStateModels, Map<BlockState, BlockModel> blockModels, Map<Fluid, FluidModel> fluidModels, EntityModelSet entityModelSet) Creates an instance of aReloadStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebakedModelsrecord component.Returns the value of theblockModelsrecord component.Returns the value of theblockStateModelsrecord component.Returns the value of theentityModelSetrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefluidModelsrecord component.final inthashCode()Returns a hash code value for this object.it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState> Returns the value of themodelGroupsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
bakedModels
The field for thebakedModelsrecord component. -
modelGroups
The field for themodelGroupsrecord component. -
blockStateModels
The field for theblockStateModelsrecord component. -
blockModels
The field for theblockModelsrecord component. -
fluidModels
The field for thefluidModelsrecord component. -
entityModelSet
The field for theentityModelSetrecord component.
-
-
Constructor Details
-
ReloadState
private ReloadState(ModelBakery.BakingResult bakedModels, it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState> modelGroups, Map<BlockState, BlockStateModel> blockStateModels, Map<BlockState, BlockModel> blockModels, Map<Fluid, FluidModel> fluidModels, EntityModelSet entityModelSet) Creates an instance of aReloadStaterecord class.- Parameters:
bakedModels- the value for thebakedModelsrecord componentmodelGroups- the value for themodelGroupsrecord componentblockStateModels- the value for theblockStateModelsrecord componentblockModels- the value for theblockModelsrecord componentfluidModels- the value for thefluidModelsrecord componententityModelSet- the value for theentityModelSetrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
bakedModels
Returns the value of thebakedModelsrecord component.- Returns:
- the value of the
bakedModelsrecord component
-
modelGroups
Returns the value of themodelGroupsrecord component.- Returns:
- the value of the
modelGroupsrecord component
-
blockStateModels
Returns the value of theblockStateModelsrecord component.- Returns:
- the value of the
blockStateModelsrecord component
-
blockModels
Returns the value of theblockModelsrecord component.- Returns:
- the value of the
blockModelsrecord component
-
fluidModels
Returns the value of thefluidModelsrecord component.- Returns:
- the value of the
fluidModelsrecord component
-
entityModelSet
Returns the value of theentityModelSetrecord component.- Returns:
- the value of the
entityModelSetrecord component
-