Record Class ModelBakery.MissingModels
java.lang.Object
java.lang.Record
net.minecraft.client.resources.model.ModelBakery.MissingModels
- Enclosing class:
ModelBakery
public static record ModelBakery.MissingModels(BlockStateModelPart blockPart, BlockStateModel block, MissingItemModel item, FluidModel fluid)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockStateModelThe field for theblockrecord component.private final BlockStateModelPartThe field for theblockPartrecord component.private final FluidModelThe field for thefluidrecord component.private final MissingItemModelThe field for theitemrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMissingModels(BlockStateModelPart blockPart, BlockStateModel block, MissingItemModel item, FluidModel fluid) Creates an instance of aMissingModelsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ModelBakery.MissingModelsbake(ResolvedModel unbaked, MaterialBaker materials, ModelBaker.Interner interner) block()Returns the value of theblockrecord component.Returns the value of theblockPartrecord component.final booleanIndicates whether some other object is "equal to" this one.fluid()Returns the value of thefluidrecord component.final inthashCode()Returns a hash code value for this object.item()Returns the value of theitemrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
blockPart
The field for theblockPartrecord component. -
block
The field for theblockrecord component. -
item
The field for theitemrecord component. -
fluid
The field for thefluidrecord component.
-
-
Constructor Details
-
MissingModels
public MissingModels(BlockStateModelPart blockPart, BlockStateModel block, MissingItemModel item, FluidModel fluid) Creates an instance of aMissingModelsrecord class.- Parameters:
blockPart- the value for theblockPartrecord componentblock- the value for theblockrecord componentitem- the value for theitemrecord componentfluid- the value for thefluidrecord component
-
-
Method Details
-
bake
public static ModelBakery.MissingModels bake(ResolvedModel unbaked, MaterialBaker materials, ModelBaker.Interner interner) -
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). -
blockPart
Returns the value of theblockPartrecord component.- Returns:
- the value of the
blockPartrecord component
-
block
Returns the value of theblockrecord component.- Returns:
- the value of the
blockrecord component
-
item
Returns the value of theitemrecord component.- Returns:
- the value of the
itemrecord component
-
fluid
Returns the value of thefluidrecord component.- Returns:
- the value of the
fluidrecord component
-