Package codechicken.translocators.client
Record Class TranslocatorModelData
java.lang.Object
java.lang.Record
codechicken.translocators.client.TranslocatorModelData
Created by covers1624 on 7/22/26.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.neoforged.neoforge.model.data.ModelProperty<TranslocatorModelData> -
Constructor Summary
ConstructorsConstructorDescriptionTranslocatorModelData(int side, int type, int iconIndex) Creates an instance of aTranslocatorModelDatarecord 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.intReturns the value of theiconIndexrecord component.intside()Returns the value of thesiderecord component.final StringtoString()Returns a string representation of this record class.inttype()Returns the value of thetyperecord component.
-
Field Details
-
TYPE
-
-
Constructor Details
-
TranslocatorModelData
public TranslocatorModelData(int side, int type, int iconIndex) Creates an instance of aTranslocatorModelDatarecord class.- Parameters:
side- the value for thesiderecord componenttype- the value for thetyperecord componenticonIndex- the value for theiconIndexrecord 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 with '=='. -
side
public int side()Returns the value of thesiderecord component.- Returns:
- the value of the
siderecord component
-
type
public int type()Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
iconIndex
public int iconIndex()Returns the value of theiconIndexrecord component.- Returns:
- the value of the
iconIndexrecord component
-