Record Class ContainerClick
java.lang.Object
java.lang.Record
com.zenith.feature.gui.ContainerClick
public record ContainerClick(int slot, ContainerActionType actionType, ContainerAction actionParam)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionContainerClick(int slot, ContainerActionType actionType, ContainerAction actionParam) Creates an instance of aContainerClickrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactionParamrecord component.Returns the value of theactionTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanbooleanbooleanintslot()Returns the value of theslotrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ContainerClick
Creates an instance of aContainerClickrecord class.- Parameters:
slot- the value for theslotrecord componentactionType- the value for theactionTyperecord componentactionParam- the value for theactionParamrecord component
-
-
Method Details
-
isLeftOrRightClick
public boolean isLeftOrRightClick() -
isLeftClick
public boolean isLeftClick() -
isRightClick
public boolean isRightClick() -
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
public int slot()Returns the value of theslotrecord component.- Returns:
- the value of the
slotrecord component
-
actionType
Returns the value of theactionTyperecord component.- Returns:
- the value of the
actionTyperecord component
-
actionParam
Returns the value of theactionParamrecord component.- Returns:
- the value of the
actionParamrecord component
-