Package net.minecraft.world.chunk
Class UpgradeData
java.lang.Object
net.minecraft.world.chunk.UpgradeData
public class UpgradeData extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
UpgradeData.BuiltinLogic
static interface
UpgradeData.Logic
-
Field Summary
Fields Modifier and Type Field 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
-
Constructor Summary
Constructors Modifier Constructor Description UpgradeData(CompoundTag tag, HeightLimitView heightLimitView)
private
UpgradeData(HeightLimitView heightLimitView)
-
Method Summary
Modifier and Type Method 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)
-
Field Details
-
LOGGER
-
NO_UPGRADE_DATA
-
EIGHT_WAYS
-
BLOCK_TO_LOGIC
-
CALLBACK_LOGICS
-
sidesToUpgrade
-
centerIndicesToUpgrade
private final int[][] centerIndicesToUpgrade
-
-
Constructor Details
-
UpgradeData
-
UpgradeData
-
-
Method Details
-
upgrade
-
upgradeSide
-
applyAdjacentBlock
private static BlockState applyAdjacentBlock(BlockState oldState, Direction dir, WorldAccess world, BlockPos currentPos, BlockPos otherPos) -
upgradeCenter
-
isDone
public boolean isDone() -
toTag
-