Uses of Interface
io.github.thebusybiscuit.slimefun4.api.items.ItemHandler
Packages that use ItemHandler
Package
Description
This package contains all different extensions of
Exception
that Slimefun
uses internally.This package contains a few classes that revolve around the API for
SlimefunItem
, such as
ItemSetting
This package holds the core systems of Slimefun, these are not necessarily used as an API
but rather provide the core functionality of this
Plugin
.This package contains all variations of
ItemHandler
that
can be assigned to a SlimefunItem
This package holds simple implementations of
ItemHandler
.This package contains the different classes for each
SlimefunItem
This package holds implementations of
SlimefunItem
that are
related to healing yourself.-
Uses of ItemHandler in io.github.thebusybiscuit.slimefun4.api.exceptions
Constructors in io.github.thebusybiscuit.slimefun4.api.exceptions with parameters of type ItemHandlerModifierConstructorDescriptionIncompatibleItemHandlerException
(String message, SlimefunItem item, ItemHandler handler) -
Uses of ItemHandler in io.github.thebusybiscuit.slimefun4.api.items
Methods in io.github.thebusybiscuit.slimefun4.api.items with type parameters of type ItemHandlerModifier and TypeMethodDescription<T extends ItemHandler>
booleanSlimefunItem.callItemHandler
(Class<T> c, Consumer<T> callable) This method calls everyItemHandler
of the givenClass
and performs the action as specified via theConsumer
.Methods in io.github.thebusybiscuit.slimefun4.api.items that return types with arguments of type ItemHandlerModifier and TypeMethodDescriptionSlimefunItem.getHandlers()
This method returns a Set of item handlers associated with this Item.Class<? extends ItemHandler>
ItemHandler.getIdentifier()
This method returns the identifier for thisItemHandler
.Methods in io.github.thebusybiscuit.slimefun4.api.items with parameters of type ItemHandlerModifier and TypeMethodDescriptionfinal void
SlimefunItem.addItemHandler
(ItemHandler... handlers) This method will add any givenItemHandler
to thisSlimefunItem
. -
Uses of ItemHandler in io.github.thebusybiscuit.slimefun4.core
Methods in io.github.thebusybiscuit.slimefun4.core that return types with arguments of type ItemHandlerModifier and TypeMethodDescriptionMap<Class<? extends ItemHandler>,
Set<ItemHandler>> SlimefunRegistry.getGlobalItemHandlers()
Map<Class<? extends ItemHandler>,
Set<ItemHandler>> SlimefunRegistry.getGlobalItemHandlers()
SlimefunRegistry.getGlobalItemHandlers
(Class<? extends ItemHandler> identifier) Method parameters in io.github.thebusybiscuit.slimefun4.core with type arguments of type ItemHandlerModifier and TypeMethodDescriptionSlimefunRegistry.getGlobalItemHandlers
(Class<? extends ItemHandler> identifier) -
Uses of ItemHandler in io.github.thebusybiscuit.slimefun4.core.handlers
Subinterfaces of ItemHandler in io.github.thebusybiscuit.slimefun4.core.handlersModifier and TypeInterfaceDescriptioninterface
ThisItemHandler
is triggered when theSlimefunItem
it was assigned to is aDispenser
and was triggered.interface
interface
ThisItemHandler
is triggered when theSlimefunItem
it was assigned to is aSlimefunBow
and an Arrow fired from this bow hit aLivingEntity
.interface
interface
If thisItemHandler
is added to aSlimefunItem
it will listen for anyEntityDeathEvent
that was triggered by aPlayer
using theSlimefunItem
thisEntityKillHandler
was linked to.interface
AGlobalItemHandler
is a special type ofItemHandler
which is not associated with one particularSlimefunItem
but rather exists seperate from them, similar to anEvent
Listener
.interface
ThisItemHandler
is triggered when theSlimefunItem
it was assigned to has been consumed.interface
interface
ThisItemHandler
is triggered when theSlimefunItem
it was assigned to is right-clicked.interface
interface
interface
Classes in io.github.thebusybiscuit.slimefun4.core.handlers that implement ItemHandlerModifier and TypeClassDescriptionclass
class
ThisItemHandler
is called whenever aBlock
was placed.class
This is aBlockTicker
that is exclusively used for Rainbow blocks.Methods in io.github.thebusybiscuit.slimefun4.core.handlers that return types with arguments of type ItemHandlerModifier and TypeMethodDescriptionfinal Class<? extends ItemHandler>
BlockBreakHandler.getIdentifier()
default Class<? extends ItemHandler>
BlockDispenseHandler.getIdentifier()
final Class<? extends ItemHandler>
BlockPlaceHandler.getIdentifier()
default Class<? extends ItemHandler>
BlockUseHandler.getIdentifier()
default Class<? extends ItemHandler>
BowShootHandler.getIdentifier()
default Class<? extends ItemHandler>
EntityInteractHandler.getIdentifier()
default Class<? extends ItemHandler>
EntityKillHandler.getIdentifier()
default Class<? extends ItemHandler>
ItemConsumptionHandler.getIdentifier()
default Class<? extends ItemHandler>
ItemDropHandler.getIdentifier()
default Class<? extends ItemHandler>
ItemUseHandler.getIdentifier()
default Class<? extends ItemHandler>
MultiBlockInteractionHandler.getIdentifier()
default Class<? extends ItemHandler>
ToolUseHandler.getIdentifier()
default Class<? extends ItemHandler>
WeaponUseHandler.getIdentifier()
-
Uses of ItemHandler in io.github.thebusybiscuit.slimefun4.implementation.handlers
Classes in io.github.thebusybiscuit.slimefun4.implementation.handlers that implement ItemHandlerModifier and TypeClassDescriptionclass
This simple implementation ofBlockBreakHandler
will execute the same code for when theBlock
is broken by aPlayer
, by aMinerAndroid
or an explosion.class
VanillaInventoryDropHandler<T extends BlockState & InventoryHolder>
This is an implementation ofBlockBreakHandler
which is suited for anySlimefunItem
that uses the vanillaInventory
from theBlockState
. -
Uses of ItemHandler in io.github.thebusybiscuit.slimefun4.implementation.items
Classes in io.github.thebusybiscuit.slimefun4.implementation.items with type parameters of type ItemHandlerModifier and TypeClassDescriptionclass
SimpleSlimefunItem<T extends ItemHandler>
This is basically a quickstart class for your very firstSlimefunItem
. -
Uses of ItemHandler in io.github.thebusybiscuit.slimefun4.implementation.items.medical
Classes in io.github.thebusybiscuit.slimefun4.implementation.items.medical with type parameters of type ItemHandler -
Uses of ItemHandler in me.mrCookieSlime.Slimefun.Objects.handlers
Classes in me.mrCookieSlime.Slimefun.Objects.handlers that implement ItemHandlerMethods in me.mrCookieSlime.Slimefun.Objects.handlers that return types with arguments of type ItemHandler