Record Class GuiClipPath.Polygon
java.lang.Object
java.lang.Record
com.render.api.gui.effects.GuiClipPath.Polygon
- Record Components:
points- ordered polygon verticesreferenceBox- box used to resolve the normalized vertices
- All Implemented Interfaces:
GuiClipPath
- Enclosing interface:
GuiClipPath
public static record GuiClipPath.Polygon(List<GuiClipPath.Point> points, GuiClipPath.ReferenceBox referenceBox)
extends Record
implements GuiClipPath
Polygon whose points use normalized reference-box coordinates.
-
Nested Class Summary
Nested classes/interfaces inherited from interface GuiClipPath
GuiClipPath.Circle, GuiClipPath.Ellipse, GuiClipPath.Inset, GuiClipPath.Path, GuiClipPath.Point, GuiClipPath.Polygon, GuiClipPath.ReferenceBox -
Constructor Summary
ConstructorsConstructorDescriptionPolygon(List<GuiClipPath.Point> points, GuiClipPath.ReferenceBox referenceBox) Creates an instance of aPolygonrecord class. -
Method Summary
Modifier and TypeMethodDescriptionconservativeBounds(GuiRect reference) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.points()Returns the value of thepointsrecord component.Returns the value of thereferenceBoxrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface GuiClipPath
contains, inputExact, portableExact
-
Constructor Details
-
Polygon
Creates an instance of aPolygonrecord class.- Parameters:
points- the value for thepointsrecord componentreferenceBox- the value for thereferenceBoxrecord component
-
-
Method Details
-
conservativeBounds
- Specified by:
conservativeBoundsin interfaceGuiClipPath
-
toString
-
hashCode
-
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). -
points
-
referenceBox
Returns the value of thereferenceBoxrecord component.- Specified by:
referenceBoxin interfaceGuiClipPath- Returns:
- the value of the
referenceBoxrecord component
-