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 cpbintermediary net/minecraft/class_2839named net/minecraft/world/chunk/ProtoChunk
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<GenerationStep.Carver,BitSet> private final List<NbtCompound>private @Nullable LightingProviderprivate static final Loggerprivate ChunkStatusFields inherited from class net.minecraft.world.chunk.Chunk
field_34536, field_34537, field_34538, field_34539, field_34540, field_34541, field_34542, field_34543, field_34544, field_34545, field_34546, field_34547 -
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, BitSet mask) 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, getPos, getPostProcessingLists, getSection, getSectionArray, getStructureReferences, getStructureReferences, getStructureStart, getStructureStarts, getUpgradeData, isLightOn, method_38255, 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 mLcpb;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 nLcpb;n:Ldhb;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 oLcpb;o:Lcol;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 pLcpb;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 qLcpb;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 rLcpb;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>Lcpb;<init>(Lbxq;Lcpe;Lbyo;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>Lcpb;<init>(Lbxq;Lcpe;[Lcou;Lcpc;Lcpc;Lbyo;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_Lbxp;a_(Lgh;)Lcmo;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_Lbxp;b_(Lgh;)Ldhk;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 nLcoi;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 uLcpb;u()[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 bLcpb;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 jLcpb;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 aLcoi;a(Lgh;Lcmo;Z)Lcmo;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 aLcoi;a(Lckl;)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_Lbxp;c_(Lgh;)Lckl;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 vLcpb;v()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 bLcpb;b(Lnb;)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 wLcpb;w()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 aLcpb;a(Lcol;)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 getNoiseBiomeLbzo$a;getNoiseBiome(III)Lbzm;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 kLcpb;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 aLcpb;a(SILbxq;)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 eLcoi;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 aLcoi;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 xLcpb;x()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 gLcoi;g(Lgh;)Lnb;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 dLcoi;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 aLcpb;a(Lcrk$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
- Mappings:
Namespace Name Mixin selector official bLcpb;b(Lcrk$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;
-
setCarvingMask
- Mappings:
Namespace Name Mixin selector official aLcpb;a(Lcrk$a;Ljava/util/BitSet;)Vintermediary method_12307Lnet/minecraft/class_2839;method_12307(Lnet/minecraft/class_2893$class_2894;Ljava/util/BitSet;)Vnamed setCarvingMaskLnet/minecraft/world/chunk/ProtoChunk;setCarvingMask(Lnet/minecraft/world/gen/GenerationStep$Carver;Ljava/util/BitSet;)V
-
setLightingProvider
- Mappings:
Namespace Name Mixin selector official aLcpb;a(Ldhb;)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
-