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 official dep
intermediary net/minecraft/class_2839
named net/minecraft/world/chunk/ProtoChunk
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.chunk.Chunk
Chunk.TickSchedulers
-
Field Summary
Modifier and TypeFieldDescriptionprivate @Nullable BelowZeroRetrogen
private final SimpleTickScheduler<Block>
private final Map<GenerationStep.Carver,
CarvingMask> private final List<NbtCompound>
private final SimpleTickScheduler<Fluid>
private @Nullable LightingProvider
private ChunkStatus
Fields inherited from class net.minecraft.world.chunk.Chunk
blendingData, blockEntities, blockEntityNbts, chunkNoiseSampler, chunkSkyLight, heightLimitView, heightmaps, MISSING_SECTION, needsSaving, pos, postProcessingLists, sectionArray, upgradeData
-
Constructor Summary
ConstructorDescriptionProtoChunk
(ChunkPos pos, UpgradeData upgradeData, @Nullable ChunkSection[] sections, SimpleTickScheduler<Block> blockTickScheduler, SimpleTickScheduler<Fluid> fluidTickScheduler, HeightLimitView world, Registry<Biome> biomeRegistry, @Nullable BlendingData blendingData) ProtoChunk
(ChunkPos pos, UpgradeData upgradeData, HeightLimitView world, Registry<Biome> biomeRegistry, @Nullable BlendingData blendingData) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addEntity
(NbtCompound entityNbt) private static <T> ChunkTickScheduler<T>
createProtoTickScheduler
(SimpleTickScheduler<T> tickScheduler) getBiomeForNoiseGen
(int biomeX, int biomeY, int biomeZ) getBlockEntity
(BlockPos pos) Returns the block entity atpos
, ornull
if there is none.getBlockState
(BlockPos pos) Returns the block state atpos
.getFluidState
(BlockPos pos) Returns the fluid state atpos
.static short
static BlockPos
joinBlockPos
(short sectionRel, int sectionY, ChunkPos chunkPos) void
markBlockForPostProcessing
(short packedPos, int index) void
void
void
setBelowZeroRetrogen
(@Nullable BelowZeroRetrogen belowZeroRetrogen) void
setBlockEntity
(BlockEntity blockEntity) setBlockState
(BlockPos pos, BlockState state, boolean moved) void
setCarvingMask
(GenerationStep.Carver step, CarvingMask carvingMask) void
setLightingProvider
(LightingProvider lightingProvider) void
setStatus
(ChunkStatus status) void
setStructureStart
(Structure structure, StructureStart start) Methods inherited from class net.minecraft.world.chunk.Chunk
addPendingBlockEntityNbt, addStructureReference, areSectionsEmptyBetween, forEachBlockMatchingPredicate, forEachLightSource, getBlendingData, getBlockEntityNbt, getBlockEntityPositions, getBottomY, getChunkSkyLight, getGameEventDispatcher, getHeight, getHeightmap, getHeightmaps, getHighestNonEmptySection, getHighestNonEmptySectionYOffset, getInhabitedTime, getList, getOrCreateChunkNoiseSampler, getOrCreateGenerationSettings, getPos, getPostProcessingLists, getSection, getSectionArray, getStructureReferences, getStructureReferences, getStructureStart, getStructureStarts, getUpgradeData, hasBelowZeroRetrogen, hasHeightmap, hasStructureReferences, increaseInhabitedTime, isLightOn, method_51526, needsSaving, populateBiomes, refreshSurfaceY, sampleHeightmap, setBlendingData, setHeightmap, setInhabitedTime, setLightOn, setNeedsSaving, setStructureReferences, setStructureStarts, usesOldNoise
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.BlockView
getBlockEntity, getDismountHeight, getDismountHeight, getLuminance, getMaxLightLevel, getStatesInBox, raycast, raycast, raycastBlock
Methods inherited from interface net.minecraft.world.HeightLimitView
countVerticalSections, getBottomSectionCoord, getSectionIndex, getTopSectionCoord, getTopY, isOutOfHeightLimit, isOutOfHeightLimit, sectionCoordToIndex, sectionIndexToCoord
-
Field Details
-
lightingProvider
- Mappings:
Namespace Name Mixin selector official n
Ldep;n:Ldwq;
intermediary field_17105
Lnet/minecraft/class_2839;field_17105:Lnet/minecraft/class_3568;
named lightingProvider
Lnet/minecraft/world/chunk/ProtoChunk;lightingProvider:Lnet/minecraft/world/chunk/light/LightingProvider;
-
status
- Mappings:
Namespace Name Mixin selector official o
Ldep;o:Lddz;
intermediary field_12918
Lnet/minecraft/class_2839;field_12918:Lnet/minecraft/class_2806;
named status
Lnet/minecraft/world/chunk/ProtoChunk;status:Lnet/minecraft/world/chunk/ChunkStatus;
-
entities
- Mappings:
Namespace Name Mixin selector official p
Ldep;p:Ljava/util/List;
intermediary field_12929
Lnet/minecraft/class_2839;field_12929:Ljava/util/List;
named entities
Lnet/minecraft/world/chunk/ProtoChunk;entities:Ljava/util/List;
-
carvingMasks
- Mappings:
Namespace Name Mixin selector official q
Ldep;q:Ljava/util/Map;
intermediary field_12926
Lnet/minecraft/class_2839;field_12926:Ljava/util/Map;
named carvingMasks
Lnet/minecraft/world/chunk/ProtoChunk;carvingMasks:Ljava/util/Map;
-
belowZeroRetrogen
- Mappings:
Namespace Name Mixin selector official r
Ldep;r:Ldgv;
intermediary field_35473
Lnet/minecraft/class_2839;field_35473:Lnet/minecraft/class_6746;
named belowZeroRetrogen
Lnet/minecraft/world/chunk/ProtoChunk;belowZeroRetrogen:Lnet/minecraft/world/chunk/BelowZeroRetrogen;
-
blockTickScheduler
- Mappings:
Namespace Name Mixin selector official s
Ldep;s:Lefj;
intermediary field_35474
Lnet/minecraft/class_2839;field_35474:Lnet/minecraft/class_4296;
named blockTickScheduler
Lnet/minecraft/world/chunk/ProtoChunk;blockTickScheduler:Lnet/minecraft/world/tick/SimpleTickScheduler;
-
fluidTickScheduler
- Mappings:
Namespace Name Mixin selector official t
Ldep;t:Lefj;
intermediary field_35475
Lnet/minecraft/class_2839;field_35475:Lnet/minecraft/class_4296;
named fluidTickScheduler
Lnet/minecraft/world/chunk/ProtoChunk;fluidTickScheduler:Lnet/minecraft/world/tick/SimpleTickScheduler;
-
-
Constructor Details
-
ProtoChunk
public ProtoChunk(ChunkPos pos, UpgradeData upgradeData, HeightLimitView world, Registry<Biome> biomeRegistry, @Nullable @Nullable BlendingData blendingData) - Mappings:
Namespace Name Mixin selector official <init>
Ldep;<init>(Lclr;Ldes;Lcmm;Lhr;Ldik;)V
intermediary <init>
Lnet/minecraft/class_2839;<init>(Lnet/minecraft/class_1923;Lnet/minecraft/class_2843;Lnet/minecraft/class_5539;Lnet/minecraft/class_2378;Lnet/minecraft/class_6749;)V
named <init>
Lnet/minecraft/world/chunk/ProtoChunk;<init>(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/chunk/UpgradeData;Lnet/minecraft/world/HeightLimitView;Lnet/minecraft/registry/Registry;Lnet/minecraft/world/gen/chunk/BlendingData;)V
-
ProtoChunk
public ProtoChunk(ChunkPos pos, UpgradeData upgradeData, @Nullable @Nullable ChunkSection[] sections, SimpleTickScheduler<Block> blockTickScheduler, SimpleTickScheduler<Fluid> fluidTickScheduler, HeightLimitView world, Registry<Biome> biomeRegistry, @Nullable @Nullable BlendingData blendingData) - Mappings:
Namespace Name Mixin selector official <init>
Ldep;<init>(Lclr;Ldes;[Ldeg;Lefj;Lefj;Lcmm;Lhr;Ldik;)V
intermediary <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_2378;Lnet/minecraft/class_6749;)V
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/registry/Registry;Lnet/minecraft/world/gen/chunk/BlendingData;)V
-
-
Method Details
-
getBlockTickScheduler
- Specified by:
getBlockTickScheduler
in classChunk
- Mappings:
Namespace Name Mixin selector official o
Lddu;o()Lefo;
intermediary method_12013
Lnet/minecraft/class_2791;method_12013()Lnet/minecraft/class_6763;
named getBlockTickScheduler
Lnet/minecraft/world/chunk/Chunk;getBlockTickScheduler()Lnet/minecraft/world/tick/BasicTickScheduler;
-
getFluidTickScheduler
- Specified by:
getFluidTickScheduler
in classChunk
- Mappings:
Namespace Name Mixin selector official p
Lddu;p()Lefo;
intermediary method_12014
Lnet/minecraft/class_2791;method_12014()Lnet/minecraft/class_6763;
named getFluidTickScheduler
Lnet/minecraft/world/chunk/Chunk;getFluidTickScheduler()Lnet/minecraft/world/tick/BasicTickScheduler;
-
getTickSchedulers
- Specified by:
getTickSchedulers
in classChunk
- Mappings:
Namespace Name Mixin selector official q
Lddu;q()Lddu$a;
intermediary method_39296
Lnet/minecraft/class_2791;method_39296()Lnet/minecraft/class_2791$class_6745;
named getTickSchedulers
Lnet/minecraft/world/chunk/Chunk;getTickSchedulers()Lnet/minecraft/world/chunk/Chunk$TickSchedulers;
-
getBlockState
Returns the block state atpos
.- Returns:
- the block state at
pos
- Mappings:
Namespace Name Mixin selector official a_
Lclq;a_(Lgu;)Ldby;
intermediary method_8320
Lnet/minecraft/class_1922;method_8320(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
named getBlockState
Lnet/minecraft/world/BlockView;getBlockState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
getFluidState
Returns the fluid state atpos
.- Returns:
- the fluid state at
pos
- Mappings:
Namespace Name Mixin selector official b_
Lclq;b_(Lgu;)Ldxb;
intermediary method_8316
Lnet/minecraft/class_1922;method_8316(Lnet/minecraft/class_2338;)Lnet/minecraft/class_3610;
named getFluidState
Lnet/minecraft/world/BlockView;getFluidState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/fluid/FluidState;
-
setBlockState
- Specified by:
setBlockState
in classChunk
- Mappings:
Namespace Name Mixin selector official a
Lddu;a(Lgu;Ldby;Z)Ldby;
intermediary method_12010
Lnet/minecraft/class_2791;method_12010(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)Lnet/minecraft/class_2680;
named setBlockState
Lnet/minecraft/world/chunk/Chunk;setBlockState(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)Lnet/minecraft/block/BlockState;
-
setBlockEntity
- Specified by:
setBlockEntity
in classChunk
- Mappings:
Namespace Name Mixin selector official a
Lddu;a(Lczk;)V
intermediary method_12007
Lnet/minecraft/class_2791;method_12007(Lnet/minecraft/class_2586;)V
named setBlockEntity
Lnet/minecraft/world/chunk/Chunk;setBlockEntity(Lnet/minecraft/block/entity/BlockEntity;)V
-
getBlockEntity
Returns the block entity atpos
, ornull
if there is none.- Returns:
- the block entity at
pos
, ornull
if there is none - Mappings:
Namespace Name Mixin selector official c_
Lclq;c_(Lgu;)Lczk;
intermediary method_8321
Lnet/minecraft/class_1922;method_8321(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2586;
named getBlockEntity
Lnet/minecraft/world/BlockView;getBlockEntity(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/entity/BlockEntity;
-
getBlockEntities
- Mappings:
Namespace Name Mixin selector official D
Ldep;D()Ljava/util/Map;
intermediary method_12309
Lnet/minecraft/class_2839;method_12309()Ljava/util/Map;
named getBlockEntities
Lnet/minecraft/world/chunk/ProtoChunk;getBlockEntities()Ljava/util/Map;
-
addEntity
- Mappings:
Namespace Name Mixin selector official b
Ldep;b(Lqr;)V
intermediary method_12302
Lnet/minecraft/class_2839;method_12302(Lnet/minecraft/class_2487;)V
named addEntity
Lnet/minecraft/world/chunk/ProtoChunk;addEntity(Lnet/minecraft/nbt/NbtCompound;)V
-
addEntity
-
setStructureStart
- Specified by:
setStructureStart
in interfaceStructureHolder
- Overrides:
setStructureStart
in classChunk
- Mappings:
Namespace Name Mixin selector official a
Lder;a(Ldrx;Ldsf;)V
intermediary method_12184
Lnet/minecraft/class_2810;method_12184(Lnet/minecraft/class_3195;Lnet/minecraft/class_3449;)V
named setStructureStart
Lnet/minecraft/world/StructureHolder;setStructureStart(Lnet/minecraft/world/gen/structure/Structure;Lnet/minecraft/structure/StructureStart;)V
-
getEntities
- Mappings:
Namespace Name Mixin selector official E
Ldep;E()Ljava/util/List;
intermediary method_12295
Lnet/minecraft/class_2839;method_12295()Ljava/util/List;
named getEntities
Lnet/minecraft/world/chunk/ProtoChunk;getEntities()Ljava/util/List;
-
getStatus
-
setStatus
- Mappings:
Namespace Name Mixin selector official a
Ldep;a(Lddz;)V
intermediary method_12308
Lnet/minecraft/class_2839;method_12308(Lnet/minecraft/class_2806;)V
named setStatus
Lnet/minecraft/world/chunk/ProtoChunk;setStatus(Lnet/minecraft/world/chunk/ChunkStatus;)V
-
getBiomeForNoiseGen
- Specified by:
getBiomeForNoiseGen
in interfaceBiomeAccess.Storage
- Overrides:
getBiomeForNoiseGen
in classChunk
- Mappings:
Namespace Name Mixin selector official getNoiseBiome
Lcnk$a;getNoiseBiome(III)Lhe;
intermediary method_16359
Lnet/minecraft/class_4543$class_4544;method_16359(III)Lnet/minecraft/class_6880;
named getBiomeForNoiseGen
Lnet/minecraft/world/biome/source/BiomeAccess$Storage;getBiomeForNoiseGen(III)Lnet/minecraft/registry/entry/RegistryEntry;
-
getPackedSectionRelative
- Mappings:
Namespace Name Mixin selector official j
Ldep;j(Lgu;)S
intermediary method_12300
Lnet/minecraft/class_2839;method_12300(Lnet/minecraft/class_2338;)S
named getPackedSectionRelative
Lnet/minecraft/world/chunk/ProtoChunk;getPackedSectionRelative(Lnet/minecraft/util/math/BlockPos;)S
-
joinBlockPos
- Mappings:
Namespace Name Mixin selector official a
Ldep;a(SILclr;)Lgu;
intermediary method_12314
Lnet/minecraft/class_2839;method_12314(SILnet/minecraft/class_1923;)Lnet/minecraft/class_2338;
named joinBlockPos
Lnet/minecraft/world/chunk/ProtoChunk;joinBlockPos(SILnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/util/math/BlockPos;
-
markBlockForPostProcessing
- Overrides:
markBlockForPostProcessing
in classChunk
- Mappings:
Namespace Name Mixin selector official e
Lddu;e(Lgu;)V
intermediary method_12039
Lnet/minecraft/class_2791;method_12039(Lnet/minecraft/class_2338;)V
named markBlockForPostProcessing
Lnet/minecraft/world/chunk/Chunk;markBlockForPostProcessing(Lnet/minecraft/util/math/BlockPos;)V
-
markBlockForPostProcessing
public void markBlockForPostProcessing(short packedPos, int index) - Overrides:
markBlockForPostProcessing
in classChunk
- Mappings:
Namespace Name Mixin selector official a
Lddu;a(SI)V
intermediary method_12029
Lnet/minecraft/class_2791;method_12029(SI)V
named markBlockForPostProcessing
Lnet/minecraft/world/chunk/Chunk;markBlockForPostProcessing(SI)V
-
getBlockEntityNbts
- Mappings:
Namespace Name Mixin selector official F
Ldep;F()Ljava/util/Map;
intermediary method_12316
Lnet/minecraft/class_2839;method_12316()Ljava/util/Map;
named getBlockEntityNbts
Lnet/minecraft/world/chunk/ProtoChunk;getBlockEntityNbts()Ljava/util/Map;
-
getPackedBlockEntityNbt
- Specified by:
getPackedBlockEntityNbt
in classChunk
- Mappings:
Namespace Name Mixin selector official g
Lddu;g(Lgu;)Lqr;
intermediary method_20598
Lnet/minecraft/class_2791;method_20598(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2487;
named getPackedBlockEntityNbt
Lnet/minecraft/world/chunk/Chunk;getPackedBlockEntityNbt(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/nbt/NbtCompound;
-
removeBlockEntity
- Specified by:
removeBlockEntity
in classChunk
- Mappings:
Namespace Name Mixin selector official d
Lddu;d(Lgu;)V
intermediary method_12041
Lnet/minecraft/class_2791;method_12041(Lnet/minecraft/class_2338;)V
named removeBlockEntity
Lnet/minecraft/world/chunk/Chunk;removeBlockEntity(Lnet/minecraft/util/math/BlockPos;)V
-
getCarvingMask
- Mappings:
Namespace Name Mixin selector official a
Ldep;a(Ldhd$a;)Lddt;
intermediary method_12025
Lnet/minecraft/class_2839;method_12025(Lnet/minecraft/class_2893$class_2894;)Lnet/minecraft/class_6643;
named getCarvingMask
Lnet/minecraft/world/chunk/ProtoChunk;getCarvingMask(Lnet/minecraft/world/gen/GenerationStep$Carver;)Lnet/minecraft/world/gen/carver/CarvingMask;
-
getOrCreateCarvingMask
- Mappings:
Namespace Name Mixin selector official b
Ldep;b(Ldhd$a;)Lddt;
intermediary method_28510
Lnet/minecraft/class_2839;method_28510(Lnet/minecraft/class_2893$class_2894;)Lnet/minecraft/class_6643;
named getOrCreateCarvingMask
Lnet/minecraft/world/chunk/ProtoChunk;getOrCreateCarvingMask(Lnet/minecraft/world/gen/GenerationStep$Carver;)Lnet/minecraft/world/gen/carver/CarvingMask;
-
setCarvingMask
- Mappings:
Namespace Name Mixin selector official a
Ldep;a(Ldhd$a;Lddt;)V
intermediary method_12307
Lnet/minecraft/class_2839;method_12307(Lnet/minecraft/class_2893$class_2894;Lnet/minecraft/class_6643;)V
named setCarvingMask
Lnet/minecraft/world/chunk/ProtoChunk;setCarvingMask(Lnet/minecraft/world/gen/GenerationStep$Carver;Lnet/minecraft/world/gen/carver/CarvingMask;)V
-
setLightingProvider
- Mappings:
Namespace Name Mixin selector official a
Ldep;a(Ldwq;)V
intermediary method_17032
Lnet/minecraft/class_2839;method_17032(Lnet/minecraft/class_3568;)V
named setLightingProvider
Lnet/minecraft/world/chunk/ProtoChunk;setLightingProvider(Lnet/minecraft/world/chunk/light/LightingProvider;)V
-
setBelowZeroRetrogen
- Mappings:
Namespace Name Mixin selector official a
Ldep;a(Ldgv;)V
intermediary method_39309
Lnet/minecraft/class_2839;method_39309(Lnet/minecraft/class_6746;)V
named setBelowZeroRetrogen
Lnet/minecraft/world/chunk/ProtoChunk;setBelowZeroRetrogen(Lnet/minecraft/world/chunk/BelowZeroRetrogen;)V
-
getBelowZeroRetrogen
- Overrides:
getBelowZeroRetrogen
in classChunk
- Mappings:
Namespace Name Mixin selector official x
Lddu;x()Ldgv;
intermediary method_39300
Lnet/minecraft/class_2791;method_39300()Lnet/minecraft/class_6746;
named getBelowZeroRetrogen
Lnet/minecraft/world/chunk/Chunk;getBelowZeroRetrogen()Lnet/minecraft/world/chunk/BelowZeroRetrogen;
-
createProtoTickScheduler
private static <T> ChunkTickScheduler<T> createProtoTickScheduler(SimpleTickScheduler<T> tickScheduler) - Mappings:
Namespace Name Mixin selector official a
Ldep;a(Lefj;)Lefg;
intermediary method_39310
Lnet/minecraft/class_2839;method_39310(Lnet/minecraft/class_4296;)Lnet/minecraft/class_6755;
named createProtoTickScheduler
Lnet/minecraft/world/chunk/ProtoChunk;createProtoTickScheduler(Lnet/minecraft/world/tick/SimpleTickScheduler;)Lnet/minecraft/world/tick/ChunkTickScheduler;
-
getBlockProtoTickScheduler
- Mappings:
Namespace Name Mixin selector official G
Ldep;G()Lefg;
intermediary method_39307
Lnet/minecraft/class_2839;method_39307()Lnet/minecraft/class_6755;
named getBlockProtoTickScheduler
Lnet/minecraft/world/chunk/ProtoChunk;getBlockProtoTickScheduler()Lnet/minecraft/world/tick/ChunkTickScheduler;
-
getFluidProtoTickScheduler
- Mappings:
Namespace Name Mixin selector official H
Ldep;H()Lefg;
intermediary method_39308
Lnet/minecraft/class_2839;method_39308()Lnet/minecraft/class_6755;
named getFluidProtoTickScheduler
Lnet/minecraft/world/chunk/ProtoChunk;getFluidProtoTickScheduler()Lnet/minecraft/world/tick/ChunkTickScheduler;
-
getHeightLimitView
- Overrides:
getHeightLimitView
in classChunk
- Mappings:
Namespace Name Mixin selector official z
Lddu;z()Lcmm;
intermediary method_39460
Lnet/minecraft/class_2791;method_39460()Lnet/minecraft/class_5539;
named getHeightLimitView
Lnet/minecraft/world/chunk/Chunk;getHeightLimitView()Lnet/minecraft/world/HeightLimitView;
-