Package net.minecraft.world.chunk
Class ReadOnlyChunk
java.lang.Object
net.minecraft.world.chunk.ProtoChunk
net.minecraft.world.chunk.ReadOnlyChunk
- All Implemented Interfaces:
BlockView,Chunk,HeightLimitView,StructureHolder
public class ReadOnlyChunk extends ProtoChunk
Represents a read only view of a world chunk used in world generation.
-
Field Summary
Fields Modifier and Type Field Description private WorldChunkwrapped -
Constructor Summary
Constructors Constructor Description ReadOnlyChunk(WorldChunk wrapped) -
Method Summary
Methods inherited from class net.minecraft.world.chunk.ProtoChunk
addEntity, addLightSource, addLightSource, getBlockEntities, getBlockEntityPositions, getBlockEntityTags, getBottomSectionLimit, getEntities, getHeightmap, getHeightmaps, getInhabitedTime, getLightSourcesBySection, getPackedSectionRelative, getPostProcessingLists, getSection, getSectionCount, getUpgradeData, joinBlockPos, markBlockForPostProcessing, setCarvingMask, setInhabitedTime, setLightingProviderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.BlockView
getDismountHeight, getDismountHeight, getLuminance, getStatesInBox, raycast, raycast, raycastBlockMethods inherited from interface net.minecraft.world.chunk.Chunk
areSectionsEmptyBetween, getHighestNonEmptySection, getHighestNonEmptySectionYOffset, method_32914Methods inherited from interface net.minecraft.world.HeightLimitView
getSectionIndex, getSectionIndexFromSection, getTopHeightLimit, getTopSectionLimit, isOutOfHeightLimit, isOutOfHeightLimit, method_32890, method_32891
-
Field Details
-
wrapped
-
-
Constructor Details
-
ReadOnlyChunk
-
-
Method Details
-
getBlockEntity
- Specified by:
getBlockEntityin interfaceBlockView- Overrides:
getBlockEntityin classProtoChunk
-
getBlockState
- Specified by:
getBlockStatein interfaceBlockView- Overrides:
getBlockStatein classProtoChunk
-
getFluidState
- Specified by:
getFluidStatein interfaceBlockView- Overrides:
getFluidStatein classProtoChunk
-
getMaxLightLevel
public int getMaxLightLevel() -
setBlockState
- Specified by:
setBlockStatein interfaceChunk- Overrides:
setBlockStatein classProtoChunk
-
setBlockEntity
- Specified by:
setBlockEntityin interfaceChunk- Overrides:
setBlockEntityin classProtoChunk
-
addEntity
- Specified by:
addEntityin interfaceChunk- Overrides:
addEntityin classProtoChunk
-
setStatus
- Overrides:
setStatusin classProtoChunk
-
getSectionArray
- Specified by:
getSectionArrayin interfaceChunk- Overrides:
getSectionArrayin classProtoChunk
-
setHeightmap
- Specified by:
setHeightmapin interfaceChunk- Overrides:
setHeightmapin classProtoChunk
-
transformHeightmapType
-
sampleHeightmap
- Specified by:
sampleHeightmapin interfaceChunk- Overrides:
sampleHeightmapin classProtoChunk
-
getPos
- Specified by:
getPosin interfaceChunk- Overrides:
getPosin classProtoChunk
-
getStructureStart
- Specified by:
getStructureStartin interfaceStructureHolder- Overrides:
getStructureStartin classProtoChunk
-
setStructureStart
- Specified by:
setStructureStartin interfaceStructureHolder- Overrides:
setStructureStartin classProtoChunk
-
getStructureStarts
- Specified by:
getStructureStartsin interfaceChunk- Overrides:
getStructureStartsin classProtoChunk
-
setStructureStarts
- Specified by:
setStructureStartsin interfaceChunk- Overrides:
setStructureStartsin classProtoChunk
-
getStructureReferences
- Specified by:
getStructureReferencesin interfaceStructureHolder- Overrides:
getStructureReferencesin classProtoChunk
-
addStructureReference
- Specified by:
addStructureReferencein interfaceStructureHolder- Overrides:
addStructureReferencein classProtoChunk
-
getStructureReferences
- Specified by:
getStructureReferencesin interfaceStructureHolder- Overrides:
getStructureReferencesin classProtoChunk
-
setStructureReferences
- Specified by:
setStructureReferencesin interfaceStructureHolder- Overrides:
setStructureReferencesin classProtoChunk
-
getBiomeArray
- Specified by:
getBiomeArrayin interfaceChunk- Overrides:
getBiomeArrayin classProtoChunk
-
setShouldSave
public void setShouldSave(boolean shouldSave)- Specified by:
setShouldSavein interfaceChunk- Overrides:
setShouldSavein classProtoChunk
-
needsSaving
public boolean needsSaving()- Specified by:
needsSavingin interfaceChunk- Overrides:
needsSavingin classProtoChunk
-
getStatus
- Specified by:
getStatusin interfaceChunk- Overrides:
getStatusin classProtoChunk
-
removeBlockEntity
- Specified by:
removeBlockEntityin interfaceChunk- Overrides:
removeBlockEntityin classProtoChunk
-
markBlockForPostProcessing
- Specified by:
markBlockForPostProcessingin interfaceChunk- Overrides:
markBlockForPostProcessingin classProtoChunk
-
addPendingBlockEntityTag
- Specified by:
addPendingBlockEntityTagin interfaceChunk- Overrides:
addPendingBlockEntityTagin classProtoChunk
-
getBlockEntityTag
- Specified by:
getBlockEntityTagin interfaceChunk- Overrides:
getBlockEntityTagin classProtoChunk
-
getPackedBlockEntityTag
- Specified by:
getPackedBlockEntityTagin interfaceChunk- Overrides:
getPackedBlockEntityTagin classProtoChunk
-
setBiomes
- Overrides:
setBiomesin classProtoChunk
-
getLightSourcesStream
- Specified by:
getLightSourcesStreamin interfaceChunk- Overrides:
getLightSourcesStreamin classProtoChunk
-
getBlockTickScheduler
- Specified by:
getBlockTickSchedulerin interfaceChunk- Overrides:
getBlockTickSchedulerin classProtoChunk
-
getFluidTickScheduler
- Specified by:
getFluidTickSchedulerin interfaceChunk- Overrides:
getFluidTickSchedulerin classProtoChunk
-
getCarvingMask
- Overrides:
getCarvingMaskin classProtoChunk
-
getOrCreateCarvingMask
- Overrides:
getOrCreateCarvingMaskin classProtoChunk
-
getWrappedChunk
-
isLightOn
public boolean isLightOn()- Specified by:
isLightOnin interfaceChunk- Overrides:
isLightOnin classProtoChunk
-
setLightOn
public void setLightOn(boolean lightOn)- Specified by:
setLightOnin interfaceChunk- Overrides:
setLightOnin classProtoChunk
-