Package net.minecraft.world.level.chunk
Class ImposterProtoChunk
java.lang.Object
net.minecraft.world.level.chunk.ProtoChunk
net.minecraft.world.level.chunk.ImposterProtoChunk
- All Implemented Interfaces:
BlockGetter
,ChunkAccess
,FeatureAccess
,LevelHeightAccessor
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addReferenceForFeature(StructureFeature<?> p_62711_, long p_62712_)
private Heightmap.Types
fixType(Heightmap.Types p_62742_)
Map<StructureFeature<?>,it.unimi.dsi.fastutil.longs.LongSet>
Map<StructureFeature<?>,StructureStart<?>>
getBlockEntity(BlockPos p_62744_)
getBlockEntityNbt(BlockPos p_62757_)
getBlockEntityNbtForSaving(BlockPos p_62760_)
getBlockState(BlockPos p_62749_)
getCarvingMask(GenerationStep.Carving p_62700_)
getFluidState(BlockPos p_62736_)
getHeighestPosition(Heightmap.Types p_156360_)
int
getHeight(Heightmap.Types p_62702_, int p_62703_, int p_62704_)
int
getOrCreateCarvingMask(GenerationStep.Carving p_62732_)
getPos()
it.unimi.dsi.fastutil.longs.LongSet
getReferencesForFeature(StructureFeature<?> p_62734_)
getStartForFeature(StructureFeature<?> p_62709_)
boolean
boolean
void
markPosForPostprocessing(BlockPos p_62752_)
void
removeBlockEntity(BlockPos p_62747_)
void
setAllReferences(Map<StructureFeature<?>,it.unimi.dsi.fastutil.longs.LongSet> p_62738_)
void
setAllStarts(Map<StructureFeature<?>,StructureStart<?>> p_62726_)
void
setBiomes(ChunkBiomeContainer p_62696_)
void
setBlockEntity(BlockEntity p_156358_)
void
setBlockEntityNbt(CompoundTag p_62728_)
setBlockState(BlockPos p_62722_, BlockState p_62723_, boolean p_62724_)
void
setHeightmap(Heightmap.Types p_62706_, long[] p_62707_)
void
setLightCorrect(boolean p_62740_)
void
setStartForFeature(StructureFeature<?> p_62714_, StructureStart<?> p_62715_)
void
setStatus(ChunkStatus p_62698_)
void
setUnsaved(boolean p_62730_)
Methods inherited from class net.minecraft.world.level.chunk.ProtoChunk
addEntity, addLight, addLight, addPackedPostProcess, getBlockEntities, getBlockEntitiesPos, getBlockEntityNbts, getEntities, getHeight, getHeightmaps, getInhabitedTime, getMinBuildHeight, getOrCreateHeightmapUnprimed, 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.level.BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, isBlockInLine
Methods inherited from interface net.minecraft.world.level.chunk.ChunkAccess
getEventDispatcher, getHighestSection, getHighestSectionPosition, getOrCreateSection, getWorldForge, isYSpaceEmpty
Methods inherited from interface net.minecraft.world.level.LevelHeightAccessor
getMaxBuildHeight, getMaxSection, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeight
-
Field Details
-
wrapped
-
-
Constructor Details
-
ImposterProtoChunk
-
-
Method Details
-
getBlockEntity
- Specified by:
getBlockEntity
in interfaceBlockGetter
- Overrides:
getBlockEntity
in classProtoChunk
-
getBlockState
- Specified by:
getBlockState
in interfaceBlockGetter
- Overrides:
getBlockState
in classProtoChunk
-
getFluidState
- Specified by:
getFluidState
in interfaceBlockGetter
- Overrides:
getFluidState
in classProtoChunk
-
getMaxLightLevel
public int getMaxLightLevel() -
setBlockState
@Nullable public BlockState setBlockState(BlockPos p_62722_, BlockState p_62723_, boolean p_62724_)- Specified by:
setBlockState
in interfaceChunkAccess
- Overrides:
setBlockState
in classProtoChunk
-
setBlockEntity
- Specified by:
setBlockEntity
in interfaceChunkAccess
- Overrides:
setBlockEntity
in classProtoChunk
-
addEntity
- Specified by:
addEntity
in interfaceChunkAccess
- Overrides:
addEntity
in classProtoChunk
-
setStatus
- Overrides:
setStatus
in classProtoChunk
-
getSections
- Specified by:
getSections
in interfaceChunkAccess
- Overrides:
getSections
in classProtoChunk
-
setHeightmap
-
fixType
-
getHeight
- Specified by:
getHeight
in interfaceChunkAccess
- Overrides:
getHeight
in classProtoChunk
-
getHeighestPosition
- Specified by:
getHeighestPosition
in interfaceChunkAccess
- Overrides:
getHeighestPosition
in classProtoChunk
-
getPos
- Specified by:
getPos
in interfaceChunkAccess
- Overrides:
getPos
in classProtoChunk
-
getStartForFeature
- Specified by:
getStartForFeature
in interfaceFeatureAccess
- Overrides:
getStartForFeature
in classProtoChunk
-
setStartForFeature
- Specified by:
setStartForFeature
in interfaceFeatureAccess
- Overrides:
setStartForFeature
in classProtoChunk
-
getAllStarts
- Specified by:
getAllStarts
in interfaceChunkAccess
- Overrides:
getAllStarts
in classProtoChunk
-
setAllStarts
- Specified by:
setAllStarts
in interfaceChunkAccess
- Overrides:
setAllStarts
in classProtoChunk
-
getReferencesForFeature
- Specified by:
getReferencesForFeature
in interfaceFeatureAccess
- Overrides:
getReferencesForFeature
in classProtoChunk
-
addReferenceForFeature
- Specified by:
addReferenceForFeature
in interfaceFeatureAccess
- Overrides:
addReferenceForFeature
in classProtoChunk
-
getAllReferences
- Specified by:
getAllReferences
in interfaceFeatureAccess
- Overrides:
getAllReferences
in classProtoChunk
-
setAllReferences
public void setAllReferences(Map<StructureFeature<?>,it.unimi.dsi.fastutil.longs.LongSet> p_62738_)- Specified by:
setAllReferences
in interfaceFeatureAccess
- Overrides:
setAllReferences
in classProtoChunk
-
getBiomes
- Specified by:
getBiomes
in interfaceChunkAccess
- Overrides:
getBiomes
in classProtoChunk
-
setUnsaved
public void setUnsaved(boolean p_62730_)- Specified by:
setUnsaved
in interfaceChunkAccess
- Overrides:
setUnsaved
in classProtoChunk
-
isUnsaved
public boolean isUnsaved()- Specified by:
isUnsaved
in interfaceChunkAccess
- Overrides:
isUnsaved
in classProtoChunk
-
getStatus
- Specified by:
getStatus
in interfaceChunkAccess
- Overrides:
getStatus
in classProtoChunk
-
removeBlockEntity
- Specified by:
removeBlockEntity
in interfaceChunkAccess
- Overrides:
removeBlockEntity
in classProtoChunk
-
markPosForPostprocessing
- Specified by:
markPosForPostprocessing
in interfaceChunkAccess
- Overrides:
markPosForPostprocessing
in classProtoChunk
-
setBlockEntityNbt
- Specified by:
setBlockEntityNbt
in interfaceChunkAccess
- Overrides:
setBlockEntityNbt
in classProtoChunk
-
getBlockEntityNbt
- Specified by:
getBlockEntityNbt
in interfaceChunkAccess
- Overrides:
getBlockEntityNbt
in classProtoChunk
-
getBlockEntityNbtForSaving
- Specified by:
getBlockEntityNbtForSaving
in interfaceChunkAccess
- Overrides:
getBlockEntityNbtForSaving
in classProtoChunk
-
setBiomes
- Overrides:
setBiomes
in classProtoChunk
-
getLights
- Specified by:
getLights
in interfaceChunkAccess
- Overrides:
getLights
in classProtoChunk
-
getBlockTicks
- Specified by:
getBlockTicks
in interfaceChunkAccess
- Overrides:
getBlockTicks
in classProtoChunk
-
getLiquidTicks
- Specified by:
getLiquidTicks
in interfaceChunkAccess
- Overrides:
getLiquidTicks
in classProtoChunk
-
getCarvingMask
- Overrides:
getCarvingMask
in classProtoChunk
-
getOrCreateCarvingMask
- Overrides:
getOrCreateCarvingMask
in classProtoChunk
-
getWrapped
-
isLightCorrect
public boolean isLightCorrect()- Specified by:
isLightCorrect
in interfaceChunkAccess
- Overrides:
isLightCorrect
in classProtoChunk
-
setLightCorrect
public void setLightCorrect(boolean p_62740_)- Specified by:
setLightCorrect
in interfaceChunkAccess
- Overrides:
setLightCorrect
in classProtoChunk
-