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

      @NotNull public static @NotNull BlockHandler get(@NotNull @NotNull String namespace)
    • getNamespaceId

      @NotNull public @NotNull NamespaceID getNamespaceId()
      Description copied from interface: BlockHandler
      Gets the id of this handler.

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

      Specified by:
      getNamespaceId in interface BlockHandler
      Returns:
      the namespace id of this handler