Interface BlockPlaceHandler
-
- All Superinterfaces:
ItemHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface BlockPlaceHandler extends ItemHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Class<? extends ItemHandler>
getIdentifier()
This method returns the identifier for thisItemHandler
.boolean
onBlockPlace(BlockPlaceEvent e, ItemStack item)
-
Methods inherited from interface me.mrCookieSlime.Slimefun.Objects.handlers.ItemHandler
isPrivate
-
-
-
-
Method Detail
-
onBlockPlace
boolean onBlockPlace(BlockPlaceEvent e, ItemStack item)
-
getIdentifier
default Class<? extends ItemHandler> getIdentifier()
Description copied from interface:ItemHandler
This method returns the identifier for thisItemHandler
. We use aClass
identifier to group Item Handlers together.- Specified by:
getIdentifier
in interfaceItemHandler
- Returns:
- The
Class
identifier for thisItemHandler
-
-