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(BlockModelPart blockPart, BlockStateModel block, ItemModel item)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockStateModelThe field for theblockrecord component.private final BlockModelPartThe field for theblockPartrecord component.private final ItemModelThe field for theitemrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMissingModels(BlockModelPart blockPart, BlockStateModel block, ItemModel item) 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.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.
-
-
Constructor Details
-
MissingModels
Creates an instance of aMissingModelsrecord class.- Parameters:
blockPart- the value for theblockPartrecord componentblock- the value for theblockrecord componentitem- the value for theitemrecord 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
-