Record Class DoughBall.CutEntry
java.lang.Object
java.lang.Record
com.petrolpark.compat.create.core.dough.DoughBall.CutEntry
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.core.Holder<DoughCut> cut()Returns the value of thecutrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.world.level.block.Rotationrotation()Returns the value of therotationrecord component.final StringtoString()Returns a string representation of this record class.bytex()Returns the value of thexrecord component.bytey()Returns the value of theyrecord component.
-
Field Details
-
CODEC
-
-
Constructor Details
-
CutEntry
public CutEntry(net.minecraft.core.Holder<DoughCut> cut, byte x, byte y, net.minecraft.world.level.block.Rotation rotation) Creates an instance of aCutEntryrecord class.- Parameters:
cut- the value for thecutrecord componentx- the value for thexrecord componenty- the value for theyrecord componentrotation- the value for therotationrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
cut
Returns the value of thecutrecord component.- Returns:
- the value of the
cutrecord component
-
x
public byte x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public byte y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
rotation
public net.minecraft.world.level.block.Rotation rotation()Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-