Class ClickPlan
java.lang.Object
org.geysermc.geyser.inventory.click.ClickPlan
-
Constructor Summary
ConstructorsConstructorDescriptionClickPlan(GeyserSession session, InventoryTranslator translator, Inventory inventory) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbooleancanStack(int slot, GeyserItemStack item) Test if the item stacks with another item in the specified slot.voidexecute(boolean refresh) voidit.unimi.dsi.fastutil.ints.IntSetgetItem(int slot) booleanisEmpty(int slot) Test if the specified slot is empty.voidsetDesiredBundleSlot(int desiredBundleSlot)
-
Constructor Details
-
ClickPlan
-
-
Method Details
-
add
-
add
-
execute
public void execute(boolean refresh) -
executeForCreativeMode
public void executeForCreativeMode() -
getInventory
-
canStack
Test if the item stacks with another item in the specified slot. This will check the simulated inventory without copying. -
isEmpty
public boolean isEmpty(int slot) Test if the specified slot is empty. This will check the simulated inventory without copying. -
getItem
-
setDesiredBundleSlot
public void setDesiredBundleSlot(int desiredBundleSlot) -
getCursor
-
getAffectedSlots
@Contract("-> new") public it.unimi.dsi.fastutil.ints.IntSet getAffectedSlots()- Returns:
- a new set of all affected slots.
-