Record Class TrainHatInfo
java.lang.Object
java.lang.Record
com.simibubi.create.content.trains.schedule.hat.TrainHatInfo
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTrainHatInfo(String part, int cubeIndex, net.minecraft.world.phys.Vec3 offset, float scale) Creates an instance of aTrainHatInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecubeIndexrecord component.final booleanIndicates whether some other object is "equal to" this one.static List<net.minecraft.client.model.geom.ModelPart> getAdjustedPart(TrainHatInfo info, net.minecraft.client.model.geom.ModelPart root, String defaultPart) final inthashCode()Returns a hash code value for this object.net.minecraft.world.phys.Vec3offset()Returns the value of theoffsetrecord component.part()Returns the value of thepartrecord component.floatscale()Returns the value of thescalerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
TrainHatInfo
Creates an instance of aTrainHatInforecord class.- Parameters:
part- the value for thepartrecord componentcubeIndex- the value for thecubeIndexrecord componentoffset- the value for theoffsetrecord componentscale- the value for thescalerecord component
-
-
Method Details
-
getAdjustedPart
public static List<net.minecraft.client.model.geom.ModelPart> getAdjustedPart(TrainHatInfo info, net.minecraft.client.model.geom.ModelPart root, String defaultPart) -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
part
Returns the value of thepartrecord component.- Returns:
- the value of the
partrecord component
-
cubeIndex
public int cubeIndex()Returns the value of thecubeIndexrecord component.- Returns:
- the value of the
cubeIndexrecord component
-
offset
public net.minecraft.world.phys.Vec3 offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
scale
public float scale()Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-