public class ReadOnlyChunk extends ProtoChunk
| Modifier and Type | Field and Description |
|---|---|
private WorldChunk |
wrapped |
| Constructor and Description |
|---|
ReadOnlyChunk(WorldChunk wrapped) |
addEntity, addLightSource, addLightSource, getBlockEntities, getBlockEntityPositions, getBlockEntityTags, getEntities, getHeightmap, getHeightmaps, getInhabitedTime, getLightSourcesBySection, getPackedSectionRelative, getPostProcessingLists, getSection, getUpgradeData, joinBlockPos, markBlockForPostProcessing, setCarvingMask, setInhabitedTime, setLightingProviderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitareSectionsEmptyBetween, getHighestNonEmptySection, getHighestNonEmptySectionYOffset, getListgetDismountHeight, getDismountHeight, getHeight, getLuminance, method_29546, raycast, raycast, raycastBlockprivate final WorldChunk wrapped
public ReadOnlyChunk(WorldChunk wrapped)
@Nullable public BlockEntity getBlockEntity(BlockPos pos)
getBlockEntity in interface BlockViewgetBlockEntity in class ProtoChunk@Nullable public BlockState getBlockState(BlockPos pos)
getBlockState in interface BlockViewgetBlockState in class ProtoChunkpublic FluidState getFluidState(BlockPos pos)
getFluidState in interface BlockViewgetFluidState in class ProtoChunkpublic int getMaxLightLevel()
@Nullable public BlockState setBlockState(BlockPos pos, BlockState state, boolean moved)
setBlockState in interface ChunksetBlockState in class ProtoChunkpublic void setBlockEntity(BlockPos pos, BlockEntity blockEntity)
setBlockEntity in interface ChunksetBlockEntity in class ProtoChunkpublic void addEntity(Entity entity)
addEntity in interface ChunkaddEntity in class ProtoChunkpublic void setStatus(ChunkStatus status)
setStatus in class ProtoChunkpublic ChunkSection[] getSectionArray()
getSectionArray in interface ChunkgetSectionArray in class ProtoChunk@Nullable public LightingProvider getLightingProvider()
getLightingProvider in class ProtoChunkpublic void setHeightmap(Heightmap.Type type, long[] heightmap)
setHeightmap in interface ChunksetHeightmap in class ProtoChunkprivate Heightmap.Type transformHeightmapType(Heightmap.Type type)
public int sampleHeightmap(Heightmap.Type type, int x, int z)
sampleHeightmap in interface ChunksampleHeightmap in class ProtoChunkpublic ChunkPos getPos()
getPos in interface ChunkgetPos in class ProtoChunkpublic void setLastSaveTime(long lastSaveTime)
setLastSaveTime in interface ChunksetLastSaveTime in class ProtoChunk@Nullable public StructureStart<?> getStructureStart(StructureFeature<?> structure)
getStructureStart in interface StructureHoldergetStructureStart in class ProtoChunkpublic void setStructureStart(StructureFeature<?> structure, StructureStart<?> start)
setStructureStart in interface StructureHoldersetStructureStart in class ProtoChunkpublic Map<StructureFeature<?>,StructureStart<?>> getStructureStarts()
getStructureStarts in interface ChunkgetStructureStarts in class ProtoChunkpublic void setStructureStarts(Map<StructureFeature<?>,StructureStart<?>> structureStarts)
setStructureStarts in interface ChunksetStructureStarts in class ProtoChunkpublic it.unimi.dsi.fastutil.longs.LongSet getStructureReferences(StructureFeature<?> structure)
getStructureReferences in interface StructureHoldergetStructureReferences in class ProtoChunkpublic void addStructureReference(StructureFeature<?> structure, long reference)
addStructureReference in interface StructureHolderaddStructureReference in class ProtoChunkpublic Map<StructureFeature<?>,it.unimi.dsi.fastutil.longs.LongSet> getStructureReferences()
getStructureReferences in interface StructureHoldergetStructureReferences in class ProtoChunkpublic void setStructureReferences(Map<StructureFeature<?>,it.unimi.dsi.fastutil.longs.LongSet> structureReferences)
setStructureReferences in interface StructureHoldersetStructureReferences in class ProtoChunkpublic BiomeArray getBiomeArray()
getBiomeArray in interface ChunkgetBiomeArray in class ProtoChunkpublic void setShouldSave(boolean shouldSave)
setShouldSave in interface ChunksetShouldSave in class ProtoChunkpublic boolean needsSaving()
needsSaving in interface ChunkneedsSaving in class ProtoChunkpublic ChunkStatus getStatus()
getStatus in interface ChunkgetStatus in class ProtoChunkpublic void removeBlockEntity(BlockPos pos)
removeBlockEntity in interface ChunkremoveBlockEntity in class ProtoChunkpublic void markBlockForPostProcessing(BlockPos pos)
markBlockForPostProcessing in interface ChunkmarkBlockForPostProcessing in class ProtoChunkpublic void addPendingBlockEntityTag(CompoundTag tag)
addPendingBlockEntityTag in interface ChunkaddPendingBlockEntityTag in class ProtoChunk@Nullable public CompoundTag getBlockEntityTag(BlockPos pos)
getBlockEntityTag in interface ChunkgetBlockEntityTag in class ProtoChunk@Nullable public CompoundTag getPackedBlockEntityTag(BlockPos pos)
getPackedBlockEntityTag in interface ChunkgetPackedBlockEntityTag in class ProtoChunkpublic void setBiomes(BiomeArray biomes)
setBiomes in class ProtoChunkpublic Stream<BlockPos> getLightSourcesStream()
getLightSourcesStream in interface ChunkgetLightSourcesStream in class ProtoChunkpublic ChunkTickScheduler<Block> getBlockTickScheduler()
getBlockTickScheduler in interface ChunkgetBlockTickScheduler in class ProtoChunkpublic ChunkTickScheduler<Fluid> getFluidTickScheduler()
getFluidTickScheduler in interface ChunkgetFluidTickScheduler in class ProtoChunkpublic BitSet getCarvingMask(GenerationStep.Carver carver)
getCarvingMask in class ProtoChunkpublic BitSet getOrCreateCarvingMask(GenerationStep.Carver carver)
getOrCreateCarvingMask in class ProtoChunkpublic WorldChunk getWrappedChunk()
public boolean isLightOn()
isLightOn in interface ChunkisLightOn in class ProtoChunkpublic void setLightOn(boolean lightOn)
setLightOn in interface ChunksetLightOn in class ProtoChunk