Class CustomBlock

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static org.bukkit.NamespacedKey DATA_KEY  
      protected static org.bukkit.NamespacedKey TYPE_KEY  
    • Constructor Summary

      Constructors 
      Constructor Description
      CustomBlock​(@NotNull org.bukkit.block.Block block)  
      CustomBlock​(org.bukkit.Location location)  
    • Field Detail

      • TYPE_KEY

        protected static final org.bukkit.NamespacedKey TYPE_KEY
      • DATA_KEY

        protected static final org.bukkit.NamespacedKey DATA_KEY
    • Constructor Detail

      • CustomBlock

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

        public CustomBlock​(@NotNull
                           @NotNull org.bukkit.block.Block block)
    • Method Detail

      • getLocation

        public org.bukkit.Location getLocation()
      • breakBlock

        public void breakBlock​(org.bukkit.entity.Player player)
      • breakBlock

        public void breakBlock()
      • getBlock

        @NotNull
        public @NotNull org.bukkit.block.Block getBlock()
      • configure

        public void configure()
        Configure the PersistentTagContainer to the default values
        Specified by:
        configure in interface CustomElement<BlockAsset>
      • send

        public void send​(org.bukkit.entity.Player player)
                  throws java.io.IOException
        Throws:
        java.io.IOException