Package codechicken.multipart.client
Record Class MultipartModelData
java.lang.Object
java.lang.Record
codechicken.multipart.client.MultipartModelData
public record MultipartModelData(TileMultipart tile, IdentityHashMap<MultiPart,net.neoforged.neoforge.client.model.data.ModelData> partsAndData)
extends Record
Created by covers1624 on 2/8/25.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.neoforged.neoforge.client.model.data.ModelProperty<MultipartModelData> -
Constructor Summary
ConstructorsConstructorDescriptionMultipartModelData(TileMultipart tile, IdentityHashMap<MultiPart, net.neoforged.neoforge.client.model.data.ModelData> partsAndData) Creates an instance of aMultipartModelDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.IdentityHashMap<MultiPart, net.neoforged.neoforge.client.model.data.ModelData> Returns the value of thepartsAndDatarecord component.tile()Returns the value of thetilerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DATA
-
-
Constructor Details
-
MultipartModelData
public MultipartModelData(TileMultipart tile, IdentityHashMap<MultiPart, net.neoforged.neoforge.client.model.data.ModelData> partsAndData) Creates an instance of aMultipartModelDatarecord class.- Parameters:
tile- the value for thetilerecord componentpartsAndData- the value for thepartsAndDatarecord 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). -
tile
Returns the value of thetilerecord component.- Returns:
- the value of the
tilerecord component
-
partsAndData
Returns the value of thepartsAndDatarecord component.- Returns:
- the value of the
partsAndDatarecord component
-