Record Class GuiDrawRangePlan
java.lang.Object
java.lang.Record
com.render.api.gui.internal.GuiDrawRangePlan
public record GuiDrawRangePlan(boolean hasBoundaries, List<GuiDrawRangePlan.Step> steps)
extends Record
Immutable segmentation of a vanilla GUI draw range around transparent RenderLib boundary markers.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionGuiDrawRangePlan(boolean hasBoundaries, List<GuiDrawRangePlan.Step> steps) Creates an instance of aGuiDrawRangePlanrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic GuiDrawRangePlancreate(int start, int end, IntPredicate boundaryAt) final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thehasBoundariesrecord component.final inthashCode()Returns a hash code value for this object.steps()Returns the value of thestepsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GuiDrawRangePlan
Creates an instance of aGuiDrawRangePlanrecord class.- Parameters:
hasBoundaries- the value for thehasBoundariesrecord componentsteps- the value for thestepsrecord component
-
-
Method Details
-
create
-
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. -
hasBoundaries
public boolean hasBoundaries()Returns the value of thehasBoundariesrecord component.- Returns:
- the value of the
hasBoundariesrecord component
-
steps
Returns the value of thestepsrecord component.- Returns:
- the value of the
stepsrecord component
-