Package | Description |
---|---|
io.github.thebusybiscuit.slimefun4.core | |
me.mrCookieSlime.Slimefun.Objects.handlers | |
me.mrCookieSlime.Slimefun.Objects.SlimefunItem |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.Class<? extends ItemHandler>,java.util.Set<ItemHandler>> |
SlimefunRegistry.getItemHandlers() |
java.util.Map<java.lang.Class<? extends ItemHandler>,java.util.Set<ItemHandler>> |
SlimefunRegistry.getItemHandlers() |
Modifier and Type | Interface and Description |
---|---|
interface |
BlockBreakHandler |
interface |
BlockDispenseHandler
This
ItemHandler is triggered when the SlimefunItem it was assigned to
is a Dispenser and was triggered. |
interface |
BlockPlaceHandler |
interface |
BlockUseHandler |
interface |
BowShootHandler
This
ItemHandler is triggered when the SlimefunItem it was assigned to
is a SlimefunBow and an Arrow fired from this bow hit a LivingEntity . |
interface |
EntityKillHandler
If this
ItemHandler is added to a SlimefunItem it will listen
for any EntityDeathEvent that was triggered by a Player using
the SlimefunItem this EntityKillHandler was linked to. |
interface |
ItemConsumptionHandler
This
ItemHandler is triggered when the SlimefunItem it was assigned to
has been consumed. |
interface |
ItemDropHandler |
interface |
ItemUseHandler
This
ItemHandler is triggered when the SlimefunItem it was assigned to
is right-clicked. |
interface |
MultiBlockInteractionHandler
|
Modifier and Type | Class and Description |
---|---|
class |
BlockTicker |
class |
GeneratorTicker |
class |
RainbowTicker
This is a
BlockTicker that is exclusively used for Rainbow blocks. |
Modifier and Type | Method and Description |
---|---|
default java.lang.Class<? extends ItemHandler> |
MultiBlockInteractionHandler.getIdentifier() |
default java.lang.Class<? extends ItemHandler> |
ItemUseHandler.getIdentifier() |
java.lang.Class<? extends ItemHandler> |
ItemHandler.getIdentifier()
This method returns the identifier for this
ItemHandler . |
default java.lang.Class<? extends ItemHandler> |
ItemDropHandler.getIdentifier() |
default java.lang.Class<? extends ItemHandler> |
ItemConsumptionHandler.getIdentifier() |
java.lang.Class<? extends ItemHandler> |
GeneratorTicker.getIdentifier() |
default java.lang.Class<? extends ItemHandler> |
EntityKillHandler.getIdentifier() |
default java.lang.Class<? extends ItemHandler> |
BowShootHandler.getIdentifier() |
default java.lang.Class<? extends ItemHandler> |
BlockUseHandler.getIdentifier() |
java.lang.Class<? extends ItemHandler> |
BlockTicker.getIdentifier() |
default java.lang.Class<? extends ItemHandler> |
BlockPlaceHandler.getIdentifier() |
default java.lang.Class<? extends ItemHandler> |
BlockDispenseHandler.getIdentifier() |
default java.lang.Class<? extends ItemHandler> |
BlockBreakHandler.getIdentifier() |
Modifier and Type | Class and Description |
---|---|
class |
SimpleSlimefunItem<T extends ItemHandler>
This is basically a quickstart class for your very first
SlimefunItem . |
Modifier and Type | Method and Description |
---|---|
<T extends ItemHandler> |
SlimefunItem.callItemHandler(java.lang.Class<T> c,
java.util.function.Consumer<T> callable)
This method calls every
ItemHandler of the given Class
and performs the action as specified via the Consumer . |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<ItemHandler> |
SlimefunItem.getHandlers()
This method returns a Set of item handlers associated with this Item.
|
static java.util.Set<ItemHandler> |
SlimefunItem.getHandlers(java.lang.Class<? extends ItemHandler> identifier) |
Modifier and Type | Method and Description |
---|---|
void |
SlimefunItem.addItemHandler(ItemHandler... handlers) |
Modifier and Type | Method and Description |
---|---|
static java.util.Set<ItemHandler> |
SlimefunItem.getHandlers(java.lang.Class<? extends ItemHandler> identifier) |