public interface IFSlotClickContext extends IFSlotContext, IFConfinedContext
IFSlotContext| Modifier and Type | Method and Description |
|---|---|
@NotNull ViewContainer |
getClickedContainer() |
int |
getClickedSlot() |
@NotNull java.lang.String |
getClickIdentifier()
The click identifier, available only in cases where the library does not cover all types of
clicks, so you can discover the type of click through its identifier.
|
Component |
getComponent() |
boolean |
isCancelled()
If the click was cancelled.
|
boolean |
isKeyboardClick()
If the click source came from a keyboard, e.g.
|
boolean |
isLeftClick()
If the click was using the left mouse button.
|
boolean |
isMiddleClick()
If the click was using the middle mouse button, commonly known as the scroll button.
|
boolean |
isOutsideClick()
If the click did not occur within any containers.
|
boolean |
isRightClick()
If the click was using the right mouse button.
|
boolean |
isShiftClick()
If the click was accompanied by a click holding the keyboard shift button.
|
void |
setCancelled(boolean cancelled)
Cancels the click.
|
getContainer, getParent, getSlot, isOnEntityContainer, setSlotback, back, canBack, closeForPlayer, getViewer, openForPlayer, openForPlayer, resetTitleForPlayer, updateTitleForPlayeraddComponent, addViewer, closeForEveryone, getComponentsAt, getConfig, getId, getIndexedViewers, getInitialData, getInitialTitle, getRoot, getViewers, isActive, isShared, openForEveryone, openForEveryone, removeComponent, removeViewer, renderComponent, resetTitleForEveryone, setActive, setInitialData, update, updateComponent, updateTitleForEveryonegetInternalStateValue, getRawStateValue, getStateValues, getUninitializedStateValue, initializeState, updateState, watchStategetComponents, getInternalComponents@NotNull @NotNull ViewContainer getClickedContainer()
Component getComponent()
int getClickedSlot()
boolean isLeftClick()
boolean isRightClick()
boolean isMiddleClick()
boolean isShiftClick()
boolean isKeyboardClick()
boolean isOutsideClick()
@NotNull @NotNull java.lang.String getClickIdentifier()
boolean isCancelled()
void setCancelled(boolean cancelled)
cancelled - If the click should be cancelled.