Package net.minecraft.world.chunk
Interface Chunk
- All Superinterfaces:
BlockView,HeightLimitView,StructureHolder
- All Known Implementing Classes:
EmptyChunk,ProtoChunk,ReadOnlyChunk,WorldChunk
Represents a scoped, modifiable view of biomes, block states, fluid states and block entities.
- Mappings:
Namespace Name official cmlintermediary net/minecraft/class_2791named net/minecraft/world/chunk/Chunk
-
Method Summary
Modifier and TypeMethodDescriptionvoiddefault voiddefault booleanareSectionsEmptyBetween(int lowerHeight, int upperHeight)getBlockEntityNbt(BlockPos pos)default GameEventDispatchergetGameEventDispatcher(int ySectionCoord)getHeightmap(Heightmap.Type type)default @Nullable ChunkSectiondefault intlongstatic ShortListgetPos()default ChunkSectiongetSection(int yIndex)Map<StructureFeature<?>,StructureStart<?>>booleandefault voidmarkBlockForPostProcessing(short packedPos, int index)default voidmethod_35319(Heightmap.Type type)booleanvoidremoveBlockEntity(BlockPos pos)intsampleHeightmap(Heightmap.Type type, int x, int z)voidsetBlockEntity(BlockEntity blockEntity)setBlockState(BlockPos pos, BlockState state, boolean moved)default voidsetHeightmap(Heightmap.Type type, long[] heightmap)voidsetInhabitedTime(long inhabitedTime)voidsetLightOn(boolean lightOn)voidsetShouldSave(boolean shouldSave)voidsetStructureStarts(Map<StructureFeature<?>,StructureStart<?>> structureStarts)Methods inherited from interface net.minecraft.world.BlockView
getBlockEntity, getBlockEntity, getBlockState, getDismountHeight, getDismountHeight, getFluidState, getLuminance, getMaxLightLevel, getStatesInBox, raycast, raycast, raycastBlockMethods inherited from interface net.minecraft.world.HeightLimitView
countVerticalSections, getBottomSectionCoord, getBottomY, getHeight, getSectionIndex, getTopSectionCoord, getTopY, isOutOfHeightLimit, isOutOfHeightLimit, sectionCoordToIndex, sectionIndexToCoordMethods inherited from interface net.minecraft.world.StructureHolder
addStructureReference, getStructureReferences, getStructureReferences, getStructureStart, setStructureReferences, setStructureStart
-
Method Details
-
getGameEventDispatcher
- Mappings:
Namespace Name Mixin selector official aLcml;a(I)Lcow;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;
-
setBlockState
- Mappings:
Namespace Name Mixin selector official aLcml;a(Lgg;Lcks;Z)Lcks;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;
-
setBlockEntity
- Mappings:
Namespace Name Mixin selector official aLcml;a(Lcip;)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
-
addEntity
- Mappings:
Namespace Name Mixin selector official aLcml;a(Latf;)Vintermediary method_12002Lnet/minecraft/class_2791;method_12002(Lnet/minecraft/class_1297;)Vnamed addEntityLnet/minecraft/world/chunk/Chunk;addEntity(Lnet/minecraft/entity/Entity;)V
-
getHighestNonEmptySection
- Mappings:
Namespace Name Mixin selector official aLcml;a()Lcmx;intermediary method_12040Lnet/minecraft/class_2791;method_12040()Lnet/minecraft/class_2826;named getHighestNonEmptySectionLnet/minecraft/world/chunk/Chunk;getHighestNonEmptySection()Lnet/minecraft/world/chunk/ChunkSection;
-
getHighestNonEmptySectionYOffset
default int getHighestNonEmptySectionYOffset()- Mappings:
Namespace Name Mixin selector official bLcml;b()Iintermediary method_12031Lnet/minecraft/class_2791;method_12031()Inamed getHighestNonEmptySectionYOffsetLnet/minecraft/world/chunk/Chunk;getHighestNonEmptySectionYOffset()I
-
getBlockEntityPositions
- Mappings:
Namespace Name Mixin selector official cLcml;c()Ljava/util/Set;intermediary method_12021Lnet/minecraft/class_2791;method_12021()Ljava/util/Set;named getBlockEntityPositionsLnet/minecraft/world/chunk/Chunk;getBlockEntityPositions()Ljava/util/Set;
-
getSectionArray
ChunkSection[] getSectionArray()- Mappings:
Namespace Name Mixin selector official dLcml;d()[Lcmx;intermediary method_12006Lnet/minecraft/class_2791;method_12006()[Lnet/minecraft/class_2826;named getSectionArrayLnet/minecraft/world/chunk/Chunk;getSectionArray()[Lnet/minecraft/world/chunk/ChunkSection;
-
getSection
- Mappings:
Namespace Name Mixin selector official bLcml;b(I)Lcmx;intermediary method_33729Lnet/minecraft/class_2791;method_33729(I)Lnet/minecraft/class_2826;named getSectionLnet/minecraft/world/chunk/Chunk;getSection(I)Lnet/minecraft/world/chunk/ChunkSection;
-
getHeightmaps
Collection<Map.Entry<Heightmap.Type,Heightmap>> getHeightmaps()- Mappings:
Namespace Name Mixin selector official eLcml;e()Ljava/util/Collection;intermediary method_12011Lnet/minecraft/class_2791;method_12011()Ljava/util/Collection;named getHeightmapsLnet/minecraft/world/chunk/Chunk;getHeightmaps()Ljava/util/Collection;
-
setHeightmap
- Mappings:
Namespace Name Mixin selector official aLcml;a(Lcps$a;[J)Vintermediary method_12037Lnet/minecraft/class_2791;method_12037(Lnet/minecraft/class_2902$class_2903;[J)Vnamed setHeightmapLnet/minecraft/world/chunk/Chunk;setHeightmap(Lnet/minecraft/world/Heightmap$Type;[J)V
-
getHeightmap
- Mappings:
Namespace Name Mixin selector official aLcml;a(Lcps$a;)Lcps;intermediary method_12032Lnet/minecraft/class_2791;method_12032(Lnet/minecraft/class_2902$class_2903;)Lnet/minecraft/class_2902;named getHeightmapLnet/minecraft/world/chunk/Chunk;getHeightmap(Lnet/minecraft/world/Heightmap$Type;)Lnet/minecraft/world/Heightmap;
-
sampleHeightmap
- Mappings:
Namespace Name Mixin selector official aLcml;a(Lcps$a;II)Iintermediary method_12005Lnet/minecraft/class_2791;method_12005(Lnet/minecraft/class_2902$class_2903;II)Inamed sampleHeightmapLnet/minecraft/world/chunk/Chunk;sampleHeightmap(Lnet/minecraft/world/Heightmap$Type;II)I
-
method_35319
- Mappings:
Namespace Name Mixin selector official bLcml;b(Lcps$a;)Lgg;intermediary method_35319Lnet/minecraft/class_2791;method_35319(Lnet/minecraft/class_2902$class_2903;)Lnet/minecraft/class_2338;named method_35319Lnet/minecraft/world/chunk/Chunk;method_35319(Lnet/minecraft/world/Heightmap$Type;)Lnet/minecraft/util/math/BlockPos;
-
getPos
ChunkPos getPos()- Mappings:
Namespace Name Mixin selector official fLcml;f()Lbvu;intermediary method_12004Lnet/minecraft/class_2791;method_12004()Lnet/minecraft/class_1923;named getPosLnet/minecraft/world/chunk/Chunk;getPos()Lnet/minecraft/util/math/ChunkPos;
-
getStructureStarts
Map<StructureFeature<?>,StructureStart<?>> getStructureStarts()- Mappings:
Namespace Name Mixin selector official gLcml;g()Ljava/util/Map;intermediary method_12016Lnet/minecraft/class_2791;method_12016()Ljava/util/Map;named getStructureStartsLnet/minecraft/world/chunk/Chunk;getStructureStarts()Ljava/util/Map;
-
setStructureStarts
- Mappings:
Namespace Name Mixin selector official aLcml;a(Ljava/util/Map;)Vintermediary method_12034Lnet/minecraft/class_2791;method_12034(Ljava/util/Map;)Vnamed setStructureStartsLnet/minecraft/world/chunk/Chunk;setStructureStarts(Ljava/util/Map;)V
-
areSectionsEmptyBetween
default boolean areSectionsEmptyBetween(int lowerHeight, int upperHeight)- Mappings:
Namespace Name Mixin selector official aLcml;a(II)Zintermediary method_12228Lnet/minecraft/class_2791;method_12228(II)Znamed areSectionsEmptyBetweenLnet/minecraft/world/chunk/Chunk;areSectionsEmptyBetween(II)Z
-
getBiomeArray
- Mappings:
Namespace Name Mixin selector official hLcml;h()Lcmm;intermediary method_12036Lnet/minecraft/class_2791;method_12036()Lnet/minecraft/class_4548;named getBiomeArrayLnet/minecraft/world/chunk/Chunk;getBiomeArray()Lnet/minecraft/world/biome/source/BiomeArray;
-
setShouldSave
void setShouldSave(boolean shouldSave)- Mappings:
Namespace Name Mixin selector official aLcml;a(Z)Vintermediary method_12008Lnet/minecraft/class_2791;method_12008(Z)Vnamed setShouldSaveLnet/minecraft/world/chunk/Chunk;setShouldSave(Z)V
-
needsSaving
boolean needsSaving()- Mappings:
Namespace Name Mixin selector official iLcml;i()Zintermediary method_12044Lnet/minecraft/class_2791;method_12044()Znamed needsSavingLnet/minecraft/world/chunk/Chunk;needsSaving()Z
-
getStatus
ChunkStatus getStatus()- Mappings:
Namespace Name Mixin selector official jLcml;j()Lcmp;intermediary method_12009Lnet/minecraft/class_2791;method_12009()Lnet/minecraft/class_2806;named getStatusLnet/minecraft/world/chunk/Chunk;getStatus()Lnet/minecraft/world/chunk/ChunkStatus;
-
removeBlockEntity
- Mappings:
Namespace Name Mixin selector official dLcml;d(Lgg;)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
-
markBlockForPostProcessing
- Mappings:
Namespace Name Mixin selector official eLcml;e(Lgg;)Vintermediary method_12039Lnet/minecraft/class_2791;method_12039(Lnet/minecraft/class_2338;)Vnamed markBlockForPostProcessingLnet/minecraft/world/chunk/Chunk;markBlockForPostProcessing(Lnet/minecraft/util/math/BlockPos;)V
-
getPostProcessingLists
ShortList[] getPostProcessingLists()- Mappings:
Namespace Name Mixin selector official kLcml;k()[Lit/unimi/dsi/fastutil/shorts/ShortList;intermediary method_12012Lnet/minecraft/class_2791;method_12012()[Lit/unimi/dsi/fastutil/shorts/ShortList;named getPostProcessingListsLnet/minecraft/world/chunk/Chunk;getPostProcessingLists()[Lit/unimi/dsi/fastutil/shorts/ShortList;
-
markBlockForPostProcessing
default void markBlockForPostProcessing(short packedPos, int index)- Mappings:
Namespace Name Mixin selector official aLcml;a(SI)Vintermediary method_12029Lnet/minecraft/class_2791;method_12029(SI)Vnamed markBlockForPostProcessingLnet/minecraft/world/chunk/Chunk;markBlockForPostProcessing(SI)V
-
addPendingBlockEntityNbt
- Mappings:
Namespace Name Mixin selector official aLcml;a(Lna;)Vintermediary method_12042Lnet/minecraft/class_2791;method_12042(Lnet/minecraft/class_2487;)Vnamed addPendingBlockEntityNbtLnet/minecraft/world/chunk/Chunk;addPendingBlockEntityNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
getBlockEntityNbt
- Mappings:
Namespace Name Mixin selector official fLcml;f(Lgg;)Lna;intermediary method_12024Lnet/minecraft/class_2791;method_12024(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2487;named getBlockEntityNbtLnet/minecraft/world/chunk/Chunk;getBlockEntityNbt(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/nbt/NbtCompound;
-
getPackedBlockEntityNbt
- Mappings:
Namespace Name Mixin selector official gLcml;g(Lgg;)Lna;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;
-
getLightSourcesStream
- Mappings:
Namespace Name Mixin selector official nLcml;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;
-
getBlockTickScheduler
TickScheduler<Block> getBlockTickScheduler()- Mappings:
Namespace Name Mixin selector official oLcml;o()Lbxh;intermediary method_12013Lnet/minecraft/class_2791;method_12013()Lnet/minecraft/class_1951;named getBlockTickSchedulerLnet/minecraft/world/chunk/Chunk;getBlockTickScheduler()Lnet/minecraft/world/TickScheduler;
-
getFluidTickScheduler
TickScheduler<Fluid> getFluidTickScheduler()- Mappings:
Namespace Name Mixin selector official pLcml;p()Lbxh;intermediary method_12014Lnet/minecraft/class_2791;method_12014()Lnet/minecraft/class_1951;named getFluidTickSchedulerLnet/minecraft/world/chunk/Chunk;getFluidTickScheduler()Lnet/minecraft/world/TickScheduler;
-
getUpgradeData
UpgradeData getUpgradeData()- Mappings:
Namespace Name Mixin selector official qLcml;q()Lcng;intermediary method_12003Lnet/minecraft/class_2791;method_12003()Lnet/minecraft/class_2843;named getUpgradeDataLnet/minecraft/world/chunk/Chunk;getUpgradeData()Lnet/minecraft/world/chunk/UpgradeData;
-
setInhabitedTime
void setInhabitedTime(long inhabitedTime)- Mappings:
Namespace Name Mixin selector official aLcml;a(J)Vintermediary method_12028Lnet/minecraft/class_2791;method_12028(J)Vnamed setInhabitedTimeLnet/minecraft/world/chunk/Chunk;setInhabitedTime(J)V
-
getInhabitedTime
long getInhabitedTime()- Mappings:
Namespace Name Mixin selector official rLcml;r()Jintermediary method_12033Lnet/minecraft/class_2791;method_12033()Jnamed getInhabitedTimeLnet/minecraft/world/chunk/Chunk;getInhabitedTime()J
-
getList
- Mappings:
Namespace Name Mixin selector official aLcml;a([Lit/unimi/dsi/fastutil/shorts/ShortList;I)Lit/unimi/dsi/fastutil/shorts/ShortList;intermediary method_12026Lnet/minecraft/class_2791;method_12026([Lit/unimi/dsi/fastutil/shorts/ShortList;I)Lit/unimi/dsi/fastutil/shorts/ShortList;named getListLnet/minecraft/world/chunk/Chunk;getList([Lit/unimi/dsi/fastutil/shorts/ShortList;I)Lit/unimi/dsi/fastutil/shorts/ShortList;
-
isLightOn
boolean isLightOn()- Mappings:
Namespace Name Mixin selector official sLcml;s()Zintermediary method_12038Lnet/minecraft/class_2791;method_12038()Znamed isLightOnLnet/minecraft/world/chunk/Chunk;isLightOn()Z
-
setLightOn
void setLightOn(boolean lightOn)- Mappings:
Namespace Name Mixin selector official bLcml;b(Z)Vintermediary method_12020Lnet/minecraft/class_2791;method_12020(Z)Vnamed setLightOnLnet/minecraft/world/chunk/Chunk;setLightOn(Z)V
-