Record Class Containers.Click
java.lang.Object
java.lang.Record
dev.myriadclient.api.service.Containers.Click
- Record Components:
slot- the screen slot id (-999for outside the window)- the mouse button, or the hotbar slot forContainerInput.SWAP(40: the off hand)input- what kind of click
- Enclosing interface:
Containers
public static record Containers.Click(int slot, int button, net.minecraft.world.inventory.ContainerInput input)
extends Record
One click in a menu: screen slot id, button, input, as
handleContainerInput takes them.-
Constructor Summary
ConstructorsConstructorDescriptionClick(int slot, int button, net.minecraft.world.inventory.ContainerInput input) Creates an instance of aClickrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintbutton()Returns the value of thebuttonrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.world.inventory.ContainerInputinput()Returns the value of theinputrecord component.intslot()Returns the value of theslotrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Click
-
-
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
-
button
-
input
-