Class CustomBlockManager


  • public class CustomBlockManager
    extends java.lang.Object
    • Method Detail

      • registerListener

        public void registerListener()
      • getAssetByKey

        public BlockAsset getAssetByKey​(java.lang.String key)
                                 throws java.lang.UnsupportedOperationException
        Throws:
        java.lang.UnsupportedOperationException
      • fromLocation

        public CustomBlock fromLocation​(org.bukkit.Location location)
      • fromBlock

        public CustomBlock fromBlock​(org.bukkit.block.Block block)
      • create

        public CustomBlock create​(org.bukkit.Location location,
                                  PackObject packObject,
                                  @Nullable
                                  @Nullable org.bukkit.entity.Player player)
                           throws java.io.IOException
        Parameters:
        location - The location where the custom block will be placed!
        packObject - The block config for the custom block
        player - The player who is placing the block
        Returns:
        Returns if it was placed!
        Throws:
        java.io.IOException