public final class LegacyMapper
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
BlockState |
getBlockFromLegacy(int legacyId) |
BlockState |
getBlockFromLegacy(int legacyId,
int data) |
static LegacyMapper |
getInstance() |
ItemType |
getItemFromLegacy(int legacyId) |
ItemType |
getItemFromLegacy(int legacyId,
int data) |
int[] |
getLegacyFromBlock(BlockState blockState) |
int[] |
getLegacyFromItem(ItemType itemType) |
@Nullable public ItemType getItemFromLegacy(int legacyId)
@Nullable public ItemType getItemFromLegacy(int legacyId, int data)
@Nullable public int[] getLegacyFromItem(ItemType itemType)
@Nullable public BlockState getBlockFromLegacy(int legacyId)
@Nullable public BlockState getBlockFromLegacy(int legacyId, int data)
@Nullable public int[] getLegacyFromBlock(BlockState blockState)
public static LegacyMapper getInstance()