Record Class GuiClipPath.Path
java.lang.Object
java.lang.Record
com.render.api.gui.effects.GuiClipPath.Path
- Record Components:
data- SVG-compatible path datareferenceBox- box used to resolve the path
- All Implemented Interfaces:
GuiClipPath
- Enclosing interface:
GuiClipPath
public static record GuiClipPath.Path(String data, GuiClipPath.ReferenceBox referenceBox)
extends Record
implements GuiClipPath
Retained path data interpreted by a capable compositor path backend.
-
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
ConstructorsConstructorDescriptionPath(String data, GuiClipPath.ReferenceBox referenceBox) Creates an instance of aPathrecord class. -
Method Summary
Modifier and TypeMethodDescriptionconservativeBounds(GuiRect reference) data()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.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
-
Path
Creates an instance of aPathrecord class.- Parameters:
data- the value for thedatarecord 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). -
data
-
referenceBox
Returns the value of thereferenceBoxrecord component.- Specified by:
referenceBoxin interfaceGuiClipPath- Returns:
- the value of the
referenceBoxrecord component
-