Package net.minecraft.world.chunk
Class ReadOnlyChunk
java.lang.Object
net.minecraft.world.chunk.ProtoChunk
net.minecraft.world.chunk.ReadOnlyChunk
- All Implemented Interfaces:
BlockView
,Chunk
,HeightLimitView
,StructureHolder
Represents a read only view of a world chunk used in world generation.
- Mappings:
Namespace Name official cmv
intermediary net/minecraft/class_2821
named net/minecraft/world/chunk/ReadOnlyChunk
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
addStructureReference
(StructureFeature<?> structure, long reference) getBlockEntity
(BlockPos pos) getBlockState
(BlockPos pos) getCarvingMask
(GenerationStep.Carver carver) getFluidState
(BlockPos pos) int
getPos()
getStructureReferences
(StructureFeature<?> structure) getStructureStart
(StructureFeature<?> structure) Map<StructureFeature<?>,
StructureStart<?>> boolean
void
method_35319
(Heightmap.Type type) boolean
void
int
sampleHeightmap
(Heightmap.Type type, int x, int z) void
setBiomes
(BiomeArray biomes) void
setBlockEntity
(BlockEntity blockEntity) setBlockState
(BlockPos pos, BlockState state, boolean moved) void
setHeightmap
(Heightmap.Type type, long[] heightmap) void
setLightOn
(boolean lightOn) void
setShouldSave
(boolean shouldSave) void
setStatus
(ChunkStatus status) void
setStructureReferences
(Map<StructureFeature<?>, LongSet> structureReferences) void
setStructureStart
(StructureFeature<?> structure, StructureStart<?> start) void
setStructureStarts
(Map<StructureFeature<?>, StructureStart<?>> structureStarts) private Heightmap.Type
Methods inherited from class net.minecraft.world.chunk.ProtoChunk
addEntity, addLightSource, addLightSource, getBlockEntities, getBlockEntityNbts, getBlockEntityPositions, getBottomY, getEntities, getHeight, getHeightmap, getHeightmaps, getInhabitedTime, getLightSourcesBySection, getPackedSectionRelative, getPostProcessingLists, getUpgradeData, joinBlockPos, markBlockForPostProcessing, setCarvingMask, setInhabitedTime, setLightingProvider
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.BlockView
getBlockEntity, getDismountHeight, getDismountHeight, getLuminance, getStatesInBox, raycast, raycast, raycastBlock
Methods inherited from interface net.minecraft.world.chunk.Chunk
areSectionsEmptyBetween, getGameEventDispatcher, getHighestNonEmptySection, getHighestNonEmptySectionYOffset, getSection
Methods inherited from interface net.minecraft.world.HeightLimitView
countVerticalSections, getBottomSectionCoord, getSectionIndex, getTopSectionCoord, getTopY, isOutOfHeightLimit, isOutOfHeightLimit, sectionCoordToIndex, sectionIndexToCoord
-
Field Details
-
wrapped
- Mappings:
Namespace Name Mixin selector official a
Lcmv;a:Lcmw;
intermediary field_12866
Lnet/minecraft/class_2821;field_12866:Lnet/minecraft/class_2818;
named wrapped
Lnet/minecraft/world/chunk/ReadOnlyChunk;wrapped:Lnet/minecraft/world/chunk/WorldChunk;
-
-
Constructor Details
-
ReadOnlyChunk
- Mappings:
Namespace Name Mixin selector official <init>
Lcmv;<init>(Lcmw;)V
intermediary <init>
Lnet/minecraft/class_2821;<init>(Lnet/minecraft/class_2818;)V
named <init>
Lnet/minecraft/world/chunk/ReadOnlyChunk;<init>(Lnet/minecraft/world/chunk/WorldChunk;)V
-
-
Method Details
-
getBlockEntity
- Specified by:
getBlockEntity
in interfaceBlockView
- Overrides:
getBlockEntity
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official c_
Lbvt;c_(Lgg;)Lcip;
intermediary method_8321
Lnet/minecraft/class_1922;method_8321(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2586;
named getBlockEntity
Lnet/minecraft/world/BlockView;getBlockEntity(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/entity/BlockEntity;
-
getBlockState
- Specified by:
getBlockState
in interfaceBlockView
- Overrides:
getBlockState
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official a_
Lbvt;a_(Lgg;)Lcks;
intermediary method_8320
Lnet/minecraft/class_1922;method_8320(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
named getBlockState
Lnet/minecraft/world/BlockView;getBlockState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
getFluidState
- Specified by:
getFluidState
in interfaceBlockView
- Overrides:
getFluidState
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official b_
Lbvt;b_(Lgg;)Ldes;
intermediary method_8316
Lnet/minecraft/class_1922;method_8316(Lnet/minecraft/class_2338;)Lnet/minecraft/class_3610;
named getFluidState
Lnet/minecraft/world/BlockView;getFluidState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/fluid/FluidState;
-
getMaxLightLevel
public int getMaxLightLevel()- Mappings:
Namespace Name Mixin selector official O
Lbvt;O()I
intermediary method_8315
Lnet/minecraft/class_1922;method_8315()I
named getMaxLightLevel
Lnet/minecraft/world/BlockView;getMaxLightLevel()I
-
setBlockState
- Specified by:
setBlockState
in interfaceChunk
- Overrides:
setBlockState
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official a
Lcml;a(Lgg;Lcks;Z)Lcks;
intermediary method_12010
Lnet/minecraft/class_2791;method_12010(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)Lnet/minecraft/class_2680;
named setBlockState
Lnet/minecraft/world/chunk/Chunk;setBlockState(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)Lnet/minecraft/block/BlockState;
-
setBlockEntity
- Specified by:
setBlockEntity
in interfaceChunk
- Overrides:
setBlockEntity
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official a
Lcml;a(Lcip;)V
intermediary method_12007
Lnet/minecraft/class_2791;method_12007(Lnet/minecraft/class_2586;)V
named setBlockEntity
Lnet/minecraft/world/chunk/Chunk;setBlockEntity(Lnet/minecraft/block/entity/BlockEntity;)V
-
addEntity
- Specified by:
addEntity
in interfaceChunk
- Overrides:
addEntity
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official a
Lcml;a(Latf;)V
intermediary method_12002
Lnet/minecraft/class_2791;method_12002(Lnet/minecraft/class_1297;)V
named addEntity
Lnet/minecraft/world/chunk/Chunk;addEntity(Lnet/minecraft/entity/Entity;)V
-
setStatus
- Overrides:
setStatus
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official a
Lcne;a(Lcmp;)V
intermediary method_12308
Lnet/minecraft/class_2839;method_12308(Lnet/minecraft/class_2806;)V
named setStatus
Lnet/minecraft/world/chunk/ProtoChunk;setStatus(Lnet/minecraft/world/chunk/ChunkStatus;)V
-
getSectionArray
- Specified by:
getSectionArray
in interfaceChunk
- Overrides:
getSectionArray
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official d
Lcml;d()[Lcmx;
intermediary method_12006
Lnet/minecraft/class_2791;method_12006()[Lnet/minecraft/class_2826;
named getSectionArray
Lnet/minecraft/world/chunk/Chunk;getSectionArray()[Lnet/minecraft/world/chunk/ChunkSection;
-
setHeightmap
- Mappings:
Namespace Name Mixin selector official a
Lcml;a(Lcps$a;[J)V
intermediary method_12037
Lnet/minecraft/class_2791;method_12037(Lnet/minecraft/class_2902$class_2903;[J)V
named setHeightmap
Lnet/minecraft/world/chunk/Chunk;setHeightmap(Lnet/minecraft/world/Heightmap$Type;[J)V
-
transformHeightmapType
- Mappings:
Namespace Name Mixin selector official c
Lcmv;c(Lcps$a;)Lcps$a;
intermediary method_12239
Lnet/minecraft/class_2821;method_12239(Lnet/minecraft/class_2902$class_2903;)Lnet/minecraft/class_2902$class_2903;
named transformHeightmapType
Lnet/minecraft/world/chunk/ReadOnlyChunk;transformHeightmapType(Lnet/minecraft/world/Heightmap$Type;)Lnet/minecraft/world/Heightmap$Type;
-
sampleHeightmap
- Specified by:
sampleHeightmap
in interfaceChunk
- Overrides:
sampleHeightmap
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official a
Lcml;a(Lcps$a;II)I
intermediary method_12005
Lnet/minecraft/class_2791;method_12005(Lnet/minecraft/class_2902$class_2903;II)I
named sampleHeightmap
Lnet/minecraft/world/chunk/Chunk;sampleHeightmap(Lnet/minecraft/world/Heightmap$Type;II)I
-
method_35319
- Specified by:
method_35319
in interfaceChunk
- Overrides:
method_35319
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official b
Lcml;b(Lcps$a;)Lgg;
intermediary method_35319
Lnet/minecraft/class_2791;method_35319(Lnet/minecraft/class_2902$class_2903;)Lnet/minecraft/class_2338;
named method_35319
Lnet/minecraft/world/chunk/Chunk;method_35319(Lnet/minecraft/world/Heightmap$Type;)Lnet/minecraft/util/math/BlockPos;
-
getPos
- Specified by:
getPos
in interfaceChunk
- Overrides:
getPos
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official f
Lcml;f()Lbvu;
intermediary method_12004
Lnet/minecraft/class_2791;method_12004()Lnet/minecraft/class_1923;
named getPos
Lnet/minecraft/world/chunk/Chunk;getPos()Lnet/minecraft/util/math/ChunkPos;
-
getStructureStart
- Specified by:
getStructureStart
in interfaceStructureHolder
- Overrides:
getStructureStart
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official a
Lcms;a(Lcuc;)Ldbn;
intermediary method_12181
Lnet/minecraft/class_2810;method_12181(Lnet/minecraft/class_3195;)Lnet/minecraft/class_3449;
named getStructureStart
Lnet/minecraft/world/StructureHolder;getStructureStart(Lnet/minecraft/world/gen/feature/StructureFeature;)Lnet/minecraft/structure/StructureStart;
-
setStructureStart
- Specified by:
setStructureStart
in interfaceStructureHolder
- Overrides:
setStructureStart
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official a
Lcms;a(Lcuc;Ldbn;)V
intermediary method_12184
Lnet/minecraft/class_2810;method_12184(Lnet/minecraft/class_3195;Lnet/minecraft/class_3449;)V
named setStructureStart
Lnet/minecraft/world/StructureHolder;setStructureStart(Lnet/minecraft/world/gen/feature/StructureFeature;Lnet/minecraft/structure/StructureStart;)V
-
getStructureStarts
- Specified by:
getStructureStarts
in interfaceChunk
- Overrides:
getStructureStarts
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official g
Lcml;g()Ljava/util/Map;
intermediary method_12016
Lnet/minecraft/class_2791;method_12016()Ljava/util/Map;
named getStructureStarts
Lnet/minecraft/world/chunk/Chunk;getStructureStarts()Ljava/util/Map;
-
setStructureStarts
- Specified by:
setStructureStarts
in interfaceChunk
- Overrides:
setStructureStarts
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official a
Lcml;a(Ljava/util/Map;)V
intermediary method_12034
Lnet/minecraft/class_2791;method_12034(Ljava/util/Map;)V
named setStructureStarts
Lnet/minecraft/world/chunk/Chunk;setStructureStarts(Ljava/util/Map;)V
-
getStructureReferences
- Specified by:
getStructureReferences
in interfaceStructureHolder
- Overrides:
getStructureReferences
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official b
Lcms;b(Lcuc;)Lit/unimi/dsi/fastutil/longs/LongSet;
intermediary method_12180
Lnet/minecraft/class_2810;method_12180(Lnet/minecraft/class_3195;)Lit/unimi/dsi/fastutil/longs/LongSet;
named getStructureReferences
Lnet/minecraft/world/StructureHolder;getStructureReferences(Lnet/minecraft/world/gen/feature/StructureFeature;)Lit/unimi/dsi/fastutil/longs/LongSet;
-
addStructureReference
- Specified by:
addStructureReference
in interfaceStructureHolder
- Overrides:
addStructureReference
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official a
Lcms;a(Lcuc;J)V
intermediary method_12182
Lnet/minecraft/class_2810;method_12182(Lnet/minecraft/class_3195;J)V
named addStructureReference
Lnet/minecraft/world/StructureHolder;addStructureReference(Lnet/minecraft/world/gen/feature/StructureFeature;J)V
-
getStructureReferences
- Specified by:
getStructureReferences
in interfaceStructureHolder
- Overrides:
getStructureReferences
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official w
Lcms;w()Ljava/util/Map;
intermediary method_12179
Lnet/minecraft/class_2810;method_12179()Ljava/util/Map;
named getStructureReferences
Lnet/minecraft/world/StructureHolder;getStructureReferences()Ljava/util/Map;
-
setStructureReferences
- Specified by:
setStructureReferences
in interfaceStructureHolder
- Overrides:
setStructureReferences
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official b
Lcms;b(Ljava/util/Map;)V
intermediary method_12183
Lnet/minecraft/class_2810;method_12183(Ljava/util/Map;)V
named setStructureReferences
Lnet/minecraft/world/StructureHolder;setStructureReferences(Ljava/util/Map;)V
-
getBiomeArray
- Specified by:
getBiomeArray
in interfaceChunk
- Overrides:
getBiomeArray
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official h
Lcml;h()Lcmm;
intermediary method_12036
Lnet/minecraft/class_2791;method_12036()Lnet/minecraft/class_4548;
named getBiomeArray
Lnet/minecraft/world/chunk/Chunk;getBiomeArray()Lnet/minecraft/world/biome/source/BiomeArray;
-
setShouldSave
public void setShouldSave(boolean shouldSave) - Specified by:
setShouldSave
in interfaceChunk
- Overrides:
setShouldSave
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official a
Lcml;a(Z)V
intermediary method_12008
Lnet/minecraft/class_2791;method_12008(Z)V
named setShouldSave
Lnet/minecraft/world/chunk/Chunk;setShouldSave(Z)V
-
needsSaving
public boolean needsSaving()- Specified by:
needsSaving
in interfaceChunk
- Overrides:
needsSaving
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official i
Lcml;i()Z
intermediary method_12044
Lnet/minecraft/class_2791;method_12044()Z
named needsSaving
Lnet/minecraft/world/chunk/Chunk;needsSaving()Z
-
getStatus
- Specified by:
getStatus
in interfaceChunk
- Overrides:
getStatus
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official j
Lcml;j()Lcmp;
intermediary method_12009
Lnet/minecraft/class_2791;method_12009()Lnet/minecraft/class_2806;
named getStatus
Lnet/minecraft/world/chunk/Chunk;getStatus()Lnet/minecraft/world/chunk/ChunkStatus;
-
removeBlockEntity
- Specified by:
removeBlockEntity
in interfaceChunk
- Overrides:
removeBlockEntity
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official d
Lcml;d(Lgg;)V
intermediary method_12041
Lnet/minecraft/class_2791;method_12041(Lnet/minecraft/class_2338;)V
named removeBlockEntity
Lnet/minecraft/world/chunk/Chunk;removeBlockEntity(Lnet/minecraft/util/math/BlockPos;)V
-
markBlockForPostProcessing
- Specified by:
markBlockForPostProcessing
in interfaceChunk
- Overrides:
markBlockForPostProcessing
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official e
Lcml;e(Lgg;)V
intermediary method_12039
Lnet/minecraft/class_2791;method_12039(Lnet/minecraft/class_2338;)V
named markBlockForPostProcessing
Lnet/minecraft/world/chunk/Chunk;markBlockForPostProcessing(Lnet/minecraft/util/math/BlockPos;)V
-
addPendingBlockEntityNbt
- Specified by:
addPendingBlockEntityNbt
in interfaceChunk
- Overrides:
addPendingBlockEntityNbt
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official a
Lcml;a(Lna;)V
intermediary method_12042
Lnet/minecraft/class_2791;method_12042(Lnet/minecraft/class_2487;)V
named addPendingBlockEntityNbt
Lnet/minecraft/world/chunk/Chunk;addPendingBlockEntityNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
getBlockEntityNbt
- Specified by:
getBlockEntityNbt
in interfaceChunk
- Overrides:
getBlockEntityNbt
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official f
Lcml;f(Lgg;)Lna;
intermediary method_12024
Lnet/minecraft/class_2791;method_12024(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2487;
named getBlockEntityNbt
Lnet/minecraft/world/chunk/Chunk;getBlockEntityNbt(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/nbt/NbtCompound;
-
getPackedBlockEntityNbt
- Specified by:
getPackedBlockEntityNbt
in interfaceChunk
- Overrides:
getPackedBlockEntityNbt
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official g
Lcml;g(Lgg;)Lna;
intermediary method_20598
Lnet/minecraft/class_2791;method_20598(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2487;
named getPackedBlockEntityNbt
Lnet/minecraft/world/chunk/Chunk;getPackedBlockEntityNbt(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/nbt/NbtCompound;
-
setBiomes
- Overrides:
setBiomes
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official a
Lcne;a(Lcmm;)V
intermediary method_22405
Lnet/minecraft/class_2839;method_22405(Lnet/minecraft/class_4548;)V
named setBiomes
Lnet/minecraft/world/chunk/ProtoChunk;setBiomes(Lnet/minecraft/world/biome/source/BiomeArray;)V
-
getLightSourcesStream
- Specified by:
getLightSourcesStream
in interfaceChunk
- Overrides:
getLightSourcesStream
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official n
Lcml;n()Ljava/util/stream/Stream;
intermediary method_12018
Lnet/minecraft/class_2791;method_12018()Ljava/util/stream/Stream;
named getLightSourcesStream
Lnet/minecraft/world/chunk/Chunk;getLightSourcesStream()Ljava/util/stream/Stream;
-
getBlockTickScheduler
- Specified by:
getBlockTickScheduler
in interfaceChunk
- Overrides:
getBlockTickScheduler
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official method_12303
Lcmv;method_12303()Lcnf;
intermediary method_12303
Lnet/minecraft/class_2821;method_12303()Lnet/minecraft/class_2850;
named getBlockTickScheduler
Lnet/minecraft/world/chunk/ReadOnlyChunk;getBlockTickScheduler()Lnet/minecraft/world/ChunkTickScheduler;
-
getFluidTickScheduler
- Specified by:
getFluidTickScheduler
in interfaceChunk
- Overrides:
getFluidTickScheduler
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official method_12313
Lcmv;method_12313()Lcnf;
intermediary method_12313
Lnet/minecraft/class_2821;method_12313()Lnet/minecraft/class_2850;
named getFluidTickScheduler
Lnet/minecraft/world/chunk/ReadOnlyChunk;getFluidTickScheduler()Lnet/minecraft/world/ChunkTickScheduler;
-
getCarvingMask
- Overrides:
getCarvingMask
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official a
Lcne;a(Lcpo$a;)Ljava/util/BitSet;
intermediary method_12025
Lnet/minecraft/class_2839;method_12025(Lnet/minecraft/class_2893$class_2894;)Ljava/util/BitSet;
named getCarvingMask
Lnet/minecraft/world/chunk/ProtoChunk;getCarvingMask(Lnet/minecraft/world/gen/GenerationStep$Carver;)Ljava/util/BitSet;
-
getOrCreateCarvingMask
- Overrides:
getOrCreateCarvingMask
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official b
Lcne;b(Lcpo$a;)Ljava/util/BitSet;
intermediary method_28510
Lnet/minecraft/class_2839;method_28510(Lnet/minecraft/class_2893$class_2894;)Ljava/util/BitSet;
named getOrCreateCarvingMask
Lnet/minecraft/world/chunk/ProtoChunk;getOrCreateCarvingMask(Lnet/minecraft/world/gen/GenerationStep$Carver;)Ljava/util/BitSet;
-
getWrappedChunk
- Mappings:
Namespace Name Mixin selector official v
Lcmv;v()Lcmw;
intermediary method_12240
Lnet/minecraft/class_2821;method_12240()Lnet/minecraft/class_2818;
named getWrappedChunk
Lnet/minecraft/world/chunk/ReadOnlyChunk;getWrappedChunk()Lnet/minecraft/world/chunk/WorldChunk;
-
isLightOn
public boolean isLightOn()- Specified by:
isLightOn
in interfaceChunk
- Overrides:
isLightOn
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official s
Lcml;s()Z
intermediary method_12038
Lnet/minecraft/class_2791;method_12038()Z
named isLightOn
Lnet/minecraft/world/chunk/Chunk;isLightOn()Z
-
setLightOn
public void setLightOn(boolean lightOn) - Specified by:
setLightOn
in interfaceChunk
- Overrides:
setLightOn
in classProtoChunk
- Mappings:
Namespace Name Mixin selector official b
Lcml;b(Z)V
intermediary method_12020
Lnet/minecraft/class_2791;method_12020(Z)V
named setLightOn
Lnet/minecraft/world/chunk/Chunk;setLightOn(Z)V
-