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 classUpgradeData.BuiltinLogicstatic interfaceUpgradeData.Logic -
Field Summary
Fields Modifier and Type Field Description private static Map<Block,UpgradeData.Logic>BLOCK_TO_LOGICprivate static Set<UpgradeData.Logic>CALLBACK_LOGICSprivate int[][]centerIndicesToUpgradeprivate static EightWayDirection[]EIGHT_WAYSprivate static LoggerLOGGERstatic UpgradeDataNO_UPGRADE_DATAprivate EnumSet<EightWayDirection>sidesToUpgrade -
Constructor Summary
Constructors Modifier Constructor Description UpgradeData(CompoundTag tag, HeightLimitView heightLimitView)privateUpgradeData(HeightLimitView heightLimitView) -
Method Summary
Modifier and Type Method Description private static BlockStateapplyAdjacentBlock(BlockState oldState, Direction dir, WorldAccess world, BlockPos currentPos, BlockPos otherPos)booleanisDone()CompoundTagtoTag()voidupgrade(WorldChunk chunk)private voidupgradeCenter(WorldChunk chunk)private static voidupgradeSide(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
-