Record Class Gesture.Pickup
java.lang.Object
java.lang.Record
com.ultikits.ultitools.ui.Gesture.Pickup
- All Implemented Interfaces:
Gesture
- Enclosing interface:
Gesture
-
Nested Class Summary
Nested classes/interfaces inherited from interface Gesture
Gesture.HotbarSwap, Gesture.Pickup, Gesture.Place, Gesture.QuickMoveIn, Gesture.QuickMoveOut, Gesture.Spread, Gesture.SwapWithCursor -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanhalf()Returns the value of thehalfrecord component.final inthashCode()Returns a hash code value for this object.slot()Returns the value of theslotrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
slot
The field for theslotrecord component. -
half
private final boolean halfThe field for thehalfrecord component.
-
-
Constructor Details
-
Pickup
Creates an instance of aPickuprecord class.- Parameters:
slot- the value for theslotrecord componenthalf- the value for thehalfrecord component
-
-
Method Details
-
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. -
slot
Returns the value of theslotrecord component.- Returns:
- the value of the
slotrecord component
-
half
public boolean half()Returns the value of thehalfrecord component.- Returns:
- the value of the
halfrecord component
-