net.minecraft.world.level.chunk

public class LevelChunk

extends ChunkAccess

All mapped superinterfaces:

BiomeManager$NoiseBiomeSource, LightChunk, BlockGetter, LevelHeightAccessor, StructureAccess

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

Field summary

Modifier and TypeField
static final org.slf4j.Logger
n
LOGGER
field_12839
LOGGER
private static final TickingBlockEntity
o
NULL_TICKER
field_27221
EMPTY_BLOCK_ENTITY_TICKER
private final Map<BlockPos, LevelChunk$RebindableTickingBlockEntityWrapper>
p
tickersInLevel
field_27222
blockEntityTickers
private boolean
q
loaded
field_12855
loadedToWorld
final Level
r
level
field_12858
world
private Supplier<FullChunkStatus>
s
fullStatus
field_12856
levelTypeProvider
private LevelChunk$PostLoadProcessor
t
postLoad
field_12850
entityLoader
private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<GameEventListenerRegistry>
u
gameEventListenerRegistrySections
field_28129
gameEventDispatchers
private final LevelChunkTicks<Block>
v
blockTicks
field_35471
blockTickScheduler
private final LevelChunkTicks<Fluid>
w
fluidTicks
field_35472
fluidTickScheduler
private LevelChunk$UnsavedListener
x
unsavedListener
field_54971
unsavedListener

Constructor summary

ModifierConstructor
public (Level world, ChunkPos pos)
public (Level world, ChunkPos pos, UpgradeData upgradeData, LevelChunkTicks<Block> blockTickScheduler, LevelChunkTicks<Fluid> fluidTickScheduler, long inhabitedTime, LevelChunkSection[] sectionArrayInitializer, LevelChunk$PostLoadProcessor entityLoader, BlendingData blendingData)
public (ServerLevel world, ProtoChunk protoChunk, LevelChunk$PostLoadProcessor entityLoader)

Method summary

Modifier and TypeMethod
public void
a(dzd$e arg0)
setUnsavedListener(LevelChunk$UnsavedListener arg0)
method_65066(class_2818$class_10368 arg0)
setUnsavedListener(WorldChunk$UnsavedListener unsavedListener)
public void
i()
markUnsaved()
method_65063()
markNeedsSaving()
public TickContainerAccess<Block>
q()
getBlockTicks()
method_12013()
getBlockTickScheduler()
public TickContainerAccess<Fluid>
r()
getFluidTicks()
method_12014()
getFluidTickScheduler()
public ChunkAccess$PackedTicks
a(long arg0)
getTicksForSerialization(long arg0)
method_39296(long arg0)
getTickSchedulers(long arg0)
public GameEventListenerRegistry
a(int arg0)
getListenerRegistry(int arg0)
method_32914(int arg0)
getGameEventDispatcher(int arg0)
public BlockState
a_(ji arg0)
getBlockState(BlockPos arg0)
method_8320(class_2338 arg0)
getBlockState(BlockPos arg0)
public FluidState
b_(ji arg0)
getFluidState(BlockPos arg0)
method_8316(class_2338 arg0)
getFluidState(BlockPos arg0)
public FluidState
a(int arg0, int arg1, int arg2)
getFluidState(int arg0, int arg1, int arg2)
method_12234(int arg0, int arg1, int arg2)
getFluidState(int x, int y, int z)
public BlockState
a(ji arg0, dwy arg1, boolean arg2)
setBlockState(BlockPos arg0, BlockState arg1, boolean arg2)
method_12010(class_2338 arg0, class_2680 arg1, boolean arg2)
setBlockState(BlockPos arg0, BlockState arg1, boolean arg2)
public void
a(bum arg0)
addEntity(Entity arg0)
method_12002(class_1297 arg0)
addEntity(Entity arg0)
private BlockEntity
g(ji arg0)
createBlockEntity(BlockPos arg0)
method_12208(class_2338 arg0)
createBlockEntity(BlockPos pos)
public BlockEntity
c_(ji arg0)
getBlockEntity(BlockPos arg0)
method_8321(class_2338 arg0)
getBlockEntity(BlockPos arg0)
public BlockEntity
a(ji arg0, dzd$b arg1)
getBlockEntity(BlockPos arg0, LevelChunk$EntityCreationType arg1)
method_12201(class_2338 arg0, class_2818$class_2819 arg1)
getBlockEntity(BlockPos pos, WorldChunk$CreationType creationType)
public void
b(dua arg0)
addAndRegisterBlockEntity(BlockEntity arg0)
method_12216(class_2586 arg0)
addBlockEntity(BlockEntity blockEntity)
private boolean
L()
isInLevel()
method_31715()
canTickBlockEntities()
boolean
h(ji arg0)
isTicking(BlockPos arg0)
method_31724(class_2338 arg0)
canTickBlockEntity(BlockPos pos)
public void
a(dua arg0)
setBlockEntity(BlockEntity arg0)
method_12007(class_2586 arg0)
setBlockEntity(BlockEntity arg0)
public CompoundTag
a(ji arg0, jt$a arg1)
getBlockEntityNbtForSaving(BlockPos arg0, HolderLookup$Provider arg1)
method_20598(class_2338 arg0, class_7225$class_7874 arg1)
getPackedBlockEntityNbt(BlockPos arg0, RegistryWrapper$WrapperLookup arg1)
public void
d(ji arg0)
removeBlockEntity(BlockPos arg0)
method_12041(class_2338 arg0)
removeBlockEntity(BlockPos arg0)
private <T extends BlockEntity> void
a(T arg0, ard arg1)
removeGameEventListener(T arg0, ServerLevel arg1)
method_32918(T arg0, class_3218 arg1)
removeGameEventListener(T blockEntity, ServerWorld world)
private void
i(int arg0)
removeGameEventListenerRegistry(int arg0)
method_51382(int arg0)
removeGameEventDispatcher(int ySectionCoord)
private void
k(ji arg0)
removeBlockEntityTicker(BlockPos arg0)
method_31725(class_2338 arg0)
removeBlockEntityTicker(BlockPos pos)
public void
G()
runPostLoad()
method_12206()
loadEntities()
public boolean
E()
isEmpty()
method_12223()
isEmpty()
public void
a(vl arg0, tq arg1, Consumer<acx$b> arg2)
replaceWithPacketData(FriendlyByteBuf arg0, CompoundTag arg1, Consumer<ClientboundLevelChunkPacketData$BlockEntityTagOutput> arg2)
method_12224(class_2540 arg0, class_2487 arg1, Consumer<class_6603$class_6605> arg2)
loadFromPacket(PacketByteBuf buf, NbtCompound nbt, Consumer<ChunkData$BlockEntityVisitor> blockEntityVisitorConsumer)
public void
a(vl arg0)
replaceBiomes(FriendlyByteBuf arg0)
method_49525(class_2540 arg0)
loadBiomeFromPacket(PacketByteBuf buf)
public void
b(boolean arg0)
setLoaded(boolean arg0)
method_12226(boolean arg0)
setLoadedToWorld(boolean loadedToWorld)
public Level
H()
getLevel()
method_12200()
getWorld()
public Map<BlockPos, BlockEntity>
I()
getBlockEntities()
method_12214()
getBlockEntities()
public void
a(ard arg0)
postProcessGeneration(ServerLevel arg0)
method_12221(class_3218 arg0)
runPostProcessing(ServerWorld world)
private BlockEntity
a(ji arg0, tq arg1)
promotePendingBlockEntity(BlockPos arg0, CompoundTag arg1)
method_12204(class_2338 arg0, class_2487 arg1)
loadBlockEntity(BlockPos pos, NbtCompound nbt)
public void
d(long arg0)
unpackTicks(long arg0)
method_20530(long arg0)
disableTickSchedulers(long time)
public void
b(ard arg0)
registerTickContainerInLevel(ServerLevel arg0)
method_39305(class_3218 arg0)
addChunkTickSchedulers(ServerWorld world)
public void
c(ard arg0)
unregisterTickContainerFromLevel(ServerLevel arg0)
method_39306(class_3218 arg0)
removeChunkTickSchedulers(ServerWorld world)
public ChunkStatus
n()
getPersistedStatus()
method_12009()
getStatus()
public FullChunkStatus
F()
getFullStatus()
method_12225()
getLevelType()
public void
b(Supplier<aqs> arg0)
setFullStatus(Supplier<FullChunkStatus> arg0)
method_12207(Supplier<class_3194> arg0)
setLevelTypeProvider(Supplier<ChunkLevelType> levelTypeProvider)
public void
J()
clearAllBlockEntities()
method_38289()
clear()
public void
K()
registerAllBlockEntitiesAfterLevelLoad()
method_31713()
updateAllBlockEntities()
private <T extends BlockEntity> void
b(T arg0, ard arg1)
addGameEventListener(T arg0, ServerLevel arg1)
method_32919(T arg0, class_3218 arg1)
updateGameEventListener(T blockEntity, ServerWorld world)
private <T extends BlockEntity> void
c(T arg0)
updateBlockEntityTicker(T arg0)
method_31723(T arg0)
updateTicker(T blockEntity)
private <T extends BlockEntity> TickingBlockEntity
a(T arg0, dub<T> arg1)
createTicker(T arg0, BlockEntityTicker<T> arg1)
method_31718(T arg0, class_5558<T> arg1)
wrapTicker(T blockEntity, BlockEntityTicker<T> blockEntityTicker)