Record Class DoughData.Cuts
java.lang.Object
java.lang.Record
com.petrolpark.compat.create.core.dough.DoughData.Cuts
- Enclosing class:
DoughData
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<DoughData.Cuts> static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, DoughData.Cuts> -
Constructor Summary
ConstructorsConstructorDescriptionCuts(List<DoughData.Cuts.Entry> cuts) Creates an instance of aCutsrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncuts()Returns the value of thecutsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,DoughData.Cuts> STREAM_CODEC
-
-
Constructor Details
-
Cuts
Creates an instance of aCutsrecord class.- Parameters:
cuts- the value for thecutsrecord 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). -
cuts
Returns the value of thecutsrecord component.- Returns:
- the value of the
cutsrecord component
-