Record Class Click.DropSlot
java.lang.Object
java.lang.Record
net.minestom.server.inventory.click.Click.DropSlot
- All Implemented Interfaces:
Click
- Enclosing interface:
Click
-
Nested Class Summary
Nested classes/interfaces inherited from interface Click
Click.Double, Click.Drag, Click.DropCursor, Click.DropSlot, Click.HotbarSwap, Click.Left, Click.LeftDrag, Click.LeftDropCursor, Click.LeftShift, Click.Middle, Click.MiddleDrag, Click.MiddleDropCursor, Click.OffhandSwap, Click.Right, Click.RightDrag, Click.RightDropCursor, Click.RightShift, Click.Window -
Constructor Summary
ConstructorsConstructorDescriptionDropSlot(int slot, boolean all) Creates an instance of aDropSlotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanall()Returns the value of theallrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intslot()Returns the value of theslotrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DropSlot
public DropSlot(int slot, boolean all) Creates an instance of aDropSlotrecord class.- Parameters:
slot- the value for theslotrecord componentall- the value for theallrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
slot
-
all
public boolean all()Returns the value of theallrecord component.- Returns:
- the value of the
allrecord component
-