Class BlockHandler.Dummy

java.lang.Object
net.minestom.server.instance.block.BlockHandler.Dummy
All Implemented Interfaces:
BlockHandler
Enclosing interface:
BlockHandler

@Internal public static final class BlockHandler.Dummy extends Object implements BlockHandler
Handler used for loaded blocks with unknown namespace in order to do not lose the information while saving, and for runtime debugging purpose.
  • Method Details

    • get

      public static BlockHandler get(String namespace)
    • getKey

      public net.kyori.adventure.key.Key getKey()
      Description copied from interface: BlockHandler
      Gets the id of this handler.

      Used to write the block entity in the anvil world format.

      Specified by:
      getKey in interface BlockHandler
      Returns:
      the key of this handler