Class BackpackListener
java.lang.Object
io.github.thebusybiscuit.slimefun4.implementation.listeners.BackpackListener
- All Implemented Interfaces:
Listener
This
Listener
is responsible for all events centered around a SlimefunBackpack
.
This also includes the Cooler
- Author:
- TheBusyBiscuit, Walshy, NihilistBrew, AtomicScience, VoidAngel, John000708
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
openBackpack
(Player p, ItemStack item, SlimefunBackpack backpack) void
void
setBackpackId
(OfflinePlayer backpackOwner, ItemStack item, int line, int id) This method sets the id for a backpack onto the givenItemStack
.
-
Constructor Details
-
BackpackListener
public BackpackListener()
-
-
Method Details
-
register
-
onClose
-
onItemDrop
-
onClick
-
openBackpack
@ParametersAreNonnullByDefault public void openBackpack(Player p, ItemStack item, SlimefunBackpack backpack) -
setBackpackId
public void setBackpackId(@Nonnull OfflinePlayer backpackOwner, @Nonnull ItemStack item, int line, int id) This method sets the id for a backpack onto the givenItemStack
.- Parameters:
backpackOwner
- The owner of this backpackitem
- TheItemStack
to modifyline
- The line at which the ID should be replacedid
- The id of this backpack
-