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 cmaintermediary net/minecraft/class_2821named net/minecraft/world/chunk/ReadOnlyChunk
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidaddStructureReference(StructureFeature<?> structure, long reference)getBlockEntity(BlockPos pos)getBlockEntityNbt(BlockPos pos)getBlockState(BlockPos pos)getCarvingMask(GenerationStep.Carver carver)getFluidState(BlockPos pos)intgetPos()Map<StructureFeature<?>,LongSet>getStructureReferences(StructureFeature<?> structure)getStructureStart(StructureFeature<?> structure)Map<StructureFeature<?>,StructureStart<?>>booleanvoidmethod_35319(Heightmap.Type type)booleanvoidremoveBlockEntity(BlockPos pos)intsampleHeightmap(Heightmap.Type type, int x, int z)voidsetBiomes(BiomeArray biomes)voidsetBlockEntity(BlockEntity blockEntity)setBlockState(BlockPos pos, BlockState state, boolean moved)voidsetHeightmap(Heightmap.Type type, long[] heightmap)voidsetLightOn(boolean lightOn)voidsetShouldSave(boolean shouldSave)voidsetStatus(ChunkStatus status)voidsetStructureReferences(Map<StructureFeature<?>,LongSet> structureReferences)voidsetStructureStart(StructureFeature<?> structure, StructureStart<?> start)voidsetStructureStarts(Map<StructureFeature<?>,StructureStart<?>> structureStarts)private Heightmap.TypeMethods 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, setLightingProviderMethods 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, getStatesInBox, raycast, raycast, raycastBlockMethods inherited from interface net.minecraft.world.chunk.Chunk
areSectionsEmptyBetween, getGameEventDispatcher, getHighestNonEmptySection, getHighestNonEmptySectionYOffset, getSectionMethods 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 aLcma;a:Lcmb;intermediary field_12866Lnet/minecraft/class_2821;field_12866:Lnet/minecraft/class_2818;named wrappedLnet/minecraft/world/chunk/ReadOnlyChunk;wrapped:Lnet/minecraft/world/chunk/WorldChunk;
-
-
Constructor Details
-
ReadOnlyChunk
- Mappings:
Namespace Name Mixin selector official <init>Lcma;<init>(Lcmb;)Vintermediary <init>Lnet/minecraft/class_2821;<init>(Lnet/minecraft/class_2818;)Vnamed <init>Lnet/minecraft/world/chunk/ReadOnlyChunk;<init>(Lnet/minecraft/world/chunk/WorldChunk;)V
-
-
Method Details
-
getBlockEntity
- Specified by:
getBlockEntityin interfaceBlockView- Overrides:
getBlockEntityin classProtoChunk- Mappings:
Namespace Name Mixin selector official cLbvb;c(Lgb;)Lchv;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;
-
getBlockState
- Specified by:
getBlockStatein interfaceBlockView- Overrides:
getBlockStatein classProtoChunk- Mappings:
Namespace Name Mixin selector official d_Lbvb;d_(Lgb;)Lcjx;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
- Specified by:
getFluidStatein interfaceBlockView- Overrides:
getFluidStatein classProtoChunk- Mappings:
Namespace Name Mixin selector official bLbvb;b(Lgb;)Lddt;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;
-
getMaxLightLevel
public int getMaxLightLevel()- Mappings:
Namespace Name Mixin selector official OLbvb;O()Iintermediary method_8315Lnet/minecraft/class_1922;method_8315()Inamed getMaxLightLevelLnet/minecraft/world/BlockView;getMaxLightLevel()I
-
setBlockState
- Specified by:
setBlockStatein interfaceChunk- Overrides:
setBlockStatein classProtoChunk- Mappings:
Namespace Name Mixin selector official aLclq;a(Lgb;Lcjx;Z)Lcjx;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
- Specified by:
setBlockEntityin interfaceChunk- Overrides:
setBlockEntityin classProtoChunk- Mappings:
Namespace Name Mixin selector official aLclq;a(Lchv;)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
- Specified by:
addEntityin interfaceChunk- Overrides:
addEntityin classProtoChunk- Mappings:
Namespace Name Mixin selector official aLclq;a(Laso;)Vintermediary method_12002Lnet/minecraft/class_2791;method_12002(Lnet/minecraft/class_1297;)Vnamed addEntityLnet/minecraft/world/chunk/Chunk;addEntity(Lnet/minecraft/entity/Entity;)V
-
setStatus
- Overrides:
setStatusin classProtoChunk- Mappings:
Namespace Name Mixin selector official aLcmj;a(Lclu;)Vintermediary method_12308Lnet/minecraft/class_2839;method_12308(Lnet/minecraft/class_2806;)Vnamed setStatusLnet/minecraft/world/chunk/ProtoChunk;setStatus(Lnet/minecraft/world/chunk/ChunkStatus;)V
-
getSectionArray
- Specified by:
getSectionArrayin interfaceChunk- Overrides:
getSectionArrayin classProtoChunk- Mappings:
Namespace Name Mixin selector official dLclq;d()[Lcmc;intermediary method_12006Lnet/minecraft/class_2791;method_12006()[Lnet/minecraft/class_2826;named getSectionArrayLnet/minecraft/world/chunk/Chunk;getSectionArray()[Lnet/minecraft/world/chunk/ChunkSection;
-
setHeightmap
- Specified by:
setHeightmapin interfaceChunk- Overrides:
setHeightmapin classProtoChunk- Mappings:
Namespace Name Mixin selector official aLclq;a(Lcox$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
-
transformHeightmapType
- Mappings:
Namespace Name Mixin selector official cLcma;c(Lcox$a;)Lcox$a;intermediary method_12239Lnet/minecraft/class_2821;method_12239(Lnet/minecraft/class_2902$class_2903;)Lnet/minecraft/class_2902$class_2903;named transformHeightmapTypeLnet/minecraft/world/chunk/ReadOnlyChunk;transformHeightmapType(Lnet/minecraft/world/Heightmap$Type;)Lnet/minecraft/world/Heightmap$Type;
-
sampleHeightmap
- Specified by:
sampleHeightmapin interfaceChunk- Overrides:
sampleHeightmapin classProtoChunk- Mappings:
Namespace Name Mixin selector official aLclq;a(Lcox$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
- Specified by:
method_35319in interfaceChunk- Overrides:
method_35319in classProtoChunk- Mappings:
Namespace Name Mixin selector official bLclq;b(Lcox$a;)Lgb;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
- Specified by:
getPosin interfaceChunk- Overrides:
getPosin classProtoChunk- Mappings:
Namespace Name Mixin selector official fLclq;f()Lbvc;intermediary method_12004Lnet/minecraft/class_2791;method_12004()Lnet/minecraft/class_1923;named getPosLnet/minecraft/world/chunk/Chunk;getPos()Lnet/minecraft/util/math/ChunkPos;
-
getStructureStart
- Specified by:
getStructureStartin interfaceStructureHolder- Overrides:
getStructureStartin classProtoChunk- Mappings:
Namespace Name Mixin selector official aLclx;a(Lcte;)Ldap;intermediary method_12181Lnet/minecraft/class_2810;method_12181(Lnet/minecraft/class_3195;)Lnet/minecraft/class_3449;named getStructureStartLnet/minecraft/world/StructureHolder;getStructureStart(Lnet/minecraft/world/gen/feature/StructureFeature;)Lnet/minecraft/structure/StructureStart;
-
setStructureStart
- Specified by:
setStructureStartin interfaceStructureHolder- Overrides:
setStructureStartin classProtoChunk- Mappings:
Namespace Name Mixin selector official aLclx;a(Lcte;Ldap;)Vintermediary method_12184Lnet/minecraft/class_2810;method_12184(Lnet/minecraft/class_3195;Lnet/minecraft/class_3449;)Vnamed setStructureStartLnet/minecraft/world/StructureHolder;setStructureStart(Lnet/minecraft/world/gen/feature/StructureFeature;Lnet/minecraft/structure/StructureStart;)V
-
getStructureStarts
- Specified by:
getStructureStartsin interfaceChunk- Overrides:
getStructureStartsin classProtoChunk- Mappings:
Namespace Name Mixin selector official gLclq;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
- Specified by:
setStructureStartsin interfaceChunk- Overrides:
setStructureStartsin classProtoChunk- Mappings:
Namespace Name Mixin selector official aLclq;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
-
getStructureReferences
- Specified by:
getStructureReferencesin interfaceStructureHolder- Overrides:
getStructureReferencesin classProtoChunk- Mappings:
Namespace Name Mixin selector official bLclx;b(Lcte;)Lit/unimi/dsi/fastutil/longs/LongSet;intermediary method_12180Lnet/minecraft/class_2810;method_12180(Lnet/minecraft/class_3195;)Lit/unimi/dsi/fastutil/longs/LongSet;named getStructureReferencesLnet/minecraft/world/StructureHolder;getStructureReferences(Lnet/minecraft/world/gen/feature/StructureFeature;)Lit/unimi/dsi/fastutil/longs/LongSet;
-
addStructureReference
- Specified by:
addStructureReferencein interfaceStructureHolder- Overrides:
addStructureReferencein classProtoChunk- Mappings:
Namespace Name Mixin selector official aLclx;a(Lcte;J)Vintermediary method_12182Lnet/minecraft/class_2810;method_12182(Lnet/minecraft/class_3195;J)Vnamed addStructureReferenceLnet/minecraft/world/StructureHolder;addStructureReference(Lnet/minecraft/world/gen/feature/StructureFeature;J)V
-
getStructureReferences
- Specified by:
getStructureReferencesin interfaceStructureHolder- Overrides:
getStructureReferencesin classProtoChunk- Mappings:
Namespace Name Mixin selector official wLclx;w()Ljava/util/Map;intermediary method_12179Lnet/minecraft/class_2810;method_12179()Ljava/util/Map;named getStructureReferencesLnet/minecraft/world/StructureHolder;getStructureReferences()Ljava/util/Map;
-
setStructureReferences
- Specified by:
setStructureReferencesin interfaceStructureHolder- Overrides:
setStructureReferencesin classProtoChunk- Mappings:
Namespace Name Mixin selector official bLclx;b(Ljava/util/Map;)Vintermediary method_12183Lnet/minecraft/class_2810;method_12183(Ljava/util/Map;)Vnamed setStructureReferencesLnet/minecraft/world/StructureHolder;setStructureReferences(Ljava/util/Map;)V
-
getBiomeArray
- Specified by:
getBiomeArrayin interfaceChunk- Overrides:
getBiomeArrayin classProtoChunk- Mappings:
Namespace Name Mixin selector official hLclq;h()Lclr;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
public void setShouldSave(boolean shouldSave)- Specified by:
setShouldSavein interfaceChunk- Overrides:
setShouldSavein classProtoChunk- Mappings:
Namespace Name Mixin selector official aLclq;a(Z)Vintermediary method_12008Lnet/minecraft/class_2791;method_12008(Z)Vnamed setShouldSaveLnet/minecraft/world/chunk/Chunk;setShouldSave(Z)V
-
needsSaving
public boolean needsSaving()- Specified by:
needsSavingin interfaceChunk- Overrides:
needsSavingin classProtoChunk- Mappings:
Namespace Name Mixin selector official iLclq;i()Zintermediary method_12044Lnet/minecraft/class_2791;method_12044()Znamed needsSavingLnet/minecraft/world/chunk/Chunk;needsSaving()Z
-
getStatus
- Specified by:
getStatusin interfaceChunk- Overrides:
getStatusin classProtoChunk- Mappings:
Namespace Name Mixin selector official jLclq;j()Lclu;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
- Specified by:
removeBlockEntityin interfaceChunk- Overrides:
removeBlockEntityin classProtoChunk- Mappings:
Namespace Name Mixin selector official dLclq;d(Lgb;)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
- Specified by:
markBlockForPostProcessingin interfaceChunk- Overrides:
markBlockForPostProcessingin classProtoChunk- Mappings:
Namespace Name Mixin selector official eLclq;e(Lgb;)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
-
addPendingBlockEntityNbt
- Specified by:
addPendingBlockEntityNbtin interfaceChunk- Overrides:
addPendingBlockEntityNbtin classProtoChunk- Mappings:
Namespace Name Mixin selector official aLclq;a(Lmv;)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
- Specified by:
getBlockEntityNbtin interfaceChunk- Overrides:
getBlockEntityNbtin classProtoChunk- Mappings:
Namespace Name Mixin selector official hLclq;h(Lgb;)Lmv;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
- Specified by:
getPackedBlockEntityNbtin interfaceChunk- Overrides:
getPackedBlockEntityNbtin classProtoChunk- Mappings:
Namespace Name Mixin selector official iLclq;i(Lgb;)Lmv;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;
-
setBiomes
- Overrides:
setBiomesin classProtoChunk- Mappings:
Namespace Name Mixin selector official aLcmj;a(Lclr;)Vintermediary method_22405Lnet/minecraft/class_2839;method_22405(Lnet/minecraft/class_4548;)Vnamed setBiomesLnet/minecraft/world/chunk/ProtoChunk;setBiomes(Lnet/minecraft/world/biome/source/BiomeArray;)V
-
getLightSourcesStream
- Specified by:
getLightSourcesStreamin interfaceChunk- Overrides:
getLightSourcesStreamin classProtoChunk- Mappings:
Namespace Name Mixin selector official nLclq;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
- Specified by:
getBlockTickSchedulerin interfaceChunk- Overrides:
getBlockTickSchedulerin classProtoChunk- Mappings:
Namespace Name Mixin selector official method_12303Lcma;method_12303()Lcmk;intermediary method_12303Lnet/minecraft/class_2821;method_12303()Lnet/minecraft/class_2850;named getBlockTickSchedulerLnet/minecraft/world/chunk/ReadOnlyChunk;getBlockTickScheduler()Lnet/minecraft/world/ChunkTickScheduler;
-
getFluidTickScheduler
- Specified by:
getFluidTickSchedulerin interfaceChunk- Overrides:
getFluidTickSchedulerin classProtoChunk- Mappings:
Namespace Name Mixin selector official method_12313Lcma;method_12313()Lcmk;intermediary method_12313Lnet/minecraft/class_2821;method_12313()Lnet/minecraft/class_2850;named getFluidTickSchedulerLnet/minecraft/world/chunk/ReadOnlyChunk;getFluidTickScheduler()Lnet/minecraft/world/ChunkTickScheduler;
-
getCarvingMask
- Overrides:
getCarvingMaskin classProtoChunk- Mappings:
Namespace Name Mixin selector official aLcmj;a(Lcot$a;)Ljava/util/BitSet;intermediary method_12025Lnet/minecraft/class_2839;method_12025(Lnet/minecraft/class_2893$class_2894;)Ljava/util/BitSet;named getCarvingMaskLnet/minecraft/world/chunk/ProtoChunk;getCarvingMask(Lnet/minecraft/world/gen/GenerationStep$Carver;)Ljava/util/BitSet;
-
getOrCreateCarvingMask
- Overrides:
getOrCreateCarvingMaskin classProtoChunk- Mappings:
Namespace Name Mixin selector official bLcmj;b(Lcot$a;)Ljava/util/BitSet;intermediary method_28510Lnet/minecraft/class_2839;method_28510(Lnet/minecraft/class_2893$class_2894;)Ljava/util/BitSet;named getOrCreateCarvingMaskLnet/minecraft/world/chunk/ProtoChunk;getOrCreateCarvingMask(Lnet/minecraft/world/gen/GenerationStep$Carver;)Ljava/util/BitSet;
-
getWrappedChunk
- Mappings:
Namespace Name Mixin selector official vLcma;v()Lcmb;intermediary method_12240Lnet/minecraft/class_2821;method_12240()Lnet/minecraft/class_2818;named getWrappedChunkLnet/minecraft/world/chunk/ReadOnlyChunk;getWrappedChunk()Lnet/minecraft/world/chunk/WorldChunk;
-
isLightOn
public boolean isLightOn()- Specified by:
isLightOnin interfaceChunk- Overrides:
isLightOnin classProtoChunk- Mappings:
Namespace Name Mixin selector official sLclq;s()Zintermediary method_12038Lnet/minecraft/class_2791;method_12038()Znamed isLightOnLnet/minecraft/world/chunk/Chunk;isLightOn()Z
-
setLightOn
public void setLightOn(boolean lightOn)- Specified by:
setLightOnin interfaceChunk- Overrides:
setLightOnin classProtoChunk- Mappings:
Namespace Name Mixin selector official bLclq;b(Z)Vintermediary method_12020Lnet/minecraft/class_2791;method_12020(Z)Vnamed setLightOnLnet/minecraft/world/chunk/Chunk;setLightOn(Z)V
-