Record Class GuiClipPath.Inset
java.lang.Object
java.lang.Record
com.render.api.gui.effects.GuiClipPath.Inset
- All Implemented Interfaces:
GuiClipPath
- Enclosing interface:
GuiClipPath
public static record GuiClipPath.Inset(float top, float right, float bottom, float left, float radius, GuiClipPath.ReferenceBox referenceBox)
extends Record
implements GuiClipPath
-
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
ConstructorsConstructorDescriptionInset(float top, float right, float bottom, float left, float radius, GuiClipPath.ReferenceBox referenceBox) Creates an instance of aInsetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatbottom()Returns the value of thebottomrecord component.conservativeBounds(GuiRect reference) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatleft()Returns the value of theleftrecord component.floatradius()Returns the value of theradiusrecord component.Returns the value of thereferenceBoxrecord component.floatright()Returns the value of therightrecord component.floattop()Returns the value of thetoprecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface GuiClipPath
contains, inputExact, portableExact
-
Constructor Details
-
Inset
public Inset(float top, float right, float bottom, float left, float radius, GuiClipPath.ReferenceBox referenceBox) Creates an instance of aInsetrecord class.- Parameters:
top- the value for thetoprecord componentright- the value for therightrecord componentbottom- the value for thebottomrecord componentleft- the value for theleftrecord componentradius- the value for theradiusrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
top
public float top()Returns the value of thetoprecord component.- Returns:
- the value of the
toprecord component
-
right
public float right()Returns the value of therightrecord component.- Returns:
- the value of the
rightrecord component
-
bottom
public float bottom()Returns the value of thebottomrecord component.- Returns:
- the value of the
bottomrecord component
-
left
public float left()Returns the value of theleftrecord component.- Returns:
- the value of the
leftrecord component
-
radius
public float radius()Returns the value of theradiusrecord component.- Returns:
- the value of the
radiusrecord component
-
referenceBox
Returns the value of thereferenceBoxrecord component.- Specified by:
referenceBoxin interfaceGuiClipPath- Returns:
- the value of the
referenceBoxrecord component
-