Record Class PatternDrawingUtil.PatternRenderingData
java.lang.Object
java.lang.Record
at.petrak.hexcasting.interop.utils.PatternDrawingUtil.PatternRenderingData
- Enclosing class:
- PatternDrawingUtil
public static record PatternDrawingUtil.PatternRenderingData(List<PatternEntry> patterns, List<net.minecraft.world.phys.Vec2> pathfinderDots, float hexSize)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPatternRenderingData(List<PatternEntry> patterns, List<net.minecraft.world.phys.Vec2> pathfinderDots, float hexSize) Creates an instance of aPatternRenderingDatarecord 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.floathexSize()Returns the value of thehexSizerecord component.List<net.minecraft.world.phys.Vec2>Returns the value of thepathfinderDotsrecord component.patterns()Returns the value of thepatternsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PatternRenderingData
public PatternRenderingData(List<PatternEntry> patterns, List<net.minecraft.world.phys.Vec2> pathfinderDots, float hexSize) Creates an instance of aPatternRenderingDatarecord class.- Parameters:
patterns- the value for thepatternsrecord componentpathfinderDots- the value for thepathfinderDotsrecord componenthexSize- the value for thehexSizerecord 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 '=='. -
patterns
Returns the value of thepatternsrecord component.- Returns:
- the value of the
patternsrecord component
-
pathfinderDots
Returns the value of thepathfinderDotsrecord component.- Returns:
- the value of the
pathfinderDotsrecord component
-
hexSize
public float hexSize()Returns the value of thehexSizerecord component.- Returns:
- the value of the
hexSizerecord component
-