Uses of Enum Class
io.github.thebusybiscuit.slimefun4.api.items.ItemSpawnReason
Package
Description
This package contains all extensions of
Event
that Slimefun provides
and allows you to listen to.This package contains a few classes that revolve around the API for
SlimefunItem
, such as
ItemSetting
This package contains some utility classes that offer handy ways to do stuff.
-
Uses of ItemSpawnReason in io.github.thebusybiscuit.slimefun4.api.events
Modifier and TypeMethodDescriptionSlimefunItemSpawnEvent.getItemSpawnReason()
This returns theItemSpawnReason
why we dropped anItemStack
.ModifierConstructorDescriptionSlimefunItemSpawnEvent
(Player player, Location location, ItemStack itemStack, ItemSpawnReason itemSpawnReason) SlimefunItemSpawnEvent
(Location location, ItemStack itemStack, ItemSpawnReason itemSpawnReason) -
Uses of ItemSpawnReason in io.github.thebusybiscuit.slimefun4.api.items
Modifier and TypeMethodDescriptionstatic ItemSpawnReason
Returns the enum constant of this class with the specified name.static ItemSpawnReason[]
ItemSpawnReason.values()
Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of ItemSpawnReason in io.github.thebusybiscuit.slimefun4.utils
Modifier and TypeMethodDescriptionstatic Item
SlimefunUtils.spawnItem
(Location loc, ItemStack item, ItemSpawnReason reason) Helper method to spawn anItemStack
.static Item
SlimefunUtils.spawnItem
(Location loc, ItemStack item, ItemSpawnReason reason, boolean addRandomOffset) Helper method to spawn anItemStack
.static Item
SlimefunUtils.spawnItem
(Location loc, ItemStack item, ItemSpawnReason reason, boolean addRandomOffset, Player player) Helper method to spawn anItemStack
.