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(BlockStateModel block, ItemModel item)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockStateModel
The field for theblock
record component.private final ItemModel
The field for theitem
record component. -
Constructor Summary
ConstructorsConstructorDescriptionMissingModels
(BlockStateModel block, ItemModel item) Creates an instance of aMissingModels
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ModelBakery.MissingModels
bake
(ResolvedModel p_405089_, SpriteGetter p_405847_) block()
Returns the value of theblock
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.item()
Returns the value of theitem
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
block
The field for theblock
record component. -
item
The field for theitem
record component.
-
-
Constructor Details
-
MissingModels
Creates an instance of aMissingModels
record class.- Parameters:
block
- the value for theblock
record componentitem
- the value for theitem
record component
-
-
Method Details
-
bake
-
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)
. -
block
Returns the value of theblock
record component.- Returns:
- the value of the
block
record component
-
item
Returns the value of theitem
record component.- Returns:
- the value of the
item
record component
-