Package net.minecraft.world.chunk
Class ProtoChunk
java.lang.Object
net.minecraft.world.chunk.Chunk
net.minecraft.world.chunk.ProtoChunk
- All Implemented Interfaces:
BiomeAccess.Storage,BlockView,HeightLimitView,StructureHolder
- Direct Known Subclasses:
ReadOnlyChunk
- Mappings:
Namespace Name official cprintermediary net/minecraft/class_2839named net/minecraft/world/chunk/ProtoChunk
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<GenerationStep.Carver,class_6643> private final List<NbtCompound>private @Nullable LightingProviderprivate static final Loggerprivate ChunkStatusFields inherited from class net.minecraft.world.chunk.Chunk
blockEntities, blockEntityNbts, blockTickScheduler, chunkNoiseSampler, fluidTickScheduler, heightLimitView, heightmaps, needsSaving, pos, postProcessingLists, sectionArray, upgradeData -
Constructor Summary
ConstructorsConstructorDescriptionProtoChunk(ChunkPos pos, UpgradeData upgradeData, @Nullable ChunkSection[] chunkSection, ChunkTickScheduler<Block> blockTickScheduler, ChunkTickScheduler<Fluid> fluidTickScheduler, HeightLimitView world, Registry<Biome> registry) ProtoChunk(ChunkPos pos, UpgradeData upgradeData, HeightLimitView world, Registry<Biome> registry) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddEntity(NbtCompound entityTag) voidaddLightSource(short chunkSliceRel, int sectionY) voidaddLightSource(BlockPos pos) getBiomeForNoiseGen(int biomeX, int biomeY, int biomeZ) getBlockEntity(BlockPos pos) getBlockState(BlockPos pos) getCarvingMask(GenerationStep.Carver carver) getFluidState(BlockPos pos) static shortstatic BlockPosjoinBlockPos(short sectionRel, int sectionY, ChunkPos chunkPos) voidmarkBlockForPostProcessing(short packedPos, int index) voidvoidvoidsetBlockEntity(BlockEntity blockEntity) setBlockState(BlockPos pos, BlockState state, boolean moved) voidsetCarvingMask(GenerationStep.Carver carver, class_6643 class_6643) voidsetLightingProvider(LightingProvider lightingProvider) voidsetStatus(ChunkStatus status) Methods inherited from class net.minecraft.world.chunk.Chunk
addPendingBlockEntityNbt, addStructureReference, areSectionsEmptyBetween, getBlockEntityNbt, getBlockEntityPositions, getBlockTickScheduler, getBottomY, getFluidTickScheduler, getGameEventDispatcher, getHeight, getHeightmap, getHeightmaps, getHighestNonEmptySection, getHighestNonEmptySectionYOffset, getInhabitedTime, getList, getOrCreateChunkNoiseSampler, getPos, getPostProcessingLists, getSection, getSectionArray, getStructureReferences, getStructureReferences, getStructureStart, getStructureStarts, getUpgradeData, hasStructureReferences, increaseInhabitedTime, isLightOn, 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 mLcpr;m:Lorg/apache/logging/log4j/Logger;intermediary field_12920Lnet/minecraft/class_2839;field_12920:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/world/chunk/ProtoChunk;LOGGER:Lorg/apache/logging/log4j/Logger;
-
lightingProvider
- Mappings:
Namespace Name Mixin selector official nLcpr;n:Ldgx;intermediary field_17105Lnet/minecraft/class_2839;field_17105:Lnet/minecraft/class_3568;named lightingProviderLnet/minecraft/world/chunk/ProtoChunk;lightingProvider:Lnet/minecraft/world/chunk/light/LightingProvider;
-
status
- Mappings:
Namespace Name Mixin selector official oLcpr;o:Lcpc;intermediary field_12918Lnet/minecraft/class_2839;field_12918:Lnet/minecraft/class_2806;named statusLnet/minecraft/world/chunk/ProtoChunk;status:Lnet/minecraft/world/chunk/ChunkStatus;
-
entities
- Mappings:
Namespace Name Mixin selector official pLcpr;p:Ljava/util/List;intermediary field_12929Lnet/minecraft/class_2839;field_12929:Ljava/util/List;named entitiesLnet/minecraft/world/chunk/ProtoChunk;entities:Ljava/util/List;
-
lightSources
- Mappings:
Namespace Name Mixin selector official qLcpr;q:Ljava/util/List;intermediary field_12919Lnet/minecraft/class_2839;field_12919:Ljava/util/List;named lightSourcesLnet/minecraft/world/chunk/ProtoChunk;lightSources:Ljava/util/List;
-
carvingMasks
- Mappings:
Namespace Name Mixin selector official rLcpr;r:Ljava/util/Map;intermediary field_12926Lnet/minecraft/class_2839;field_12926:Ljava/util/Map;named carvingMasksLnet/minecraft/world/chunk/ProtoChunk;carvingMasks:Ljava/util/Map;
-
-
Constructor Details
-
ProtoChunk
public ProtoChunk(ChunkPos pos, UpgradeData upgradeData, HeightLimitView world, Registry<Biome> registry) - Mappings:
Namespace Name Mixin selector official <init>Lcpr;<init>(Lbyf;Lcpu;Lbzd;Lgx;)Vintermediary <init>Lnet/minecraft/class_2839;<init>(Lnet/minecraft/class_1923;Lnet/minecraft/class_2843;Lnet/minecraft/class_5539;Lnet/minecraft/class_2378;)Vnamed <init>Lnet/minecraft/world/chunk/ProtoChunk;<init>(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/chunk/UpgradeData;Lnet/minecraft/world/HeightLimitView;Lnet/minecraft/util/registry/Registry;)V
-
ProtoChunk
public ProtoChunk(ChunkPos pos, UpgradeData upgradeData, @Nullable @Nullable ChunkSection[] chunkSection, ChunkTickScheduler<Block> blockTickScheduler, ChunkTickScheduler<Fluid> fluidTickScheduler, HeightLimitView world, Registry<Biome> registry) - Mappings:
Namespace Name Mixin selector official <init>Lcpr;<init>(Lbyf;Lcpu;[Lcpk;Lcps;Lcps;Lbzd;Lgx;)Vintermediary <init>Lnet/minecraft/class_2839;<init>(Lnet/minecraft/class_1923;Lnet/minecraft/class_2843;[Lnet/minecraft/class_2826;Lnet/minecraft/class_2850;Lnet/minecraft/class_2850;Lnet/minecraft/class_5539;Lnet/minecraft/class_2378;)Vnamed <init>Lnet/minecraft/world/chunk/ProtoChunk;<init>(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/chunk/UpgradeData;[Lnet/minecraft/world/chunk/ChunkSection;Lnet/minecraft/world/ChunkTickScheduler;Lnet/minecraft/world/ChunkTickScheduler;Lnet/minecraft/world/HeightLimitView;Lnet/minecraft/util/registry/Registry;)V
-
-
Method Details
-
getBlockState
- Mappings:
Namespace Name Mixin selector official a_Lbye;a_(Lgh;)Lcnd;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_Lbye;b_(Lgh;)Ldhg;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;
-
getLightSourcesStream
- Specified by:
getLightSourcesStreamin classChunk- Mappings:
Namespace Name Mixin selector official nLcoz;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;
-
getLightSourcesBySection
- Mappings:
Namespace Name Mixin selector official vLcpr;v()[Lit/unimi/dsi/fastutil/shorts/ShortList;intermediary method_12296Lnet/minecraft/class_2839;method_12296()[Lit/unimi/dsi/fastutil/shorts/ShortList;named getLightSourcesBySectionLnet/minecraft/world/chunk/ProtoChunk;getLightSourcesBySection()[Lit/unimi/dsi/fastutil/shorts/ShortList;
-
addLightSource
public void addLightSource(short chunkSliceRel, int sectionY) - Mappings:
Namespace Name Mixin selector official bLcpr;b(SI)Vintermediary method_12304Lnet/minecraft/class_2839;method_12304(SI)Vnamed addLightSourceLnet/minecraft/world/chunk/ProtoChunk;addLightSource(SI)V
-
addLightSource
- Mappings:
Namespace Name Mixin selector official jLcpr;j(Lgh;)Vintermediary method_12315Lnet/minecraft/class_2839;method_12315(Lnet/minecraft/class_2338;)Vnamed addLightSourceLnet/minecraft/world/chunk/ProtoChunk;addLightSource(Lnet/minecraft/util/math/BlockPos;)V
-
setBlockState
- Specified by:
setBlockStatein classChunk- Mappings:
Namespace Name Mixin selector official aLcoz;a(Lgh;Lcnd;Z)Lcnd;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 classChunk- Mappings:
Namespace Name Mixin selector official aLcoz;a(Lcla;)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
-
getBlockEntity
- Mappings:
Namespace Name Mixin selector official c_Lbye;c_(Lgh;)Lcla;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;
-
getBlockEntities
- Mappings:
Namespace Name Mixin selector official wLcpr;w()Ljava/util/Map;intermediary method_12309Lnet/minecraft/class_2839;method_12309()Ljava/util/Map;named getBlockEntitiesLnet/minecraft/world/chunk/ProtoChunk;getBlockEntities()Ljava/util/Map;
-
addEntity
- Mappings:
Namespace Name Mixin selector official bLcpr;b(Lnf;)Vintermediary method_12302Lnet/minecraft/class_2839;method_12302(Lnet/minecraft/class_2487;)Vnamed addEntityLnet/minecraft/world/chunk/ProtoChunk;addEntity(Lnet/minecraft/nbt/NbtCompound;)V
-
addEntity
-
getEntities
- Mappings:
Namespace Name Mixin selector official xLcpr;x()Ljava/util/List;intermediary method_12295Lnet/minecraft/class_2839;method_12295()Ljava/util/List;named getEntitiesLnet/minecraft/world/chunk/ProtoChunk;getEntities()Ljava/util/List;
-
getStatus
-
setStatus
- Mappings:
Namespace Name Mixin selector official aLcpr;a(Lcpc;)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
-
getBiomeForNoiseGen
- Specified by:
getBiomeForNoiseGenin interfaceBiomeAccess.Storage- Overrides:
getBiomeForNoiseGenin classChunk- Mappings:
Namespace Name Mixin selector official getNoiseBiomeLcad$a;getNoiseBiome(III)Lcab;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;
-
getPackedSectionRelative
- Mappings:
Namespace Name Mixin selector official kLcpr;k(Lgh;)Sintermediary method_12300Lnet/minecraft/class_2839;method_12300(Lnet/minecraft/class_2338;)Snamed getPackedSectionRelativeLnet/minecraft/world/chunk/ProtoChunk;getPackedSectionRelative(Lnet/minecraft/util/math/BlockPos;)S
-
joinBlockPos
- Mappings:
Namespace Name Mixin selector official aLcpr;a(SILbyf;)Lgh;intermediary method_12314Lnet/minecraft/class_2839;method_12314(SILnet/minecraft/class_1923;)Lnet/minecraft/class_2338;named joinBlockPosLnet/minecraft/world/chunk/ProtoChunk;joinBlockPos(SILnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/util/math/BlockPos;
-
markBlockForPostProcessing
- Overrides:
markBlockForPostProcessingin classChunk- Mappings:
Namespace Name Mixin selector official eLcoz;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
-
markBlockForPostProcessing
public void markBlockForPostProcessing(short packedPos, int index) - Overrides:
markBlockForPostProcessingin classChunk- Mappings:
Namespace Name Mixin selector official aLcoz;a(SI)Vintermediary method_12029Lnet/minecraft/class_2791;method_12029(SI)Vnamed markBlockForPostProcessingLnet/minecraft/world/chunk/Chunk;markBlockForPostProcessing(SI)V
-
getBlockEntityNbts
- Mappings:
Namespace Name Mixin selector official yLcpr;y()Ljava/util/Map;intermediary method_12316Lnet/minecraft/class_2839;method_12316()Ljava/util/Map;named getBlockEntityNbtsLnet/minecraft/world/chunk/ProtoChunk;getBlockEntityNbts()Ljava/util/Map;
-
getPackedBlockEntityNbt
- Specified by:
getPackedBlockEntityNbtin classChunk- Mappings:
Namespace Name Mixin selector official gLcoz;g(Lgh;)Lnf;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 dLcoz;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
-
getCarvingMask
- Mappings:
Namespace Name Mixin selector official aLcpr;a(Lcrz$a;)Lcoy;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/class_6643;
-
getOrCreateCarvingMask
- Mappings:
Namespace Name Mixin selector official bLcpr;b(Lcrz$a;)Lcoy;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/class_6643;
-
setCarvingMask
- Mappings:
Namespace Name Mixin selector official aLcpr;a(Lcrz$a;Lcoy;)Vintermediary method_12307Lnet/minecraft/class_2839;method_12307(Lnet/minecraft/class_2893$class_2894;Lnet/minecraft/class_6643;)Vnamed setCarvingMaskLnet/minecraft/world/chunk/ProtoChunk;setCarvingMask(Lnet/minecraft/world/gen/GenerationStep$Carver;Lnet/minecraft/class_6643;)V
-
setLightingProvider
- Mappings:
Namespace Name Mixin selector official aLcpr;a(Ldgx;)Vintermediary method_17032Lnet/minecraft/class_2839;method_17032(Lnet/minecraft/class_3568;)Vnamed setLightingProviderLnet/minecraft/world/chunk/ProtoChunk;setLightingProvider(Lnet/minecraft/world/chunk/light/LightingProvider;)V
-