Record Class PatternEntry
java.lang.Object
java.lang.Record
at.petrak.hexcasting.interop.utils.PatternEntry
-
Constructor Summary
ConstructorsConstructorDescriptionPatternEntry(at.petrak.hexcasting.api.casting.math.HexPattern pattern, at.petrak.hexcasting.api.casting.math.HexCoord origin, List<net.minecraft.world.phys.Vec2> zappyPoints) Creates an instance of aPatternEntryrecord 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.at.petrak.hexcasting.api.casting.math.HexCoordorigin()Returns the value of theoriginrecord component.at.petrak.hexcasting.api.casting.math.HexPatternpattern()Returns the value of thepatternrecord component.final StringtoString()Returns a string representation of this record class.List<net.minecraft.world.phys.Vec2>Returns the value of thezappyPointsrecord component.
-
Constructor Details
-
PatternEntry
public PatternEntry(at.petrak.hexcasting.api.casting.math.HexPattern pattern, at.petrak.hexcasting.api.casting.math.HexCoord origin, List<net.minecraft.world.phys.Vec2> zappyPoints) Creates an instance of aPatternEntryrecord class.- Parameters:
pattern- the value for thepatternrecord componentorigin- the value for theoriginrecord componentzappyPoints- the value for thezappyPointsrecord 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). -
pattern
public at.petrak.hexcasting.api.casting.math.HexPattern pattern()Returns the value of thepatternrecord component.- Returns:
- the value of the
patternrecord component
-
origin
public at.petrak.hexcasting.api.casting.math.HexCoord origin()Returns the value of theoriginrecord component.- Returns:
- the value of the
originrecord component
-
zappyPoints
Returns the value of thezappyPointsrecord component.- Returns:
- the value of the
zappyPointsrecord component
-