Package net.minecraft.world.chunk
Class WorldChunk
java.lang.Object
net.minecraft.world.chunk.Chunk
net.minecraft.world.chunk.WorldChunk
- All Implemented Interfaces:
BiomeAccess.Storage,BlockView,HeightLimitView,StructureHolder
- Direct Known Subclasses:
EmptyChunk
- Mappings:
Namespace Name official cotintermediary net/minecraft/class_2818named net/minecraft/world/chunk/WorldChunk
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumprivate classprivate class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<BlockPos,WorldChunk.WrappedBlockEntityTickInvoker> private static final BlockEntityTickInvokerprivate final Int2ObjectMap<GameEventDispatcher>private @Nullable Supplier<ChunkHolder.LevelType>private booleanprivate @Nullable Consumer<WorldChunk>(package private) static final Logger(package private) final WorldFields inherited from class net.minecraft.world.chunk.Chunk
field_34536, field_34537, field_34538, field_34539, field_34540, field_34541, field_34542, field_34543, field_34544, field_34545, field_34546, field_34547 -
Constructor Summary
ConstructorsConstructorDescriptionWorldChunk(ServerWorld serverWorld, ProtoChunk protoChunk, @Nullable Consumer<WorldChunk> consumer) WorldChunk(World world, ChunkPos pos) WorldChunk(World world, ChunkPos pos, UpgradeData upgradeData, TickScheduler<Block> tickScheduler, TickScheduler<Fluid> blockTickScheduler, long long2, @Nullable ChunkSection[] chunkSection, @Nullable Consumer<WorldChunk> consumer) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBlockEntity(BlockEntity blockEntity) voidDeprecated.private boolean(package private) booleanprivate @Nullable BlockEntityvoidvoidenableTickSchedulers(ServerWorld world) getBlockEntity(BlockPos pos) getBlockEntity(BlockPos pos, WorldChunk.CreationType creationType) getBlockState(BlockPos pos) getFluidState(int x, int y, int z) getFluidState(BlockPos pos) getGameEventDispatcher(int ySectionCoord) getWorld()booleanisEmpty()private @Nullable BlockEntityloadBlockEntity(BlockPos pos, NbtCompound nbt) voidloadFromPacket(PacketByteBuf packetByteBuf, NbtCompound nbtCompound, Consumer<class_6603.class_6605> consumer) voidvoidvoidprivate voidprivate <T extends BlockEntity>
voidremoveGameEventListener(T blockEntity) voidvoidsetBlockEntity(BlockEntity blockEntity) setBlockState(BlockPos pos, BlockState state, boolean moved) voidsetLevelTypeProvider(Supplier<ChunkHolder.LevelType> levelTypeProvider) voidsetLoadedToWorld(boolean loaded) voidprivate <T extends BlockEntity>
voidupdateGameEventListener(T blockEntity) private <T extends BlockEntity>
voidupdateTicker(T blockEntity) private <T extends BlockEntity>
BlockEntityTickInvokerwrapTicker(T blockEntity, BlockEntityTicker<T> blockEntityTicker) Methods inherited from class net.minecraft.world.chunk.Chunk
addPendingBlockEntityNbt, addStructureReference, areSectionsEmptyBetween, getBiomeForNoiseGen, getBlockEntityNbt, getBlockEntityPositions, getBlockTickScheduler, getBottomY, getFluidTickScheduler, getHeight, getHeightmap, getHeightmaps, getHighestNonEmptySection, getHighestNonEmptySectionYOffset, getInhabitedTime, getList, getPos, getPostProcessingLists, getSection, getSectionArray, getStructureReferences, getStructureReferences, getStructureStart, getStructureStarts, getUpgradeData, isLightOn, markBlockForPostProcessing, markBlockForPostProcessing, method_38255, method_38257, method_38258, needsSaving, sampleHeightmap, sampleMaxHeightMap, setHeightmap, setInhabitedTime, setLightOn, setShouldSave, setStructureReferences, setStructureStart, setStructureStartsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.BlockView
getBlockEntity, getDismountHeight, getDismountHeight, getLuminance, getMaxLightLevel, getStatesInBox, raycast, raycast, raycastBlockMethods inherited from interface net.minecraft.world.HeightLimitView
countVerticalSections, getBottomSectionCoord, getSectionIndex, getTopSectionCoord, getTopY, isOutOfHeightLimit, isOutOfHeightLimit, sectionCoordToIndex, sectionIndexToCoord
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official mLcot;m:Lorg/apache/logging/log4j/Logger;intermediary field_12839Lnet/minecraft/class_2818;field_12839:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/world/chunk/WorldChunk;LOGGER:Lorg/apache/logging/log4j/Logger;
-
EMPTY_BLOCK_ENTITY_TICKER
- Mappings:
Namespace Name Mixin selector official nLcot;n:Lcls;intermediary field_27221Lnet/minecraft/class_2818;field_27221:Lnet/minecraft/class_5562;named EMPTY_BLOCK_ENTITY_TICKERLnet/minecraft/world/chunk/WorldChunk;EMPTY_BLOCK_ENTITY_TICKER:Lnet/minecraft/world/chunk/BlockEntityTickInvoker;
-
blockEntityTickers
- Mappings:
Namespace Name Mixin selector official oLcot;o:Ljava/util/Map;intermediary field_27222Lnet/minecraft/class_2818;field_27222:Ljava/util/Map;named blockEntityTickersLnet/minecraft/world/chunk/WorldChunk;blockEntityTickers:Ljava/util/Map;
-
loadedToWorld
private boolean loadedToWorld- Mappings:
Namespace Name Mixin selector official pLcot;p:Zintermediary field_12855Lnet/minecraft/class_2818;field_12855:Znamed loadedToWorldLnet/minecraft/world/chunk/WorldChunk;loadedToWorld:Z
-
world
- Mappings:
Namespace Name Mixin selector official qLcot;q:Lbym;intermediary field_12858Lnet/minecraft/class_2818;field_12858:Lnet/minecraft/class_1937;named worldLnet/minecraft/world/chunk/WorldChunk;world:Lnet/minecraft/world/World;
-
levelTypeProvider
- Mappings:
Namespace Name Mixin selector official rLcot;r:Ljava/util/function/Supplier;intermediary field_12856Lnet/minecraft/class_2818;field_12856:Ljava/util/function/Supplier;named levelTypeProviderLnet/minecraft/world/chunk/WorldChunk;levelTypeProvider:Ljava/util/function/Supplier;
-
loadToWorldConsumer
- Mappings:
Namespace Name Mixin selector official sLcot;s:Ljava/util/function/Consumer;intermediary field_12850Lnet/minecraft/class_2818;field_12850:Ljava/util/function/Consumer;named loadToWorldConsumerLnet/minecraft/world/chunk/WorldChunk;loadToWorldConsumer:Ljava/util/function/Consumer;
-
gameEventDispatchers
- Mappings:
Namespace Name Mixin selector official tLcot;t:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;intermediary field_28129Lnet/minecraft/class_2818;field_28129:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;named gameEventDispatchersLnet/minecraft/world/chunk/WorldChunk;gameEventDispatchers:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
-
-
Constructor Details
-
WorldChunk
- Mappings:
Namespace Name Mixin selector official <init>Lcot;<init>(Lbym;Lbxq;)Vintermediary <init>Lnet/minecraft/class_2818;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_1923;)Vnamed <init>Lnet/minecraft/world/chunk/WorldChunk;<init>(Lnet/minecraft/world/World;Lnet/minecraft/util/math/ChunkPos;)V
-
WorldChunk
public WorldChunk(World world, ChunkPos pos, UpgradeData upgradeData, TickScheduler<Block> tickScheduler, TickScheduler<Fluid> blockTickScheduler, long long2, @Nullable @Nullable ChunkSection[] chunkSection, @Nullable @Nullable Consumer<WorldChunk> consumer) - Mappings:
Namespace Name Mixin selector official <init>Lcot;<init>(Lbym;Lbxq;Lcpe;Lbzf;Lbzf;J[Lcou;Ljava/util/function/Consumer;)Vintermediary <init>Lnet/minecraft/class_2818;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_1923;Lnet/minecraft/class_2843;Lnet/minecraft/class_1951;Lnet/minecraft/class_1951;J[Lnet/minecraft/class_2826;Ljava/util/function/Consumer;)Vnamed <init>Lnet/minecraft/world/chunk/WorldChunk;<init>(Lnet/minecraft/world/World;Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/chunk/UpgradeData;Lnet/minecraft/world/TickScheduler;Lnet/minecraft/world/TickScheduler;J[Lnet/minecraft/world/chunk/ChunkSection;Ljava/util/function/Consumer;)V
-
WorldChunk
public WorldChunk(ServerWorld serverWorld, ProtoChunk protoChunk, @Nullable @Nullable Consumer<WorldChunk> consumer) - Mappings:
Namespace Name Mixin selector official <init>Lcot;<init>(Laca;Lcpb;Ljava/util/function/Consumer;)Vintermediary <init>Lnet/minecraft/class_2818;<init>(Lnet/minecraft/class_3218;Lnet/minecraft/class_2839;Ljava/util/function/Consumer;)Vnamed <init>Lnet/minecraft/world/chunk/WorldChunk;<init>(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/chunk/ProtoChunk;Ljava/util/function/Consumer;)V
-
-
Method Details
-
getGameEventDispatcher
- Overrides:
getGameEventDispatcherin classChunk- Mappings:
Namespace Name Mixin selector official aLcoi;a(I)Lcqs;intermediary method_32914Lnet/minecraft/class_2791;method_32914(I)Lnet/minecraft/class_5713;named getGameEventDispatcherLnet/minecraft/world/chunk/Chunk;getGameEventDispatcher(I)Lnet/minecraft/world/event/listener/GameEventDispatcher;
-
getBlockState
- Mappings:
Namespace Name Mixin selector official a_Lbxp;a_(Lgh;)Lcmo;intermediary method_8320Lnet/minecraft/class_1922;method_8320(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;named getBlockStateLnet/minecraft/world/BlockView;getBlockState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
getFluidState
- Mappings:
Namespace Name Mixin selector official b_Lbxp;b_(Lgh;)Ldhk;intermediary method_8316Lnet/minecraft/class_1922;method_8316(Lnet/minecraft/class_2338;)Lnet/minecraft/class_3610;named getFluidStateLnet/minecraft/world/BlockView;getFluidState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/fluid/FluidState;
-
getFluidState
- Mappings:
Namespace Name Mixin selector official aLcot;a(III)Ldhk;intermediary method_12234Lnet/minecraft/class_2818;method_12234(III)Lnet/minecraft/class_3610;named getFluidStateLnet/minecraft/world/chunk/WorldChunk;getFluidState(III)Lnet/minecraft/fluid/FluidState;
-
setBlockState
- Specified by:
setBlockStatein classChunk- Mappings:
Namespace Name Mixin selector official aLcoi;a(Lgh;Lcmo;Z)Lcmo;intermediary method_12010Lnet/minecraft/class_2791;method_12010(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)Lnet/minecraft/class_2680;named setBlockStateLnet/minecraft/world/chunk/Chunk;setBlockState(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)Lnet/minecraft/block/BlockState;
-
addEntity
Deprecated. -
createBlockEntity
- Mappings:
Namespace Name Mixin selector official jLcot;j(Lgh;)Lckl;intermediary method_12208Lnet/minecraft/class_2818;method_12208(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2586;named createBlockEntityLnet/minecraft/world/chunk/WorldChunk;createBlockEntity(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/entity/BlockEntity;
-
getBlockEntity
- Mappings:
Namespace Name Mixin selector official c_Lbxp;c_(Lgh;)Lckl;intermediary method_8321Lnet/minecraft/class_1922;method_8321(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2586;named getBlockEntityLnet/minecraft/world/BlockView;getBlockEntity(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/entity/BlockEntity;
-
getBlockEntity
@Nullable public @Nullable BlockEntity getBlockEntity(BlockPos pos, WorldChunk.CreationType creationType) - Mappings:
Namespace Name Mixin selector official aLcot;a(Lgh;Lcot$b;)Lckl;intermediary method_12201Lnet/minecraft/class_2818;method_12201(Lnet/minecraft/class_2338;Lnet/minecraft/class_2818$class_2819;)Lnet/minecraft/class_2586;named getBlockEntityLnet/minecraft/world/chunk/WorldChunk;getBlockEntity(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/chunk/WorldChunk$CreationType;)Lnet/minecraft/block/entity/BlockEntity;
-
addBlockEntity
- Mappings:
Namespace Name Mixin selector official bLcot;b(Lckl;)Vintermediary method_12216Lnet/minecraft/class_2818;method_12216(Lnet/minecraft/class_2586;)Vnamed addBlockEntityLnet/minecraft/world/chunk/WorldChunk;addBlockEntity(Lnet/minecraft/block/entity/BlockEntity;)V
-
canTickBlockEntities
private boolean canTickBlockEntities()- Mappings:
Namespace Name Mixin selector official CLcot;C()Zintermediary method_31715Lnet/minecraft/class_2818;method_31715()Znamed canTickBlockEntitiesLnet/minecraft/world/chunk/WorldChunk;canTickBlockEntities()Z
-
canTickBlockEntity
- Mappings:
Namespace Name Mixin selector official kLcot;k(Lgh;)Zintermediary method_31724Lnet/minecraft/class_2818;method_31724(Lnet/minecraft/class_2338;)Znamed canTickBlockEntityLnet/minecraft/world/chunk/WorldChunk;canTickBlockEntity(Lnet/minecraft/util/math/BlockPos;)Z
-
setBlockEntity
- Specified by:
setBlockEntityin classChunk- Mappings:
Namespace Name Mixin selector official aLcoi;a(Lckl;)Vintermediary method_12007Lnet/minecraft/class_2791;method_12007(Lnet/minecraft/class_2586;)Vnamed setBlockEntityLnet/minecraft/world/chunk/Chunk;setBlockEntity(Lnet/minecraft/block/entity/BlockEntity;)V
-
getPackedBlockEntityNbt
- Specified by:
getPackedBlockEntityNbtin classChunk- Mappings:
Namespace Name Mixin selector official gLcoi;g(Lgh;)Lnb;intermediary method_20598Lnet/minecraft/class_2791;method_20598(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2487;named getPackedBlockEntityNbtLnet/minecraft/world/chunk/Chunk;getPackedBlockEntityNbt(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/nbt/NbtCompound;
-
removeBlockEntity
- Specified by:
removeBlockEntityin classChunk- Mappings:
Namespace Name Mixin selector official dLcoi;d(Lgh;)Vintermediary method_12041Lnet/minecraft/class_2791;method_12041(Lnet/minecraft/class_2338;)Vnamed removeBlockEntityLnet/minecraft/world/chunk/Chunk;removeBlockEntity(Lnet/minecraft/util/math/BlockPos;)V
-
removeGameEventListener
- Mappings:
Namespace Name Mixin selector official cLcot;c(Lckl;)Vintermediary method_32918Lnet/minecraft/class_2818;method_32918(Lnet/minecraft/class_2586;)Vnamed removeGameEventListenerLnet/minecraft/world/chunk/WorldChunk;removeGameEventListener(Lnet/minecraft/block/entity/BlockEntity;)V
-
removeBlockEntityTicker
- Mappings:
Namespace Name Mixin selector official lLcot;l(Lgh;)Vintermediary method_31725Lnet/minecraft/class_2818;method_31725(Lnet/minecraft/class_2338;)Vnamed removeBlockEntityTickerLnet/minecraft/world/chunk/WorldChunk;removeBlockEntityTicker(Lnet/minecraft/util/math/BlockPos;)V
-
loadToWorld
public void loadToWorld()- Mappings:
Namespace Name Mixin selector official vLcot;v()Vintermediary method_12206Lnet/minecraft/class_2818;method_12206()Vnamed loadToWorldLnet/minecraft/world/chunk/WorldChunk;loadToWorld()V
-
isEmpty
public boolean isEmpty()- Mappings:
Namespace Name Mixin selector official tLcot;t()Zintermediary method_12223Lnet/minecraft/class_2818;method_12223()Znamed isEmptyLnet/minecraft/world/chunk/WorldChunk;isEmpty()Z
-
loadFromPacket
public void loadFromPacket(PacketByteBuf packetByteBuf, NbtCompound nbtCompound, Consumer<class_6603.class_6605> consumer) - Mappings:
Namespace Name Mixin selector official aLcot;a(Loh;Lnb;Ljava/util/function/Consumer;)Vintermediary method_12224Lnet/minecraft/class_2818;method_12224(Lnet/minecraft/class_2540;Lnet/minecraft/class_2487;Ljava/util/function/Consumer;)Vnamed loadFromPacketLnet/minecraft/world/chunk/WorldChunk;loadFromPacket(Lnet/minecraft/network/PacketByteBuf;Lnet/minecraft/nbt/NbtCompound;Ljava/util/function/Consumer;)V
-
setLoadedToWorld
public void setLoadedToWorld(boolean loaded) - Mappings:
Namespace Name Mixin selector official cLcot;c(Z)Vintermediary method_12226Lnet/minecraft/class_2818;method_12226(Z)Vnamed setLoadedToWorldLnet/minecraft/world/chunk/WorldChunk;setLoadedToWorld(Z)V
-
getWorld
- Mappings:
Namespace Name Mixin selector official wLcot;w()Lbym;intermediary method_12200Lnet/minecraft/class_2818;method_12200()Lnet/minecraft/class_1937;named getWorldLnet/minecraft/world/chunk/WorldChunk;getWorld()Lnet/minecraft/world/World;
-
getBlockEntities
- Mappings:
Namespace Name Mixin selector official xLcot;x()Ljava/util/Map;intermediary method_12214Lnet/minecraft/class_2818;method_12214()Ljava/util/Map;named getBlockEntitiesLnet/minecraft/world/chunk/WorldChunk;getBlockEntities()Ljava/util/Map;
-
getLightSourcesStream
- Specified by:
getLightSourcesStreamin classChunk- Mappings:
Namespace Name Mixin selector official nLcoi;n()Ljava/util/stream/Stream;intermediary method_12018Lnet/minecraft/class_2791;method_12018()Ljava/util/stream/Stream;named getLightSourcesStreamLnet/minecraft/world/chunk/Chunk;getLightSourcesStream()Ljava/util/stream/Stream;
-
runPostProcessing
public void runPostProcessing()- Mappings:
Namespace Name Mixin selector official yLcot;y()Vintermediary method_12221Lnet/minecraft/class_2818;method_12221()Vnamed runPostProcessingLnet/minecraft/world/chunk/WorldChunk;runPostProcessing()V
-
loadBlockEntity
- Mappings:
Namespace Name Mixin selector official aLcot;a(Lgh;Lnb;)Lckl;intermediary method_12204Lnet/minecraft/class_2818;method_12204(Lnet/minecraft/class_2338;Lnet/minecraft/class_2487;)Lnet/minecraft/class_2586;named loadBlockEntityLnet/minecraft/world/chunk/WorldChunk;loadBlockEntity(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/block/entity/BlockEntity;
-
disableTickSchedulers
public void disableTickSchedulers()- Mappings:
Namespace Name Mixin selector official zLcot;z()Vintermediary method_20530Lnet/minecraft/class_2818;method_20530()Vnamed disableTickSchedulersLnet/minecraft/world/chunk/WorldChunk;disableTickSchedulers()V
-
enableTickSchedulers
- Mappings:
Namespace Name Mixin selector official aLcot;a(Laca;)Vintermediary method_20471Lnet/minecraft/class_2818;method_20471(Lnet/minecraft/class_3218;)Vnamed enableTickSchedulersLnet/minecraft/world/chunk/WorldChunk;enableTickSchedulers(Lnet/minecraft/server/world/ServerWorld;)V
-
getStatus
-
getLevelType
- Mappings:
Namespace Name Mixin selector official uLcot;u()Labm$c;intermediary method_12225Lnet/minecraft/class_2818;method_12225()Lnet/minecraft/class_3193$class_3194;named getLevelTypeLnet/minecraft/world/chunk/WorldChunk;getLevelType()Lnet/minecraft/server/world/ChunkHolder$LevelType;
-
setLevelTypeProvider
- Mappings:
Namespace Name Mixin selector official bLcot;b(Ljava/util/function/Supplier;)Vintermediary method_12207Lnet/minecraft/class_2818;method_12207(Ljava/util/function/Supplier;)Vnamed setLevelTypeProviderLnet/minecraft/world/chunk/WorldChunk;setLevelTypeProvider(Ljava/util/function/Supplier;)V
-
method_38289
public void method_38289()- Mappings:
Namespace Name Mixin selector official ALcot;A()Vintermediary method_38289Lnet/minecraft/class_2818;method_38289()Vnamed method_38289Lnet/minecraft/world/chunk/WorldChunk;method_38289()V
-
updateAllBlockEntities
public void updateAllBlockEntities()- Mappings:
Namespace Name Mixin selector official BLcot;B()Vintermediary method_31713Lnet/minecraft/class_2818;method_31713()Vnamed updateAllBlockEntitiesLnet/minecraft/world/chunk/WorldChunk;updateAllBlockEntities()V
-
updateGameEventListener
- Mappings:
Namespace Name Mixin selector official dLcot;d(Lckl;)Vintermediary method_32919Lnet/minecraft/class_2818;method_32919(Lnet/minecraft/class_2586;)Vnamed updateGameEventListenerLnet/minecraft/world/chunk/WorldChunk;updateGameEventListener(Lnet/minecraft/block/entity/BlockEntity;)V
-
updateTicker
- Mappings:
Namespace Name Mixin selector official eLcot;e(Lckl;)Vintermediary method_31723Lnet/minecraft/class_2818;method_31723(Lnet/minecraft/class_2586;)Vnamed updateTickerLnet/minecraft/world/chunk/WorldChunk;updateTicker(Lnet/minecraft/block/entity/BlockEntity;)V
-
wrapTicker
private <T extends BlockEntity> BlockEntityTickInvoker wrapTicker(T blockEntity, BlockEntityTicker<T> blockEntityTicker) - Mappings:
Namespace Name Mixin selector official aLcot;a(Lckl;Lckm;)Lcls;intermediary method_31718Lnet/minecraft/class_2818;method_31718(Lnet/minecraft/class_2586;Lnet/minecraft/class_5558;)Lnet/minecraft/class_5562;named wrapTickerLnet/minecraft/world/chunk/WorldChunk;wrapTicker(Lnet/minecraft/block/entity/BlockEntity;Lnet/minecraft/block/entity/BlockEntityTicker;)Lnet/minecraft/world/chunk/BlockEntityTickInvoker;
-