Package net.minecraft.world.chunk
Class ReadOnlyChunk
java.lang.Object
net.minecraft.world.chunk.Chunk
net.minecraft.world.chunk.ProtoChunk
net.minecraft.world.chunk.ReadOnlyChunk
- All Implemented Interfaces:
BiomeAccess.Storage,BlockView,HeightLimitView,StructureHolder
Represents a read only view of a world chunk used in world generation.
- Mappings:
Namespace Name official crtintermediary net/minecraft/class_2821named net/minecraft/world/chunk/ReadOnlyChunk
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.chunk.Chunk
Chunk.TickSchedulers -
Field Summary
FieldsFields inherited from class net.minecraft.world.chunk.Chunk
blendingData, blockEntities, blockEntityNbts, chunkNoiseSampler, heightLimitView, heightmaps, needsSaving, pos, postProcessingLists, sectionArray, upgradeData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidaddStructureReference(StructureFeature<?> structure, long reference) getBiomeForNoiseGen(int biomeX, int biomeY, int biomeZ) getBlockEntity(BlockPos pos) getBlockState(BlockPos pos) getCarvingMask(GenerationStep.Carver carver) getFluidState(BlockPos pos) getHeightmap(Heightmap.Type type) intgetPos()getSection(int yIndex) getStructureReferences(StructureFeature<?> structure) getStructureStart(StructureFeature<?> structure) Map<StructureFeature<?>,StructureStart<?>> booleanvoidbooleanvoidpopulateBiomes(BiomeSupplier biomeSupplier, MultiNoiseUtil.MultiNoiseSampler sampler) voidintsampleHeightmap(Heightmap.Type type, int x, int z) voidsetBlender(BlendingData blender) 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, getBelowZeroRetrogen, getBlockEntities, getBlockEntityNbts, getBlockProtoTickScheduler, getEntities, getFluidProtoTickScheduler, getHeightLimitView, getLightSourcesBySection, getPackedSectionRelative, joinBlockPos, markBlockForPostProcessing, setBelowZeroRetrogen, setCarvingMask, setLightingProviderMethods inherited from class net.minecraft.world.chunk.Chunk
areSectionsEmptyBetween, getBlockEntityPositions, getBottomY, getGameEventDispatcher, getHeight, getHeightmaps, getHighestNonEmptySection, getHighestNonEmptySectionYOffset, getInhabitedTime, getList, getOrCreateChunkNoiseSampler, getPostProcessingLists, getUpgradeData, hasBelowZeroRetrogen, hasHeightmap, hasStructureReferences, increaseInhabitedTime, setBiomeIfAbsent, setInhabitedTime, usesOldNoiseMethods 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.HeightLimitView
countVerticalSections, getBottomSectionCoord, getSectionIndex, getTopSectionCoord, getTopY, isOutOfHeightLimit, isOutOfHeightLimit, sectionCoordToIndex, sectionIndexToCoord
-
Field Details
-
wrapped
- Mappings:
Namespace Name Mixin selector official lLcrt;l:Lcru;intermediary field_12866Lnet/minecraft/class_2821;field_12866:Lnet/minecraft/class_2818;named wrappedLnet/minecraft/world/chunk/ReadOnlyChunk;wrapped:Lnet/minecraft/world/chunk/WorldChunk;
-
field_34554
private final boolean field_34554- Mappings:
Namespace Name Mixin selector official mLcrt;m:Zintermediary field_34554Lnet/minecraft/class_2821;field_34554:Znamed field_34554Lnet/minecraft/world/chunk/ReadOnlyChunk;field_34554:Z
-
-
Constructor Details
-
ReadOnlyChunk
- Mappings:
Namespace Name Mixin selector official <init>Lcrt;<init>(Lcru;Z)Vintermediary <init>Lnet/minecraft/class_2821;<init>(Lnet/minecraft/class_2818;Z)Vnamed <init>Lnet/minecraft/world/chunk/ReadOnlyChunk;<init>(Lnet/minecraft/world/chunk/WorldChunk;Z)V
-
-
Method Details
-
getBlockEntity
- Specified by:
getBlockEntityin interfaceBlockView- Overrides:
getBlockEntityin classProtoChunk- Mappings:
Namespace Name Mixin selector official c_Lcal;c_(Lgh;)Lcnj;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 a_Lcal;a_(Lgh;)Lcpp;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 b_Lcal;b_(Lgh;)Ldjo;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 OLcal;O()Iintermediary method_8315Lnet/minecraft/class_1922;method_8315()Inamed getMaxLightLevelLnet/minecraft/world/BlockView;getMaxLightLevel()I
-
getSection
- Overrides:
getSectionin classChunk- Mappings:
Namespace Name Mixin selector official bLcrk;b(I)Lcrv;intermediary method_38259Lnet/minecraft/class_2791;method_38259(I)Lnet/minecraft/class_2826;named getSectionLnet/minecraft/world/chunk/Chunk;getSection(I)Lnet/minecraft/world/chunk/ChunkSection;
-
setBlockState
- Overrides:
setBlockStatein classProtoChunk- Mappings:
Namespace Name Mixin selector official aLcrk;a(Lgh;Lcpp;Z)Lcpp;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
- Overrides:
setBlockEntityin classProtoChunk- Mappings:
Namespace Name Mixin selector official aLcrk;a(Lcnj;)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
- Overrides:
addEntityin classProtoChunk- Mappings:
Namespace Name Mixin selector official aLcrk;a(Laxe;)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 aLcsc;a(Lcrn;)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
- Overrides:
getSectionArrayin classChunk- Mappings:
Namespace Name Mixin selector official dLcrk;d()[Lcrv;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
- Overrides:
setHeightmapin classChunk- Mappings:
Namespace Name Mixin selector official aLcrk;a(Lcun$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 cLcrt;c(Lcun$a;)Lcun$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;
-
getHeightmap
- Overrides:
getHeightmapin classChunk- Mappings:
Namespace Name Mixin selector official aLcrk;a(Lcun$a;)Lcun;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
- Overrides:
sampleHeightmapin classChunk- Mappings:
Namespace Name Mixin selector official aLcrk;a(Lcun$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
-
getBiomeForNoiseGen
- Specified by:
getBiomeForNoiseGenin interfaceBiomeAccess.Storage- Overrides:
getBiomeForNoiseGenin classProtoChunk- Mappings:
Namespace Name Mixin selector official getNoiseBiomeLccd$a;getNoiseBiome(III)Lccb;intermediary method_16359Lnet/minecraft/class_4543$class_4544;method_16359(III)Lnet/minecraft/class_1959;named getBiomeForNoiseGenLnet/minecraft/world/biome/source/BiomeAccess$Storage;getBiomeForNoiseGen(III)Lnet/minecraft/world/biome/Biome;
-
getPos
-
getStructureStart
- Specified by:
getStructureStartin interfaceStructureHolder- Overrides:
getStructureStartin classChunk- Mappings:
Namespace Name Mixin selector official aLcrq;a(Lczw;)Ldgy;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 aLcrq;a(Lczw;Ldgy;)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
- Overrides:
getStructureStartsin classChunk- Mappings:
Namespace Name Mixin selector official gLcrk;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
- Overrides:
setStructureStartsin classChunk- Mappings:
Namespace Name Mixin selector official aLcrk;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 classChunk- Mappings:
Namespace Name Mixin selector official bLcrq;b(Lczw;)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 classChunk- Mappings:
Namespace Name Mixin selector official aLcrq;a(Lczw;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 classChunk- Mappings:
Namespace Name Mixin selector official hLcrq;h()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 classChunk- Mappings:
Namespace Name Mixin selector official bLcrq;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
-
setShouldSave
public void setShouldSave(boolean shouldSave) - Overrides:
setShouldSavein classChunk- Mappings:
Namespace Name Mixin selector official aLcrk;a(Z)Vintermediary method_12008Lnet/minecraft/class_2791;method_12008(Z)Vnamed setShouldSaveLnet/minecraft/world/chunk/Chunk;setShouldSave(Z)V
-
needsSaving
public boolean needsSaving()- Overrides:
needsSavingin classChunk- Mappings:
Namespace Name Mixin selector official iLcrk;i()Zintermediary method_12044Lnet/minecraft/class_2791;method_12044()Znamed needsSavingLnet/minecraft/world/chunk/Chunk;needsSaving()Z
-
getStatus
- Overrides:
getStatusin classProtoChunk- Mappings:
Namespace Name Mixin selector official jLcrk;j()Lcrn;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
- Overrides:
removeBlockEntityin classProtoChunk- Mappings:
Namespace Name Mixin selector official dLcrk;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
-
markBlockForPostProcessing
- Overrides:
markBlockForPostProcessingin classProtoChunk- Mappings:
Namespace Name Mixin selector official eLcrk;e(Lgh;)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
- Overrides:
addPendingBlockEntityNbtin classChunk- Mappings:
Namespace Name Mixin selector official aLcrk;a(Loh;)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
- Overrides:
getBlockEntityNbtin classChunk- Mappings:
Namespace Name Mixin selector official fLcrk;f(Lgh;)Loh;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
- Overrides:
getPackedBlockEntityNbtin classProtoChunk- Mappings:
Namespace Name Mixin selector official gLcrk;g(Lgh;)Loh;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
- Overrides:
getLightSourcesStreamin classProtoChunk- Mappings:
Namespace Name Mixin selector official nLcrk;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
- Overrides:
getBlockTickSchedulerin classProtoChunk- Mappings:
Namespace Name Mixin selector official oLcrk;o()Ldrs;intermediary method_12013Lnet/minecraft/class_2791;method_12013()Lnet/minecraft/class_6763;named getBlockTickSchedulerLnet/minecraft/world/chunk/Chunk;getBlockTickScheduler()Lnet/minecraft/world/tick/BasicTickScheduler;
-
getFluidTickScheduler
- Overrides:
getFluidTickSchedulerin classProtoChunk- Mappings:
Namespace Name Mixin selector official pLcrk;p()Ldrs;intermediary method_12014Lnet/minecraft/class_2791;method_12014()Lnet/minecraft/class_6763;named getFluidTickSchedulerLnet/minecraft/world/chunk/Chunk;getFluidTickScheduler()Lnet/minecraft/world/tick/BasicTickScheduler;
-
getTickSchedulers
- Overrides:
getTickSchedulersin classProtoChunk- Mappings:
Namespace Name Mixin selector official qLcrk;q()Lcrk$a;intermediary method_39296Lnet/minecraft/class_2791;method_39296()Lnet/minecraft/class_2791$class_6745;named getTickSchedulersLnet/minecraft/world/chunk/Chunk;getTickSchedulers()Lnet/minecraft/world/chunk/Chunk$TickSchedulers;
-
getBlendingData
- Overrides:
getBlendingDatain classChunk- Mappings:
Namespace Name Mixin selector official tLcrk;t()Lcvp;intermediary method_39299Lnet/minecraft/class_2791;method_39299()Lnet/minecraft/class_6749;named getBlendingDataLnet/minecraft/world/chunk/Chunk;getBlendingData()Lnet/minecraft/world/gen/chunk/BlendingData;
-
setBlender
- Overrides:
setBlenderin classChunk- Mappings:
Namespace Name Mixin selector official aLcrk;a(Lcvp;)Vintermediary method_39294Lnet/minecraft/class_2791;method_39294(Lnet/minecraft/class_6749;)Vnamed setBlenderLnet/minecraft/world/chunk/Chunk;setBlender(Lnet/minecraft/world/gen/chunk/BlendingData;)V
-
getCarvingMask
- Overrides:
getCarvingMaskin classProtoChunk- Mappings:
Namespace Name Mixin selector official aLcsc;a(Lcuj$a;)Lcrj;intermediary method_12025Lnet/minecraft/class_2839;method_12025(Lnet/minecraft/class_2893$class_2894;)Lnet/minecraft/class_6643;named getCarvingMaskLnet/minecraft/world/chunk/ProtoChunk;getCarvingMask(Lnet/minecraft/world/gen/GenerationStep$Carver;)Lnet/minecraft/world/gen/carver/CarvingMask;
-
getOrCreateCarvingMask
- Overrides:
getOrCreateCarvingMaskin classProtoChunk- Mappings:
Namespace Name Mixin selector official bLcsc;b(Lcuj$a;)Lcrj;intermediary method_28510Lnet/minecraft/class_2839;method_28510(Lnet/minecraft/class_2893$class_2894;)Lnet/minecraft/class_6643;named getOrCreateCarvingMaskLnet/minecraft/world/chunk/ProtoChunk;getOrCreateCarvingMask(Lnet/minecraft/world/gen/GenerationStep$Carver;)Lnet/minecraft/world/gen/carver/CarvingMask;
-
getWrappedChunk
- Mappings:
Namespace Name Mixin selector official ALcrt;A()Lcru;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() -
setLightOn
public void setLightOn(boolean lightOn) - Overrides:
setLightOnin classChunk- Mappings:
Namespace Name Mixin selector official bLcrk;b(Z)Vintermediary method_12020Lnet/minecraft/class_2791;method_12020(Z)Vnamed setLightOnLnet/minecraft/world/chunk/Chunk;setLightOn(Z)V
-
populateBiomes
- Overrides:
populateBiomesin classChunk- Mappings:
Namespace Name Mixin selector official aLcrk;a(Lcce;Lccj$f;)Vintermediary method_38257Lnet/minecraft/class_2791;method_38257(Lnet/minecraft/class_6780;Lnet/minecraft/class_6544$class_6552;)Vnamed populateBiomesLnet/minecraft/world/chunk/Chunk;populateBiomes(Lnet/minecraft/world/biome/source/BiomeSupplier;Lnet/minecraft/world/biome/source/util/MultiNoiseUtil$MultiNoiseSampler;)V
-