net.minecraft.world.chunk

public class WorldChunk

extends Chunk implements DebugTrackable

All mapped superinterfaces:

LightSourceView, BlockView, HeightLimitView, StructureHolder, BiomeAccess$Storage, DebugTrackable

net.minecraft.world.level.chunk.LevelChunk
net.minecraft.class_2818
net.minecraft.world.chunk.WorldChunk

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_12839
LOGGER
private static final BlockEntityTickInvoker
NULL_TICKER
field_27221
EMPTY_BLOCK_ENTITY_TICKER
private final Map<BlockPos, WorldChunk$WrappedBlockEntityTickInvoker>
tickersInLevel
field_27222
blockEntityTickers
private boolean
loaded
field_12855
loadedToWorld
private final World
level
field_12858
world
private Supplier<ChunkLevelType>
fullStatus
field_12856
levelTypeProvider
private WorldChunk$EntityLoader
postLoad
field_12850
entityLoader
private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<GameEventDispatcher>
gameEventListenerRegistrySections
field_28129
gameEventDispatchers
private final ChunkTickScheduler<Block>
blockTicks
field_35471
blockTickScheduler
private final ChunkTickScheduler<Fluid>
fluidTicks
field_35472
fluidTickScheduler
private WorldChunk$UnsavedListener
unsavedListener
field_54971
unsavedListener

Constructor summary

ModifierConstructor
public (World world, ChunkPos pos)
public (World world, ChunkPos pos, UpgradeData upgradeData, ChunkTickScheduler<Block> blockTickScheduler, ChunkTickScheduler<Fluid> fluidTickScheduler, long inhabitedTime, ChunkSection[] sectionArrayInitializer, WorldChunk$EntityLoader entityLoader, BlendingData blendingData)
public (ServerWorld world, ProtoChunk protoChunk, WorldChunk$EntityLoader entityLoader)

Method summary

Modifier and TypeMethod
public void
setUnsavedListener(LevelChunk$UnsavedListener unsavedListener)
method_65066(class_2818$class_10368 arg0)
setUnsavedListener(WorldChunk$UnsavedListener unsavedListener)
public void
markUnsaved()
method_65063()
markNeedsSaving()
public BasicTickScheduler<Block>
getBlockTicks()
method_12013()
getBlockTickScheduler()
public BasicTickScheduler<Fluid>
getFluidTicks()
method_12014()
getFluidTickScheduler()
public Chunk$TickSchedulers
getTicksForSerialization(long currentTick)
method_39296(long arg0)
getTickSchedulers(long arg0)
public GameEventDispatcher
getListenerRegistry(int section)
method_32914(int arg0)
getGameEventDispatcher(int arg0)
public BlockState
getBlockState(BlockPos pos)
method_8320(class_2338 arg0)
getBlockState(BlockPos arg0)
public FluidState
getFluidState(BlockPos pos)
method_8316(class_2338 arg0)
getFluidState(BlockPos arg0)
public FluidState
getFluidState(int x, int y, int z)
method_12234(int arg0, int arg1, int arg2)
getFluidState(int x, int y, int z)
public BlockState
setBlockState(BlockPos pos, BlockState state, int flags)
method_12010(class_2338 arg0, class_2680 arg1, int arg2)
setBlockState(BlockPos arg0, BlockState arg1, int arg2)
public void
addEntity(Entity entity)
method_12002(class_1297 arg0)
addEntity(Entity arg0)
private BlockEntity
createBlockEntity(BlockPos pos)
method_12208(class_2338 arg0)
createBlockEntity(BlockPos pos)
public BlockEntity
getBlockEntity(BlockPos pos)
method_8321(class_2338 arg0)
getBlockEntity(BlockPos arg0)
public BlockEntity
getBlockEntity(BlockPos pos, LevelChunk$EntityCreationType creationType)
method_12201(class_2338 arg0, class_2818$class_2819 arg1)
getBlockEntity(BlockPos pos, WorldChunk$CreationType creationType)
public void
addAndRegisterBlockEntity(BlockEntity blockEntity)
method_12216(class_2586 arg0)
addBlockEntity(BlockEntity blockEntity)
private boolean
isInLevel()
method_31715()
canTickBlockEntities()
private boolean
isTicking(BlockPos pos)
method_31724(class_2338 arg0)
canTickBlockEntity(BlockPos pos)
public void
setBlockEntity(BlockEntity blockEntity)
method_12007(class_2586 arg0)
setBlockEntity(BlockEntity arg0)
public NbtCompound
getBlockEntityNbtForSaving(BlockPos blockPos, HolderLookup$Provider registryAccess)
method_20598(class_2338 arg0, class_7225$class_7874 arg1)
getPackedBlockEntityNbt(BlockPos arg0, RegistryWrapper$WrapperLookup arg1)
public void
removeBlockEntity(BlockPos pos)
method_12041(class_2338 arg0)
removeBlockEntity(BlockPos arg0)
private <T extends BlockEntity> void
removeGameEventListener(T blockEntity, ServerLevel level)
method_32918(T arg0, class_3218 arg1)
removeGameEventListener(T blockEntity, ServerWorld world)
private void
removeGameEventListenerRegistry(int sectionY)
method_51382(int arg0)
removeGameEventDispatcher(int ySectionCoord)
private void
removeBlockEntityTicker(BlockPos pos)
method_31725(class_2338 arg0)
removeBlockEntityTicker(BlockPos pos)
public void
runPostLoad()
method_12206()
loadEntities()
public boolean
isEmpty()
method_12223()
isEmpty()
public void
replaceWithPacketData(FriendlyByteBuf buffer, Map<Heightmap$Types, long[]> heightmaps, Consumer<ClientboundLevelChunkPacketData$BlockEntityTagOutput> blockEntities)
method_12224(class_2540 arg0, Map<class_2902$class_2903, long[]> arg1, Consumer<class_6603$class_6605> arg2)
loadFromPacket(PacketByteBuf buf, Map<Heightmap$Type, long[]> heightmaps, Consumer<ChunkData$BlockEntityVisitor> blockEntityVisitorConsumer)
public void
replaceBiomes(FriendlyByteBuf buffer)
method_49525(class_2540 arg0)
loadBiomeFromPacket(PacketByteBuf buf)
public void
setLoaded(boolean loaded)
method_12226(boolean arg0)
setLoadedToWorld(boolean loadedToWorld)
public World
getLevel()
method_12200()
getWorld()
public Map<BlockPos, BlockEntity>
getBlockEntities()
method_12214()
getBlockEntities()
public void
postProcessGeneration(ServerLevel level)
method_12221(class_3218 arg0)
runPostProcessing(ServerWorld world)
private BlockEntity
promotePendingBlockEntity(BlockPos pos, CompoundTag tag)
method_12204(class_2338 arg0, class_2487 arg1)
loadBlockEntity(BlockPos pos, NbtCompound nbt)
public void
unpackTicks(long currentTick)
method_20530(long arg0)
disableTickSchedulers(long time)
public void
registerTickContainerInLevel(ServerLevel level)
method_39305(class_3218 arg0)
addChunkTickSchedulers(ServerWorld world)
public void
unregisterTickContainerFromLevel(ServerLevel level)
method_39306(class_3218 arg0)
removeChunkTickSchedulers(ServerWorld world)
public void
registerDebugValues(ServerLevel level, DebugValueSource$Registration registration)
method_74589(class_3218 arg0, class_12023$class_12024 arg1)
registerTracking(ServerWorld arg0, DebugTrackable$Tracker arg1)
public ChunkStatus
getPersistedStatus()
method_12009()
getStatus()
public ChunkLevelType
getFullStatus()
method_12225()
getLevelType()
public void
setFullStatus(Supplier<FullChunkStatus> fullStatus)
method_12207(Supplier<class_3194> arg0)
setLevelTypeProvider(Supplier<ChunkLevelType> levelTypeProvider)
public void
clearAllBlockEntities()
method_38289()
clear()
public void
registerAllBlockEntitiesAfterLevelLoad()
method_31713()
updateAllBlockEntities()
private <T extends BlockEntity> void
addGameEventListener(T blockEntity, ServerLevel level)
method_32919(T arg0, class_3218 arg1)
updateGameEventListener(T blockEntity, ServerWorld world)
private <T extends BlockEntity> void
updateBlockEntityTicker(T blockEntity)
method_31723(T arg0)
updateTicker(T blockEntity)
private <T extends BlockEntity> BlockEntityTickInvoker
createTicker(T blockEntity, BlockEntityTicker<T> ticker)
method_31718(T arg0, class_5558<T> arg1)
wrapTicker(T blockEntity, BlockEntityTicker<T> blockEntityTicker)
private WorldChunk$WrappedBlockEntityTickInvoker
lambda$updateBlockEntityTicker$9(BlockEntity arg0, BlockEntityTicker arg1, BlockPos arg2, LevelChunk$RebindableTickingBlockEntityWrapper arg3)
method_31719(class_2586 arg0, class_5558 arg1, class_2338 arg2, class_2818$class_5564 arg3)
method_31719(BlockEntity arg0, BlockEntityTicker arg1, BlockPos pos, WorldChunk$WrappedBlockEntityTickInvoker ticker)
private void
lambda$registerAllBlockEntitiesAfterLevelLoad$8(BlockEntity arg0)
method_32920(class_2586 arg0)
method_32920(BlockEntity blockEntity)
private static void
lambda$clearAllBlockEntities$7(LevelChunk$RebindableTickingBlockEntityWrapper arg0)
method_38290(class_2818$class_5564 arg0)
method_38290(WorldChunk$WrappedBlockEntityTickInvoker ticker)
private List
lambda$registerDebugValues$6(ServerLevel arg0)
method_74685(class_3218 arg0)
method_74685(ServerWorld arg0)
private List
lambda$registerDebugValues$5()
method_74684()
method_74684()
private void
lambda$replaceWithPacketData$4(ProblemReporter$ScopedCollector arg0, BlockPos arg1, BlockEntityType arg2, CompoundTag arg3)
method_31716(class_8942$class_11340 arg0, class_2338 arg1, class_2591 arg2, class_2487 arg3)
method_31716(ErrorReporter$Logging arg0, BlockPos pos, BlockEntityType blockEntityType, NbtCompound nbt)
private String
lambda$getFluidState$3(int arg0, int arg1, int arg2)
method_12202(int arg0, int arg1, int arg2)
method_12202(int arg0, int arg1, int arg2)
private String
lambda$getBlockState$2(int arg0, int arg1, int arg2)
method_12227(int arg0, int arg1, int arg2)
method_12227(int arg0, int arg1, int arg2)
private GameEventDispatcher
lambda$getListenerRegistry$1(ServerLevel arg0, int arg1, int arg2)
method_32917(class_3218 arg0, int arg1, int arg2)
method_32917(ServerWorld arg0, int arg1, int sectionCoord)
private static void
lambda$new$0(ChunkPos arg0)
method_65065(class_1923 arg0)
method_65065(ChunkPos pos)