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, waitgetHighestNonEmptySection, getHighestNonEmptySectionYOffset, getList, method_12228getHeight, getLuminance, rayTrace, rayTrace, rayTraceBlockprivate 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(String structure)
getStructureStart in interface StructureHoldergetStructureStart in class ProtoChunkpublic void setStructureStart(String structure, StructureStart start)
setStructureStart in interface StructureHoldersetStructureStart in class ProtoChunkpublic Map<String,StructureStart> getStructureStarts()
getStructureStarts in interface ChunkgetStructureStarts in class ProtoChunkpublic void setStructureStarts(Map<String,StructureStart> map)
setStructureStarts in interface ChunksetStructureStarts in class ProtoChunkpublic it.unimi.dsi.fastutil.longs.LongSet getStructureReferences(String structure)
getStructureReferences in interface StructureHoldergetStructureReferences in class ProtoChunkpublic void addStructureReference(String structure, long reference)
addStructureReference in interface StructureHolderaddStructureReference in class ProtoChunkpublic Map<String,it.unimi.dsi.fastutil.longs.LongSet> getStructureReferences()
getStructureReferences in interface StructureHoldergetStructureReferences in class ProtoChunkpublic void setStructureReferences(Map<String,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 getBlockEntityTagAt(BlockPos pos)
getBlockEntityTagAt in interface ChunkgetBlockEntityTagAt in class ProtoChunk@Nullable public CompoundTag method_20598(BlockPos blockPos)
method_20598 in interface Chunkmethod_20598 in class ProtoChunkpublic void setBiomes(BiomeArray biomeArray)
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 interface ChunkgetCarvingMask 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