Class LegacyMapper

java.lang.Object
com.sk89q.worldedit.world.registry.LegacyMapper

public final class LegacyMapper extends Object
  • Method Details

    • getItemFromLegacy

      @Nullable public ItemType getItemFromLegacy(int legacyId)
    • getItemFromLegacy

      public ItemType getItemFromLegacy(String input)
    • getBlockFromLegacy

      public BlockState getBlockFromLegacy(String input)
    • getItemFromLegacy

      @Nullable public ItemType getItemFromLegacy(int legacyId, int data)
    • getLegacyCombined

      @Nullable public Integer getLegacyCombined(ItemType itemType)
    • getLegacyFromItem

      @Nullable public int[] getLegacyFromItem(ItemType itemType)
    • getBlockFromLegacy

      @Nullable public BlockState getBlockFromLegacy(int legacyId)
    • getBlockFromLegacyCombinedId

      @Nullable public BlockState getBlockFromLegacyCombinedId(int combinedId)
    • getBlockFromLegacy

      @Nullable public BlockState getBlockFromLegacy(int legacyId, int data)
    • register

      public void register(int id, int data, BlockStateHolder state)
    • getLegacyCombined

      @Nullable public Integer getLegacyCombined(BlockState blockState)
    • getLegacyCombined

      @Nullable public Integer getLegacyCombined(BlockType type)
    • getLegacyFromBlock

      @Deprecated public int[] getLegacyFromBlock(BlockState blockState)
      Deprecated.
    • getInstance

      public static LegacyMapper getInstance()