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
public class ChunkPrimerWrapper extends ChunkPrimer
-
-
Constructor Summary
Constructors Constructor Description ChunkPrimerWrapper(Chunk p_i49948_1_)
-
Method Summary
-
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 Detail
-
wrapped
private final Chunk wrapped
-
-
Constructor Detail
-
ChunkPrimerWrapper
public ChunkPrimerWrapper(Chunk p_i49948_1_)
-
-
Method Detail
-
getBlockEntity
@Nullable public TileEntity getBlockEntity(BlockPos p_175625_1_)
- Specified by:
getBlockEntity
in interfaceIBlockReader
- Overrides:
getBlockEntity
in classChunkPrimer
-
getBlockState
@Nullable public BlockState getBlockState(BlockPos p_180495_1_)
- Specified by:
getBlockState
in interfaceIBlockReader
- Overrides:
getBlockState
in classChunkPrimer
-
getFluidState
public FluidState getFluidState(BlockPos p_204610_1_)
- 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
public void setBlockEntity(BlockPos p_177426_1_, TileEntity p_177426_2_)
- Specified by:
setBlockEntity
in interfaceIChunk
- Overrides:
setBlockEntity
in classChunkPrimer
-
addEntity
public void addEntity(Entity p_76612_1_)
- Specified by:
addEntity
in interfaceIChunk
- Overrides:
addEntity
in classChunkPrimer
-
setStatus
public void setStatus(ChunkStatus p_201574_1_)
- Overrides:
setStatus
in classChunkPrimer
-
getSections
public ChunkSection[] getSections()
- Specified by:
getSections
in interfaceIChunk
- Overrides:
getSections
in classChunkPrimer
-
getLightEngine
@Nullable public WorldLightManager getLightEngine()
- Overrides:
getLightEngine
in classChunkPrimer
-
setHeightmap
public void setHeightmap(Heightmap.Type p_201607_1_, long[] p_201607_2_)
- Specified by:
setHeightmap
in interfaceIChunk
- Overrides:
setHeightmap
in classChunkPrimer
-
fixType
private Heightmap.Type fixType(Heightmap.Type p_209532_1_)
-
getHeight
public int getHeight(Heightmap.Type p_201576_1_, int p_201576_2_, int p_201576_3_)
- Specified by:
getHeight
in interfaceIChunk
- Overrides:
getHeight
in classChunkPrimer
-
getPos
public ChunkPos 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
@Nullable public StructureStart<?> getStartForFeature(Structure<?> p_230342_1_)
- Specified by:
getStartForFeature
in interfaceIStructureReader
- Overrides:
getStartForFeature
in classChunkPrimer
-
setStartForFeature
public void setStartForFeature(Structure<?> p_230344_1_, StructureStart<?> p_230344_2_)
- Specified by:
setStartForFeature
in interfaceIStructureReader
- Overrides:
setStartForFeature
in classChunkPrimer
-
getAllStarts
public java.util.Map<Structure<?>,StructureStart<?>> getAllStarts()
- Specified by:
getAllStarts
in interfaceIChunk
- Overrides:
getAllStarts
in classChunkPrimer
-
setAllStarts
public void setAllStarts(java.util.Map<Structure<?>,StructureStart<?>> p_201612_1_)
- Specified by:
setAllStarts
in interfaceIChunk
- Overrides:
setAllStarts
in classChunkPrimer
-
getReferencesForFeature
public it.unimi.dsi.fastutil.longs.LongSet getReferencesForFeature(Structure<?> p_230346_1_)
- Specified by:
getReferencesForFeature
in interfaceIStructureReader
- Overrides:
getReferencesForFeature
in classChunkPrimer
-
addReferenceForFeature
public void addReferenceForFeature(Structure<?> p_230343_1_, long p_230343_2_)
- Specified by:
addReferenceForFeature
in interfaceIStructureReader
- Overrides:
addReferenceForFeature
in classChunkPrimer
-
getAllReferences
public java.util.Map<Structure<?>,it.unimi.dsi.fastutil.longs.LongSet> getAllReferences()
- Specified by:
getAllReferences
in interfaceIStructureReader
- Overrides:
getAllReferences
in classChunkPrimer
-
setAllReferences
public void setAllReferences(java.util.Map<Structure<?>,it.unimi.dsi.fastutil.longs.LongSet> p_201606_1_)
- Specified by:
setAllReferences
in interfaceIStructureReader
- Overrides:
setAllReferences
in classChunkPrimer
-
getBiomes
public BiomeContainer 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
public ChunkStatus getStatus()
- Specified by:
getStatus
in interfaceIChunk
- Overrides:
getStatus
in classChunkPrimer
-
removeBlockEntity
public void removeBlockEntity(BlockPos p_177425_1_)
- Specified by:
removeBlockEntity
in interfaceIChunk
- Overrides:
removeBlockEntity
in classChunkPrimer
-
markPosForPostprocessing
public void markPosForPostprocessing(BlockPos p_201594_1_)
- Specified by:
markPosForPostprocessing
in interfaceIChunk
- Overrides:
markPosForPostprocessing
in classChunkPrimer
-
setBlockEntityNbt
public void setBlockEntityNbt(CompoundNBT p_201591_1_)
- Specified by:
setBlockEntityNbt
in interfaceIChunk
- Overrides:
setBlockEntityNbt
in classChunkPrimer
-
getBlockEntityNbt
@Nullable public CompoundNBT getBlockEntityNbt(BlockPos p_201579_1_)
- Specified by:
getBlockEntityNbt
in interfaceIChunk
- Overrides:
getBlockEntityNbt
in classChunkPrimer
-
getBlockEntityNbtForSaving
@Nullable public CompoundNBT getBlockEntityNbtForSaving(BlockPos p_223134_1_)
- Specified by:
getBlockEntityNbtForSaving
in interfaceIChunk
- Overrides:
getBlockEntityNbtForSaving
in classChunkPrimer
-
setBiomes
public void setBiomes(BiomeContainer p_225548_1_)
- Overrides:
setBiomes
in classChunkPrimer
-
getLights
public java.util.stream.Stream<BlockPos> getLights()
- Specified by:
getLights
in interfaceIChunk
- Overrides:
getLights
in classChunkPrimer
-
getBlockTicks
public ChunkPrimerTickList<Block> getBlockTicks()
- Specified by:
getBlockTicks
in interfaceIChunk
- Overrides:
getBlockTicks
in classChunkPrimer
-
getLiquidTicks
public ChunkPrimerTickList<Fluid> getLiquidTicks()
- Specified by:
getLiquidTicks
in interfaceIChunk
- Overrides:
getLiquidTicks
in classChunkPrimer
-
getCarvingMask
public java.util.BitSet getCarvingMask(GenerationStage.Carving p_205749_1_)
- Overrides:
getCarvingMask
in classChunkPrimer
-
getOrCreateCarvingMask
public java.util.BitSet getOrCreateCarvingMask(GenerationStage.Carving p_230345_1_)
- Overrides:
getOrCreateCarvingMask
in classChunkPrimer
-
getWrapped
public Chunk 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
-
-