Package at.petrak.hexcasting.server
Record Class ScrungledPatternsSave.PerWorldEntry
java.lang.Object
java.lang.Record
at.petrak.hexcasting.server.ScrungledPatternsSave.PerWorldEntry
- Enclosing class:
- ScrungledPatternsSave
public static record ScrungledPatternsSave.PerWorldEntry(net.minecraft.resources.ResourceKey<ActionRegistryEntry> key, at.petrak.hexcasting.api.casting.math.HexDir canonicalStartDir)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPerWorldEntry(net.minecraft.resources.ResourceKey<ActionRegistryEntry> key, at.petrak.hexcasting.api.casting.math.HexDir canonicalStartDir) Creates an instance of aPerWorldEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionat.petrak.hexcasting.api.casting.math.HexDirReturns the value of thecanonicalStartDirrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.resources.ResourceKey<ActionRegistryEntry>key()Returns the value of thekeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PerWorldEntry
public PerWorldEntry(net.minecraft.resources.ResourceKey<ActionRegistryEntry> key, at.petrak.hexcasting.api.casting.math.HexDir canonicalStartDir) Creates an instance of aPerWorldEntryrecord class.- Parameters:
key- the value for thekeyrecord componentcanonicalStartDir- the value for thecanonicalStartDirrecord 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). -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
canonicalStartDir
public at.petrak.hexcasting.api.casting.math.HexDir canonicalStartDir()Returns the value of thecanonicalStartDirrecord component.- Returns:
- the value of the
canonicalStartDirrecord component
-