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,LightSourceView,HeightLimitView,StructureHolder
- Direct Known Subclasses:
WrapperProtoChunk
- Mappings:
Namespace Name named net/minecraft/world/chunk/ProtoChunkintermediary net/minecraft/class_2839official ept
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.chunk.Chunk
Chunk.TickSchedulersNested classes/interfaces inherited from interface net.minecraft.world.BlockView
BlockView.CollisionVisitor -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BelowZeroRetrogenprivate final SimpleTickScheduler<Block> private CarvingMaskprivate final List<NbtCompound> private final SimpleTickScheduler<Fluid> private LightingProviderprivate static final Loggerprivate ChunkStatusFields inherited from class net.minecraft.world.chunk.Chunk
blendingData, blockEntities, blockEntityNbts, chunkNoiseSampler, chunkSkyLight, heightLimitView, heightmaps, MISSING_SECTION, pos, postProcessingLists, sectionArray, upgradeData -
Constructor Summary
ConstructorsConstructorDescriptionProtoChunk(ChunkPos pos, UpgradeData upgradeData, ChunkSection @Nullable [] sections, SimpleTickScheduler<Block> blockTickScheduler, SimpleTickScheduler<Fluid> fluidTickScheduler, HeightLimitView world, PalettesFactory palettesFactory, @Nullable BlendingData blendingData) ProtoChunk(ChunkPos pos, UpgradeData upgradeData, HeightLimitView world, PalettesFactory palettesFactory, @Nullable BlendingData blendingData) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddEntity(NbtCompound entityNbt) private static <T> ChunkTickScheduler<T> createProtoTickScheduler(SimpleTickScheduler<T> tickScheduler) @Nullable BelowZeroRetrogengetBiomeForNoiseGen(int biomeX, int biomeY, int biomeZ) @Nullable BlockEntitygetBlockEntity(BlockPos pos) Returns the block entity atpos, ornullif there is none.getBlockState(BlockPos pos) Returns the block state atpos.@Nullable CarvingMaskgetFluidState(BlockPos pos) Returns the fluid state atpos.@Nullable NbtCompoundgetPackedBlockEntityNbt(BlockPos pos, RegistryWrapper.WrapperLookup registries) static shortgetTickSchedulers(long time) static BlockPosjoinBlockPos(short sectionRel, int sectionY, ChunkPos chunkPos) voidvoidmarkBlocksForPostProcessing(ShortList packedPositions, int index) voidvoidsetBelowZeroRetrogen(@Nullable BelowZeroRetrogen belowZeroRetrogen) voidsetBlockEntity(BlockEntity blockEntity) @Nullable BlockStatesetBlockState(BlockPos pos, BlockState state, int flags) voidsetCarvingMask(CarvingMask carvingMask) voidsetLightingProvider(LightingProvider lightingProvider) voidsetStatus(ChunkStatus status) voidsetStructureStart(Structure structure, StructureStart start) Methods inherited from class net.minecraft.world.chunk.Chunk
addPendingBlockEntityNbt, addStructureReference, areSectionsEmptyBetween, createErrorReporterContext, forEachBlockMatchingPredicate, forEachLightSource, getBlendingData, getBlockEntityNbt, getBlockEntityPositions, getBottomY, getChunkSkyLight, getErrorReporterContext, getGameEventDispatcher, getHeight, getHeightmap, getHeightmaps, getHighestNonEmptySection, getHighestNonEmptySectionYOffset, getInhabitedTime, getList, getMaxStatus, getOrCreateChunkNoiseSampler, getOrCreateGenerationSettings, getPos, getPostProcessingLists, getSection, getSectionArray, getStructureReferences, getStructureReferences, getStructureStart, getStructureStarts, getUpgradeData, hasBelowZeroRetrogen, hasHeightmap, hasStructureReferences, increaseInhabitedTime, isLightOn, isSerializable, markNeedsSaving, needsSaving, populateBiomes, refreshSurfaceY, sampleHeightmap, setBlockState, setHeightmap, setInhabitedTime, setLightOn, setStructureReferences, setStructureStarts, tryMarkSaved, 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, getTopYInclusive, isInHeightLimit, isOutOfHeightLimit, isOutOfHeightLimit, sectionCoordToIndex, sectionIndexToCoord
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/world/chunk/ProtoChunk;LOGGER:Lorg/slf4j/Logger;intermediary field_60377Lnet/minecraft/class_2839;field_60377:Lorg/slf4j/Logger;official mLept;m:Lorg/slf4j/Logger;
-
lightingProvider
- Mappings:
Namespace Name Mixin selector named lightingProviderLnet/minecraft/world/chunk/ProtoChunk;lightingProvider:Lnet/minecraft/world/chunk/light/LightingProvider;intermediary field_17105Lnet/minecraft/class_2839;field_17105:Lnet/minecraft/class_3568;official nLept;n:Lfji;
-
status
- Mappings:
Namespace Name Mixin selector named statusLnet/minecraft/world/chunk/ProtoChunk;status:Lnet/minecraft/world/chunk/ChunkStatus;intermediary field_12918Lnet/minecraft/class_2839;field_12918:Lnet/minecraft/class_2806;official oLept;o:Leqb;
-
entities
- Mappings:
Namespace Name Mixin selector named entitiesLnet/minecraft/world/chunk/ProtoChunk;entities:Ljava/util/List;intermediary field_12929Lnet/minecraft/class_2839;field_12929:Ljava/util/List;official pLept;p:Ljava/util/List;
-
carvingMask
- Mappings:
Namespace Name Mixin selector named carvingMaskLnet/minecraft/world/chunk/ProtoChunk;carvingMask:Lnet/minecraft/world/gen/carver/CarvingMask;intermediary field_12926Lnet/minecraft/class_2839;field_12926:Lnet/minecraft/class_6643;official qLept;q:Leow;
-
belowZeroRetrogen
- Mappings:
Namespace Name Mixin selector named belowZeroRetrogenLnet/minecraft/world/chunk/ProtoChunk;belowZeroRetrogen:Lnet/minecraft/world/chunk/BelowZeroRetrogen;intermediary field_35473Lnet/minecraft/class_2839;field_35473:Lnet/minecraft/class_6746;official rLept;r:Lesw;
-
blockTickScheduler
- Mappings:
Namespace Name Mixin selector named blockTickSchedulerLnet/minecraft/world/chunk/ProtoChunk;blockTickScheduler:Lnet/minecraft/world/tick/SimpleTickScheduler;intermediary field_35474Lnet/minecraft/class_2839;field_35474:Lnet/minecraft/class_4296;official sLept;s:Lftu;
-
fluidTickScheduler
- Mappings:
Namespace Name Mixin selector named fluidTickSchedulerLnet/minecraft/world/chunk/ProtoChunk;fluidTickScheduler:Lnet/minecraft/world/tick/SimpleTickScheduler;intermediary field_35475Lnet/minecraft/class_2839;field_35475:Lnet/minecraft/class_4296;official tLept;t:Lftu;
-
-
Constructor Details
-
ProtoChunk
public ProtoChunk(ChunkPos pos, UpgradeData upgradeData, HeightLimitView world, PalettesFactory palettesFactory, @Nullable BlendingData blendingData) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/chunk/ProtoChunk;<init>(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/chunk/UpgradeData;Lnet/minecraft/world/HeightLimitView;Lnet/minecraft/world/chunk/PalettesFactory;Lnet/minecraft/world/gen/chunk/BlendingData;)Vintermediary <init>Lnet/minecraft/class_2839;<init>(Lnet/minecraft/class_1923;Lnet/minecraft/class_2843;Lnet/minecraft/class_5539;Lnet/minecraft/class_11897;Lnet/minecraft/class_6749;)Vofficial <init>Lept;<init>(Ldum;Lepx;Ldvi;Lepr;Leul;)V
-
ProtoChunk
public ProtoChunk(ChunkPos pos, UpgradeData upgradeData, ChunkSection @Nullable [] sections, SimpleTickScheduler<Block> blockTickScheduler, SimpleTickScheduler<Fluid> fluidTickScheduler, HeightLimitView world, PalettesFactory palettesFactory, @Nullable BlendingData blendingData) - Mappings:
Namespace Name Mixin selector named <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/tick/SimpleTickScheduler;Lnet/minecraft/world/tick/SimpleTickScheduler;Lnet/minecraft/world/HeightLimitView;Lnet/minecraft/world/chunk/PalettesFactory;Lnet/minecraft/world/gen/chunk/BlendingData;)Vintermediary <init>Lnet/minecraft/class_2839;<init>(Lnet/minecraft/class_1923;Lnet/minecraft/class_2843;[Lnet/minecraft/class_2826;Lnet/minecraft/class_4296;Lnet/minecraft/class_4296;Lnet/minecraft/class_5539;Lnet/minecraft/class_11897;Lnet/minecraft/class_6749;)Vofficial <init>Lept;<init>(Ldum;Lepx;[Lepj;Lftu;Lftu;Ldvi;Lepr;Leul;)V
-
-
Method Details
-
getBlockTickScheduler
- Specified by:
getBlockTickSchedulerin classChunk- Mappings:
Namespace Name Mixin selector named getBlockTickSchedulerLnet/minecraft/world/chunk/Chunk;getBlockTickScheduler()Lnet/minecraft/world/tick/BasicTickScheduler;intermediary method_12013Lnet/minecraft/class_2791;method_12013()Lnet/minecraft/class_6763;official qLeox;q()Lftz;
-
getFluidTickScheduler
- Specified by:
getFluidTickSchedulerin classChunk- Mappings:
Namespace Name Mixin selector named getFluidTickSchedulerLnet/minecraft/world/chunk/Chunk;getFluidTickScheduler()Lnet/minecraft/world/tick/BasicTickScheduler;intermediary method_12014Lnet/minecraft/class_2791;method_12014()Lnet/minecraft/class_6763;official rLeox;r()Lftz;
-
getTickSchedulers
- Specified by:
getTickSchedulersin classChunk- Mappings:
Namespace Name Mixin selector named getTickSchedulersLnet/minecraft/world/chunk/Chunk;getTickSchedulers(J)Lnet/minecraft/world/chunk/Chunk$TickSchedulers;intermediary method_39296Lnet/minecraft/class_2791;method_39296(J)Lnet/minecraft/class_2791$class_6745;official aLeox;a(J)Leox$b;
-
getBlockState
Returns the block state atpos.- Returns:
- the block state at
pos - Implementation Note:
- This returns the block state for
Blocks.VOID_AIRif the Y coordinate is outside the height limit. - Mappings:
Namespace Name Mixin selector named getBlockStateLnet/minecraft/world/BlockView;getBlockState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;intermediary method_8320Lnet/minecraft/class_1922;method_8320(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;official a_Ldul;a_(Lis;)Lemz;
-
getFluidState
Returns the fluid state atpos.- Returns:
- the fluid state at
pos - Implementation Note:
- This returns the fluid state for
Fluids.EMPTYif the Y coordinate is outside the height limit. - Mappings:
Namespace Name Mixin selector named getFluidStateLnet/minecraft/world/BlockView;getFluidState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/fluid/FluidState;intermediary method_8316Lnet/minecraft/class_1922;method_8316(Lnet/minecraft/class_2338;)Lnet/minecraft/class_3610;official b_Ldul;b_(Lis;)Lfjt;
-
setBlockState
- Specified by:
setBlockStatein classChunk- Mappings:
Namespace Name Mixin selector named setBlockStateLnet/minecraft/world/chunk/Chunk;setBlockState(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;I)Lnet/minecraft/block/BlockState;intermediary method_12010Lnet/minecraft/class_2791;method_12010(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;I)Lnet/minecraft/class_2680;official aLeox;a(Lis;Lemz;I)Lemz;
-
setBlockEntity
- Specified by:
setBlockEntityin classChunk- Mappings:
Namespace Name Mixin selector named setBlockEntityLnet/minecraft/world/chunk/Chunk;setBlockEntity(Lnet/minecraft/block/entity/BlockEntity;)Vintermediary method_12007Lnet/minecraft/class_2791;method_12007(Lnet/minecraft/class_2586;)Vofficial aLeox;a(Lejt;)V
-
getBlockEntity
Returns the block entity atpos, ornullif there is none.- Returns:
- the block entity at
pos, ornullif there is none - Mappings:
Namespace Name Mixin selector named getBlockEntityLnet/minecraft/world/BlockView;getBlockEntity(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/entity/BlockEntity;intermediary method_8321Lnet/minecraft/class_1922;method_8321(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2586;official c_Ldul;c_(Lis;)Lejt;
-
getBlockEntities
- Mappings:
Namespace Name Mixin selector named getBlockEntitiesLnet/minecraft/world/chunk/ProtoChunk;getBlockEntities()Ljava/util/Map;intermediary method_12309Lnet/minecraft/class_2839;method_12309()Ljava/util/Map;official ILept;I()Ljava/util/Map;
-
addEntity
- Mappings:
Namespace Name Mixin selector named addEntityLnet/minecraft/world/chunk/ProtoChunk;addEntity(Lnet/minecraft/nbt/NbtCompound;)Vintermediary method_12302Lnet/minecraft/class_2839;method_12302(Lnet/minecraft/class_2487;)Vofficial bLept;b(Luz;)V
-
addEntity
-
setStructureStart
- Specified by:
setStructureStartin interfaceStructureHolder- Overrides:
setStructureStartin classChunk- Mappings:
Namespace Name Mixin selector named setStructureStartLnet/minecraft/world/StructureHolder;setStructureStart(Lnet/minecraft/world/gen/structure/Structure;Lnet/minecraft/structure/StructureStart;)Vintermediary method_12184Lnet/minecraft/class_2810;method_12184(Lnet/minecraft/class_3195;Lnet/minecraft/class_3449;)Vofficial aLepw;a(Lfeg;Lfeo;)V
-
getEntities
- Mappings:
Namespace Name Mixin selector named getEntitiesLnet/minecraft/world/chunk/ProtoChunk;getEntities()Ljava/util/List;intermediary method_12295Lnet/minecraft/class_2839;method_12295()Ljava/util/List;official JLept;J()Ljava/util/List;
-
getStatus
-
setStatus
- Mappings:
Namespace Name Mixin selector named setStatusLnet/minecraft/world/chunk/ProtoChunk;setStatus(Lnet/minecraft/world/chunk/ChunkStatus;)Vintermediary method_12308Lnet/minecraft/class_2839;method_12308(Lnet/minecraft/class_2806;)Vofficial aLept;a(Leqb;)V
-
getBiomeForNoiseGen
- Specified by:
getBiomeForNoiseGenin interfaceBiomeAccess.Storage- Overrides:
getBiomeForNoiseGenin classChunk- Mappings:
Namespace Name Mixin selector named getBiomeForNoiseGenLnet/minecraft/world/biome/source/BiomeAccess$Storage;getBiomeForNoiseGen(III)Lnet/minecraft/registry/entry/RegistryEntry;intermediary method_16359Lnet/minecraft/class_4543$class_4544;method_16359(III)Lnet/minecraft/class_6880;official getNoiseBiomeLdwi$a;getNoiseBiome(III)Ljd;
-
getPackedSectionRelative
- Mappings:
Namespace Name Mixin selector named getPackedSectionRelativeLnet/minecraft/world/chunk/ProtoChunk;getPackedSectionRelative(Lnet/minecraft/util/math/BlockPos;)Sintermediary method_12300Lnet/minecraft/class_2839;method_12300(Lnet/minecraft/class_2338;)Sofficial gLept;g(Lis;)S
-
joinBlockPos
- Mappings:
Namespace Name Mixin selector named joinBlockPosLnet/minecraft/world/chunk/ProtoChunk;joinBlockPos(SILnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/util/math/BlockPos;intermediary method_12314Lnet/minecraft/class_2839;method_12314(SILnet/minecraft/class_1923;)Lnet/minecraft/class_2338;official aLept;a(SILdum;)Lis;
-
markBlockForPostProcessing
- Overrides:
markBlockForPostProcessingin classChunk- Mappings:
Namespace Name Mixin selector named markBlockForPostProcessingLnet/minecraft/world/chunk/Chunk;markBlockForPostProcessing(Lnet/minecraft/util/math/BlockPos;)Vintermediary method_12039Lnet/minecraft/class_2791;method_12039(Lnet/minecraft/class_2338;)Vofficial eLeox;e(Lis;)V
-
markBlocksForPostProcessing
- Overrides:
markBlocksForPostProcessingin classChunk- Mappings:
Namespace Name Mixin selector named markBlocksForPostProcessingLnet/minecraft/world/chunk/Chunk;markBlocksForPostProcessing(Lit/unimi/dsi/fastutil/shorts/ShortList;I)Vintermediary method_12029Lnet/minecraft/class_2791;method_12029(Lit/unimi/dsi/fastutil/shorts/ShortList;I)Vofficial aLeox;a(Lit/unimi/dsi/fastutil/shorts/ShortList;I)V
-
getBlockEntityNbts
- Mappings:
Namespace Name Mixin selector named getBlockEntityNbtsLnet/minecraft/world/chunk/ProtoChunk;getBlockEntityNbts()Ljava/util/Map;intermediary method_12316Lnet/minecraft/class_2839;method_12316()Ljava/util/Map;official KLept;K()Ljava/util/Map;
-
getPackedBlockEntityNbt
public @Nullable NbtCompound getPackedBlockEntityNbt(BlockPos pos, RegistryWrapper.WrapperLookup registries) - Specified by:
getPackedBlockEntityNbtin classChunk- Mappings:
Namespace Name Mixin selector named getPackedBlockEntityNbtLnet/minecraft/world/chunk/Chunk;getPackedBlockEntityNbt(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/nbt/NbtCompound;intermediary method_20598Lnet/minecraft/class_2791;method_20598(Lnet/minecraft/class_2338;Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_2487;official aLeox;a(Lis;Ljf$a;)Luz;
-
removeBlockEntity
- Specified by:
removeBlockEntityin classChunk- Mappings:
Namespace Name Mixin selector named removeBlockEntityLnet/minecraft/world/chunk/Chunk;removeBlockEntity(Lnet/minecraft/util/math/BlockPos;)Vintermediary method_12041Lnet/minecraft/class_2791;method_12041(Lnet/minecraft/class_2338;)Vofficial cLeox;c(Lis;)V
-
getCarvingMask
- Mappings:
Namespace Name Mixin selector named getCarvingMaskLnet/minecraft/world/chunk/ProtoChunk;getCarvingMask()Lnet/minecraft/world/gen/carver/CarvingMask;intermediary method_12025Lnet/minecraft/class_2839;method_12025()Lnet/minecraft/class_6643;official FLept;F()Leow;
-
getOrCreateCarvingMask
- Mappings:
Namespace Name Mixin selector named getOrCreateCarvingMaskLnet/minecraft/world/chunk/ProtoChunk;getOrCreateCarvingMask()Lnet/minecraft/world/gen/carver/CarvingMask;intermediary method_28510Lnet/minecraft/class_2839;method_28510()Lnet/minecraft/class_6643;official GLept;G()Leow;
-
setCarvingMask
- Mappings:
Namespace Name Mixin selector named setCarvingMaskLnet/minecraft/world/chunk/ProtoChunk;setCarvingMask(Lnet/minecraft/world/gen/carver/CarvingMask;)Vintermediary method_12307Lnet/minecraft/class_2839;method_12307(Lnet/minecraft/class_6643;)Vofficial aLept;a(Leow;)V
-
setLightingProvider
- Mappings:
Namespace Name Mixin selector named setLightingProviderLnet/minecraft/world/chunk/ProtoChunk;setLightingProvider(Lnet/minecraft/world/chunk/light/LightingProvider;)Vintermediary method_17032Lnet/minecraft/class_2839;method_17032(Lnet/minecraft/class_3568;)Vofficial aLept;a(Lfji;)V
-
setBelowZeroRetrogen
- Mappings:
Namespace Name Mixin selector named setBelowZeroRetrogenLnet/minecraft/world/chunk/ProtoChunk;setBelowZeroRetrogen(Lnet/minecraft/world/chunk/BelowZeroRetrogen;)Vintermediary method_39309Lnet/minecraft/class_2839;method_39309(Lnet/minecraft/class_6746;)Vofficial aLept;a(Lesw;)V
-
getBelowZeroRetrogen
- Overrides:
getBelowZeroRetrogenin classChunk- Mappings:
Namespace Name Mixin selector named getBelowZeroRetrogenLnet/minecraft/world/chunk/Chunk;getBelowZeroRetrogen()Lnet/minecraft/world/chunk/BelowZeroRetrogen;intermediary method_39300Lnet/minecraft/class_2791;method_39300()Lnet/minecraft/class_6746;official zLeox;z()Lesw;
-
createProtoTickScheduler
private static <T> ChunkTickScheduler<T> createProtoTickScheduler(SimpleTickScheduler<T> tickScheduler) - Mappings:
Namespace Name Mixin selector named createProtoTickSchedulerLnet/minecraft/world/chunk/ProtoChunk;createProtoTickScheduler(Lnet/minecraft/world/tick/SimpleTickScheduler;)Lnet/minecraft/world/tick/ChunkTickScheduler;intermediary method_39310Lnet/minecraft/class_2839;method_39310(Lnet/minecraft/class_4296;)Lnet/minecraft/class_6755;official aLept;a(Lftu;)Lftr;
-
getBlockProtoTickScheduler
- Mappings:
Namespace Name Mixin selector named getBlockProtoTickSchedulerLnet/minecraft/world/chunk/ProtoChunk;getBlockProtoTickScheduler()Lnet/minecraft/world/tick/ChunkTickScheduler;intermediary method_39307Lnet/minecraft/class_2839;method_39307()Lnet/minecraft/class_6755;official LLept;L()Lftr;
-
getFluidProtoTickScheduler
- Mappings:
Namespace Name Mixin selector named getFluidProtoTickSchedulerLnet/minecraft/world/chunk/ProtoChunk;getFluidProtoTickScheduler()Lnet/minecraft/world/tick/ChunkTickScheduler;intermediary method_39308Lnet/minecraft/class_2839;method_39308()Lnet/minecraft/class_6755;official MLept;M()Lftr;
-
getHeightLimitView
- Overrides:
getHeightLimitViewin classChunk- Mappings:
Namespace Name Mixin selector named getHeightLimitViewLnet/minecraft/world/chunk/Chunk;getHeightLimitView()Lnet/minecraft/world/HeightLimitView;intermediary method_39460Lnet/minecraft/class_2791;method_39460()Lnet/minecraft/class_5539;official BLeox;B()Ldvi;
-