Class BlockManagerImpl
java.lang.Object
com.github.imdabigboss.easydatapack.backend.managers.BlockManagerImpl
- All Implemented Interfaces:
BlockManager,org.bukkit.event.Listener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblockToCustomBlock(@NonNull org.bukkit.block.Block block)Gets a custom from aBlock.@NonNull List<CustomBlock>Gets a list of all registered custom blocks.voidonBlockBreak(org.bukkit.event.block.BlockBreakEvent event)voidonBlockPlaceEvent(org.bukkit.event.block.BlockPlaceEvent event)voidonMushroomPhysics(org.bukkit.event.block.BlockPhysicsEvent event)voidonPickBlockEvent(org.bukkit.event.inventory.InventoryClickEvent event)voidonPlayerInteract(org.bukkit.event.player.PlayerInteractEvent event)voidregisterCustomBlock(CustomBlock block)
-
Constructor Details
-
BlockManagerImpl
-
-
Method Details
-
registerCustomBlock
-
getCustomBlocks
Description copied from interface:BlockManagerGets a list of all registered custom blocks.- Specified by:
getCustomBlocksin interfaceBlockManager- Returns:
- a list of all registered custom blocks
-
blockToCustomBlock
Description copied from interface:BlockManagerGets a custom from aBlock.- Specified by:
blockToCustomBlockin interfaceBlockManager- Parameters:
block- the block to get the custom block from- Returns:
- the custom block with the given name. Will be null if the block is not a custom block.
-
onPlayerInteract
public void onPlayerInteract(org.bukkit.event.player.PlayerInteractEvent event) -
onBlockPlaceEvent
public void onBlockPlaceEvent(org.bukkit.event.block.BlockPlaceEvent event) -
onBlockBreak
public void onBlockBreak(org.bukkit.event.block.BlockBreakEvent event) -
onMushroomPhysics
public void onMushroomPhysics(org.bukkit.event.block.BlockPhysicsEvent event) -
onPickBlockEvent
public void onPickBlockEvent(org.bukkit.event.inventory.InventoryClickEvent event)
-