Record Class ExpressionPanelRendering.Region
java.lang.Object
java.lang.Record
org.cyclops.integrateddynamics.core.logicprogrammer.client.ExpressionPanelRendering.Region
- Enclosing class:
ExpressionPanelRendering
public static record ExpressionPanelRendering.Region(int x, int y, int width, int height, ExpressionPanelRendering.ClickAction action, @Nullable net.minecraft.network.chat.Component tooltip)
extends Record
A part of the panel that can be clicked or has a tooltip, relative to the gui.
-
Constructor Summary
ConstructorsConstructorDescriptionRegion(int x, int y, int width, int height, ExpressionPanelRendering.ClickAction action, net.minecraft.network.chat.Component tooltip) Creates an instance of aRegionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.booleancontains(double x, double y) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.net.minecraft.network.chat.Componenttooltip()Returns the value of thetooltiprecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.intx()Returns the value of thexrecord component.inty()Returns the value of theyrecord component.
-
Constructor Details
-
Region
public Region(int x, int y, int width, int height, ExpressionPanelRendering.ClickAction action, @Nullable net.minecraft.network.chat.Component tooltip) Creates an instance of aRegionrecord class.- Parameters:
x- the value for thexrecord componenty- the value for theyrecord componentwidth- the value for thewidthrecord componentheight- the value for theheightrecord componentaction- the value for theactionrecord componenttooltip- the value for thetooltiprecord component
-
-
Method Details
-
contains
public boolean contains(double x, double y) -
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. -
x
public int x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public int y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
tooltip
@Nullable public net.minecraft.network.chat.Component tooltip()Returns the value of thetooltiprecord component.- Returns:
- the value of the
tooltiprecord component
-