Class BlockRegistry

java.lang.Object
net.pl3x.map.core.registry.Registry<@NotNull Block>
net.pl3x.map.core.registry.BlockRegistry
All Implemented Interfaces:
Iterable<Block>

public class BlockRegistry extends Registry<@NotNull Block>
  • Field Details

  • Constructor Details

    • BlockRegistry

      public BlockRegistry()
  • Method Details

    • init

      public void init()
    • getIndexMap

      public Map<String,Integer> getIndexMap()
    • register

      @NotNull public @NotNull Block register(@NotNull @NotNull String id, int color)
    • get

      @NotNull public @NotNull Block get(@NotNull @NotNull String id)
      Overrides:
      get in class Registry<@NotNull Block>
    • saveToDisk

      public void saveToDisk()