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 WorldChunk
wrapped
-
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, setLightingProvider
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.BlockView
getDismountHeight, getDismountHeight, getLuminance, getStatesInBox, raycast, raycast, raycastBlock
Methods inherited from interface net.minecraft.world.chunk.Chunk
areSectionsEmptyBetween, getHighestNonEmptySection, getHighestNonEmptySectionYOffset, method_32914
Methods 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:
getBlockEntity
in interfaceBlockView
- Overrides:
getBlockEntity
in classProtoChunk
-
getBlockState
- Specified by:
getBlockState
in interfaceBlockView
- Overrides:
getBlockState
in classProtoChunk
-
getFluidState
- Specified by:
getFluidState
in interfaceBlockView
- Overrides:
getFluidState
in classProtoChunk
-
getMaxLightLevel
public int getMaxLightLevel() -
setBlockState
- Specified by:
setBlockState
in interfaceChunk
- Overrides:
setBlockState
in classProtoChunk
-
setBlockEntity
- Specified by:
setBlockEntity
in interfaceChunk
- Overrides:
setBlockEntity
in classProtoChunk
-
addEntity
- Specified by:
addEntity
in interfaceChunk
- Overrides:
addEntity
in classProtoChunk
-
setStatus
- Overrides:
setStatus
in classProtoChunk
-
getSectionArray
- Specified by:
getSectionArray
in interfaceChunk
- Overrides:
getSectionArray
in classProtoChunk
-
setHeightmap
- Specified by:
setHeightmap
in interfaceChunk
- Overrides:
setHeightmap
in classProtoChunk
-
transformHeightmapType
-
sampleHeightmap
- Specified by:
sampleHeightmap
in interfaceChunk
- Overrides:
sampleHeightmap
in classProtoChunk
-
getPos
- Specified by:
getPos
in interfaceChunk
- Overrides:
getPos
in classProtoChunk
-
getStructureStart
- Specified by:
getStructureStart
in interfaceStructureHolder
- Overrides:
getStructureStart
in classProtoChunk
-
setStructureStart
- Specified by:
setStructureStart
in interfaceStructureHolder
- Overrides:
setStructureStart
in classProtoChunk
-
getStructureStarts
- Specified by:
getStructureStarts
in interfaceChunk
- Overrides:
getStructureStarts
in classProtoChunk
-
setStructureStarts
- Specified by:
setStructureStarts
in interfaceChunk
- Overrides:
setStructureStarts
in classProtoChunk
-
getStructureReferences
- Specified by:
getStructureReferences
in interfaceStructureHolder
- Overrides:
getStructureReferences
in classProtoChunk
-
addStructureReference
- Specified by:
addStructureReference
in interfaceStructureHolder
- Overrides:
addStructureReference
in classProtoChunk
-
getStructureReferences
- Specified by:
getStructureReferences
in interfaceStructureHolder
- Overrides:
getStructureReferences
in classProtoChunk
-
setStructureReferences
- Specified by:
setStructureReferences
in interfaceStructureHolder
- Overrides:
setStructureReferences
in classProtoChunk
-
getBiomeArray
- Specified by:
getBiomeArray
in interfaceChunk
- Overrides:
getBiomeArray
in classProtoChunk
-
setShouldSave
public void setShouldSave(boolean shouldSave)- Specified by:
setShouldSave
in interfaceChunk
- Overrides:
setShouldSave
in classProtoChunk
-
needsSaving
public boolean needsSaving()- Specified by:
needsSaving
in interfaceChunk
- Overrides:
needsSaving
in classProtoChunk
-
getStatus
- Specified by:
getStatus
in interfaceChunk
- Overrides:
getStatus
in classProtoChunk
-
removeBlockEntity
- Specified by:
removeBlockEntity
in interfaceChunk
- Overrides:
removeBlockEntity
in classProtoChunk
-
markBlockForPostProcessing
- Specified by:
markBlockForPostProcessing
in interfaceChunk
- Overrides:
markBlockForPostProcessing
in classProtoChunk
-
addPendingBlockEntityTag
- Specified by:
addPendingBlockEntityTag
in interfaceChunk
- Overrides:
addPendingBlockEntityTag
in classProtoChunk
-
getBlockEntityTag
- Specified by:
getBlockEntityTag
in interfaceChunk
- Overrides:
getBlockEntityTag
in classProtoChunk
-
getPackedBlockEntityTag
- Specified by:
getPackedBlockEntityTag
in interfaceChunk
- Overrides:
getPackedBlockEntityTag
in classProtoChunk
-
setBiomes
- Overrides:
setBiomes
in classProtoChunk
-
getLightSourcesStream
- Specified by:
getLightSourcesStream
in interfaceChunk
- Overrides:
getLightSourcesStream
in classProtoChunk
-
getBlockTickScheduler
- Specified by:
getBlockTickScheduler
in interfaceChunk
- Overrides:
getBlockTickScheduler
in classProtoChunk
-
getFluidTickScheduler
- Specified by:
getFluidTickScheduler
in interfaceChunk
- Overrides:
getFluidTickScheduler
in classProtoChunk
-
getCarvingMask
- Overrides:
getCarvingMask
in classProtoChunk
-
getOrCreateCarvingMask
- Overrides:
getOrCreateCarvingMask
in classProtoChunk
-
getWrappedChunk
-
isLightOn
public boolean isLightOn()- Specified by:
isLightOn
in interfaceChunk
- Overrides:
isLightOn
in classProtoChunk
-
setLightOn
public void setLightOn(boolean lightOn)- Specified by:
setLightOn
in interfaceChunk
- Overrides:
setLightOn
in classProtoChunk
-