public class UpgradeData extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
UpgradeData.BuiltinLogic |
static interface |
UpgradeData.Logic |
Modifier and Type | Field and Description |
---|---|
private static Map<Block,UpgradeData.Logic> |
BLOCK_TO_LOGIC |
private static Set<UpgradeData.Logic> |
CALLBACK_LOGICS |
private int[][] |
centerIndicesToUpgrade |
private static EightWayDirection[] |
EIGHT_WAYS |
private static Logger |
LOGGER |
static UpgradeData |
NO_UPGRADE_DATA |
private EnumSet<EightWayDirection> |
sidesToUpgrade |
Modifier | Constructor and Description |
---|---|
private |
UpgradeData() |
|
UpgradeData(CompoundTag tag) |
Modifier and Type | Method and Description |
---|---|
private static BlockState |
applyAdjacentBlock(BlockState oldState,
Direction dir,
WorldAccess world,
BlockPos currentPos,
BlockPos otherPos) |
boolean |
isDone() |
CompoundTag |
toTag() |
void |
upgrade(WorldChunk chunk) |
private void |
upgradeCenter(WorldChunk chunk) |
private static void |
upgradeSide(WorldChunk chunk,
EightWayDirection side) |
private static final Logger LOGGER
public static final UpgradeData NO_UPGRADE_DATA
private static final EightWayDirection[] EIGHT_WAYS
private static final Map<Block,UpgradeData.Logic> BLOCK_TO_LOGIC
private static final Set<UpgradeData.Logic> CALLBACK_LOGICS
private final EnumSet<EightWayDirection> sidesToUpgrade
private final int[][] centerIndicesToUpgrade
private UpgradeData()
public UpgradeData(CompoundTag tag)
public void upgrade(WorldChunk chunk)
private static void upgradeSide(WorldChunk chunk, EightWayDirection side)
private static BlockState applyAdjacentBlock(BlockState oldState, Direction dir, WorldAccess world, BlockPos currentPos, BlockPos otherPos)
private void upgradeCenter(WorldChunk chunk)
public boolean isDone()
public CompoundTag toTag()