Class BlockPersistentData

java.lang.Object
com.github.darksoulq.abyssallib.world.util.BlockPersistentData

public final class BlockPersistentData extends Object
Provides per-block persistent data stored inside the chunk.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.persistence.PersistentDataContainer
    get(org.bukkit.block.Block block)
    Returns the persistent data container associated with the block.
    static void
    remove(org.bukkit.block.Block block)
    Removes all persisted data associated with this block.

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • get

      public static org.bukkit.persistence.PersistentDataContainer get(org.bukkit.block.Block block)
      Returns the persistent data container associated with the block.
      Parameters:
      block - block to access
      Returns:
      persistent data container for that block
    • remove

      public static void remove(org.bukkit.block.Block block)
      Removes all persisted data associated with this block.
      Parameters:
      block - block to clear