public interface IFSlotClickContext extends IFSlotContext, IFConfinedContext
IFSlotContext| Modifier and Type | Method and Description |
|---|---|
@NotNull ViewContainer |
getClickedContainer() |
int |
getClickedSlot() |
default 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() |
java.lang.Object |
getPlatformEvent()
This is an internal inventory-framework API that should not be used from outside of
this library.
|
boolean |
isCancelled()
If the click was cancelled.
|
boolean |
isCombined()
This is an internal inventory-framework API that should not be used from outside of
this library.
|
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.
|
default boolean |
isShiftLeftClick() |
default boolean |
isShiftRightClick() |
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, isEndless, isShared, openForEveryone, openForEveryone, performClickInComponent, removeComponent, removeViewer, renderComponent, resetTitleForEveryone, setActive, setEndless, 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()
default boolean isShiftLeftClick()
default boolean isShiftRightClick()
boolean isKeyboardClick()
boolean isOutsideClick()
default java.lang.String getClickIdentifier()
boolean isCancelled()
void setCancelled(boolean cancelled)
cancelled - If the click should be cancelled.@ApiStatus.Internal java.lang.Object getPlatformEvent()
@ApiStatus.Internal boolean isCombined()