Package net.minecraft.world.chunk
Class ChunkPrimerWrapper
java.lang.Object
net.minecraft.world.chunk.ChunkPrimer
net.minecraft.world.chunk.ChunkPrimerWrapper
- All Implemented Interfaces:
IChunk
,IBlockReader
,IStructureReader
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addReferenceForFeature
(Structure<?> p_230343_1_, long p_230343_2_) private Heightmap.Type
fixType
(Heightmap.Type p_209532_1_) Map<Structure<?>,
StructureStart<?>> getBlockEntity
(BlockPos p_175625_1_) getBlockEntityNbt
(BlockPos p_201579_1_) getBlockEntityNbtForSaving
(BlockPos p_223134_1_) getBlockState
(BlockPos p_180495_1_) getCarvingMask
(GenerationStage.Carving p_205749_1_) getFluidState
(BlockPos p_204610_1_) int
getHeight
(Heightmap.Type p_201576_1_, int p_201576_2_, int p_201576_3_) int
getOrCreateCarvingMask
(GenerationStage.Carving p_230345_1_) getPos()
it.unimi.dsi.fastutil.longs.LongSet
getReferencesForFeature
(Structure<?> p_230346_1_) getStartForFeature
(Structure<?> p_230342_1_) boolean
boolean
void
markPosForPostprocessing
(BlockPos p_201594_1_) void
removeBlockEntity
(BlockPos p_177425_1_) void
setAllReferences
(Map<Structure<?>, it.unimi.dsi.fastutil.longs.LongSet> p_201606_1_) void
setAllStarts
(Map<Structure<?>, StructureStart<?>> p_201612_1_) void
setBiomes
(BiomeContainer p_225548_1_) void
setBlockEntity
(BlockPos p_177426_1_, TileEntity p_177426_2_) void
setBlockEntityNbt
(CompoundNBT p_201591_1_) setBlockState
(BlockPos p_177436_1_, BlockState p_177436_2_, boolean p_177436_3_) void
setHeightmap
(Heightmap.Type p_201607_1_, long[] p_201607_2_) void
setLastSaveTime
(long p_177432_1_) void
setLightCorrect
(boolean p_217305_1_) void
setStartForFeature
(Structure<?> p_230344_1_, StructureStart<?> p_230344_2_) void
setStatus
(ChunkStatus p_201574_1_) void
setUnsaved
(boolean p_177427_1_) Methods inherited from class net.minecraft.world.chunk.ChunkPrimer
addEntity, addLight, addLight, addPackedPostProcess, getBlockEntities, getBlockEntitiesPos, getBlockEntityNbts, getEntities, getHeightmaps, getInhabitedTime, getOrCreateHeightmapUnprimed, getOrCreateSection, getPackedLights, getPostProcessing, getUpgradeData, packOffsetCoordinates, setCarvingMask, setInhabitedTime, setLightEngine, unpackOffsetCoordinates
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.IBlockReader
clip, clipWithInteractionOverride, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, getMaxBuildHeight
Methods inherited from interface net.minecraft.world.chunk.IChunk
getHighestSection, getHighestSectionPosition, getWorldForge, isYSpaceEmpty
-
Field Details
-
wrapped
-
-
Constructor Details
-
ChunkPrimerWrapper
-
-
Method Details
-
getBlockEntity
- Specified by:
getBlockEntity
in interfaceIBlockReader
- Overrides:
getBlockEntity
in classChunkPrimer
-
getBlockState
- Specified by:
getBlockState
in interfaceIBlockReader
- Overrides:
getBlockState
in classChunkPrimer
-
getFluidState
- Specified by:
getFluidState
in interfaceIBlockReader
- Overrides:
getFluidState
in classChunkPrimer
-
getMaxLightLevel
public int getMaxLightLevel() -
setBlockState
@Nullable public BlockState setBlockState(BlockPos p_177436_1_, BlockState p_177436_2_, boolean p_177436_3_) - Specified by:
setBlockState
in interfaceIChunk
- Overrides:
setBlockState
in classChunkPrimer
-
setBlockEntity
- Specified by:
setBlockEntity
in interfaceIChunk
- Overrides:
setBlockEntity
in classChunkPrimer
-
addEntity
- Specified by:
addEntity
in interfaceIChunk
- Overrides:
addEntity
in classChunkPrimer
-
setStatus
- Overrides:
setStatus
in classChunkPrimer
-
getSections
- Specified by:
getSections
in interfaceIChunk
- Overrides:
getSections
in classChunkPrimer
-
getLightEngine
- Overrides:
getLightEngine
in classChunkPrimer
-
setHeightmap
- Specified by:
setHeightmap
in interfaceIChunk
- Overrides:
setHeightmap
in classChunkPrimer
-
fixType
-
getHeight
- Specified by:
getHeight
in interfaceIChunk
- Overrides:
getHeight
in classChunkPrimer
-
getPos
- Specified by:
getPos
in interfaceIChunk
- Overrides:
getPos
in classChunkPrimer
-
setLastSaveTime
public void setLastSaveTime(long p_177432_1_) - Specified by:
setLastSaveTime
in interfaceIChunk
- Overrides:
setLastSaveTime
in classChunkPrimer
-
getStartForFeature
- Specified by:
getStartForFeature
in interfaceIStructureReader
- Overrides:
getStartForFeature
in classChunkPrimer
-
setStartForFeature
- Specified by:
setStartForFeature
in interfaceIStructureReader
- Overrides:
setStartForFeature
in classChunkPrimer
-
getAllStarts
- Specified by:
getAllStarts
in interfaceIChunk
- Overrides:
getAllStarts
in classChunkPrimer
-
setAllStarts
- Specified by:
setAllStarts
in interfaceIChunk
- Overrides:
setAllStarts
in classChunkPrimer
-
getReferencesForFeature
- Specified by:
getReferencesForFeature
in interfaceIStructureReader
- Overrides:
getReferencesForFeature
in classChunkPrimer
-
addReferenceForFeature
- Specified by:
addReferenceForFeature
in interfaceIStructureReader
- Overrides:
addReferenceForFeature
in classChunkPrimer
-
getAllReferences
- Specified by:
getAllReferences
in interfaceIStructureReader
- Overrides:
getAllReferences
in classChunkPrimer
-
setAllReferences
- Specified by:
setAllReferences
in interfaceIStructureReader
- Overrides:
setAllReferences
in classChunkPrimer
-
getBiomes
- Specified by:
getBiomes
in interfaceIChunk
- Overrides:
getBiomes
in classChunkPrimer
-
setUnsaved
public void setUnsaved(boolean p_177427_1_) - Specified by:
setUnsaved
in interfaceIChunk
- Overrides:
setUnsaved
in classChunkPrimer
-
isUnsaved
public boolean isUnsaved()- Specified by:
isUnsaved
in interfaceIChunk
- Overrides:
isUnsaved
in classChunkPrimer
-
getStatus
- Specified by:
getStatus
in interfaceIChunk
- Overrides:
getStatus
in classChunkPrimer
-
removeBlockEntity
- Specified by:
removeBlockEntity
in interfaceIChunk
- Overrides:
removeBlockEntity
in classChunkPrimer
-
markPosForPostprocessing
- Specified by:
markPosForPostprocessing
in interfaceIChunk
- Overrides:
markPosForPostprocessing
in classChunkPrimer
-
setBlockEntityNbt
- Specified by:
setBlockEntityNbt
in interfaceIChunk
- Overrides:
setBlockEntityNbt
in classChunkPrimer
-
getBlockEntityNbt
- Specified by:
getBlockEntityNbt
in interfaceIChunk
- Overrides:
getBlockEntityNbt
in classChunkPrimer
-
getBlockEntityNbtForSaving
- Specified by:
getBlockEntityNbtForSaving
in interfaceIChunk
- Overrides:
getBlockEntityNbtForSaving
in classChunkPrimer
-
setBiomes
- Overrides:
setBiomes
in classChunkPrimer
-
getLights
- Specified by:
getLights
in interfaceIChunk
- Overrides:
getLights
in classChunkPrimer
-
getBlockTicks
- Specified by:
getBlockTicks
in interfaceIChunk
- Overrides:
getBlockTicks
in classChunkPrimer
-
getLiquidTicks
- Specified by:
getLiquidTicks
in interfaceIChunk
- Overrides:
getLiquidTicks
in classChunkPrimer
-
getCarvingMask
- Overrides:
getCarvingMask
in classChunkPrimer
-
getOrCreateCarvingMask
- Overrides:
getOrCreateCarvingMask
in classChunkPrimer
-
getWrapped
-
isLightCorrect
public boolean isLightCorrect()- Specified by:
isLightCorrect
in interfaceIChunk
- Overrides:
isLightCorrect
in classChunkPrimer
-
setLightCorrect
public void setLightCorrect(boolean p_217305_1_) - Specified by:
setLightCorrect
in interfaceIChunk
- Overrides:
setLightCorrect
in classChunkPrimer
-