Class VirtualChunk
java.lang.Object
net.minecraft.world.level.chunk.ChunkAccess
com.simibubi.create.foundation.virtualWorld.VirtualChunk
- All Implemented Interfaces:
net.minecraft.world.level.biome.BiomeManager.NoiseBiomeSource,net.minecraft.world.level.BlockGetter,net.minecraft.world.level.chunk.LightChunk,net.minecraft.world.level.chunk.StructureAccess,net.minecraft.world.level.LevelHeightAccessor,net.neoforged.neoforge.attachment.IAttachmentHolder,net.neoforged.neoforge.common.extensions.IBlockGetterExtension
public class VirtualChunk
extends net.minecraft.world.level.chunk.ChunkAccess
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.chunk.ChunkAccess
net.minecraft.world.level.chunk.ChunkAccess.TicksToSave -
Field Summary
FieldsFields inherited from class net.minecraft.world.level.chunk.ChunkAccess
blendingData, blockEntities, chunkPos, heightmaps, levelHeightAccessor, NO_FILLED_SECTION, noiseChunk, pendingBlockEntities, postProcessing, skyLightSources, unsaved, upgradeData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEntity(net.minecraft.world.entity.Entity entity) voidaddReferenceForStructure(net.minecraft.world.level.levelgen.structure.Structure structure, long reference) voidfindBlocks(@NotNull Predicate<net.minecraft.world.level.block.state.BlockState> roughFilter, @NotNull BiPredicate<net.minecraft.world.level.block.state.BlockState, net.minecraft.core.BlockPos> fineFilter, @NotNull BiConsumer<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState> output) Map<net.minecraft.world.level.levelgen.structure.Structure, it.unimi.dsi.fastutil.longs.LongSet> Map<net.minecraft.world.level.levelgen.structure.Structure, net.minecraft.world.level.levelgen.structure.StructureStart> Set<net.minecraft.core.BlockPos> @Nullable net.minecraft.world.level.block.entity.BlockEntitygetBlockEntity(net.minecraft.core.BlockPos pos) @Nullable net.minecraft.nbt.CompoundTaggetBlockEntityNbt(net.minecraft.core.BlockPos pos) @Nullable net.minecraft.nbt.CompoundTaggetBlockEntityNbtForSaving(net.minecraft.core.BlockPos pos, net.minecraft.core.HolderLookup.Provider registries) net.minecraft.world.level.block.state.BlockStategetBlockState(net.minecraft.core.BlockPos pos) net.minecraft.world.ticks.TickContainerAccess<net.minecraft.world.level.block.Block> net.minecraft.world.level.material.FluidStategetFluidState(net.minecraft.core.BlockPos pos) net.minecraft.world.ticks.TickContainerAccess<net.minecraft.world.level.material.Fluid> intgetHeight(net.minecraft.world.level.levelgen.Heightmap.Types type, int x, int z) Collection<Map.Entry<net.minecraft.world.level.levelgen.Heightmap.Types, net.minecraft.world.level.levelgen.Heightmap>> longnet.minecraft.world.level.levelgen.HeightmapgetOrCreateHeightmapUnprimed(net.minecraft.world.level.levelgen.Heightmap.Types type) net.minecraft.world.level.chunk.status.ChunkStatusit.unimi.dsi.fastutil.shorts.ShortList[]it.unimi.dsi.fastutil.longs.LongSetgetReferencesForStructure(net.minecraft.world.level.levelgen.structure.Structure pStructure) net.minecraft.world.level.chunk.LevelChunkSection[]@Nullable net.minecraft.world.level.levelgen.structure.StructureStartgetStartForStructure(net.minecraft.world.level.levelgen.structure.Structure structure) net.minecraft.world.level.chunk.ChunkAccess.TicksToSavebooleanbooleanvoidremoveBlockEntity(net.minecraft.core.BlockPos pos) voidsetAllReferences(Map<net.minecraft.world.level.levelgen.structure.Structure, it.unimi.dsi.fastutil.longs.LongSet> structureReferencesMap) voidsetAllStarts(Map<net.minecraft.world.level.levelgen.structure.Structure, net.minecraft.world.level.levelgen.structure.StructureStart> structureStarts) voidsetBlockEntity(net.minecraft.world.level.block.entity.BlockEntity blockEntity) @Nullable net.minecraft.world.level.block.state.BlockStatesetBlockState(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, boolean isMoving) voidsetHeightmap(net.minecraft.world.level.levelgen.Heightmap.Types type, long[] data) voidsetInhabitedTime(long amount) voidsetLightCorrect(boolean lightCorrect) voidsetStartForStructure(net.minecraft.world.level.levelgen.structure.Structure structure, net.minecraft.world.level.levelgen.structure.StructureStart structureStart) voidsetUnsaved(boolean unsaved) Methods inherited from class net.minecraft.world.level.chunk.ChunkAccess
addPackedPostProcess, carverBiome, fillBiomesFromNoise, findBlockLightSources, findBlocks, findBlocks, getAttachmentHolder, getBelowZeroRetrogen, getBlendingData, getData, getExistingDataOrNull, getHeight, getHeightAccessorForGeneration, getHighestFilledSectionIndex, getHighestGeneratedStatus, getHighestSectionPosition, getLevel, getListenerRegistry, getMinBuildHeight, getNoiseBiome, getOrCreateNoiseChunk, getOrCreateOffsetList, getPos, getSection, getSkyLightSources, getUpgradeData, hasAnyStructureReferences, hasAttachments, hasData, hasPrimedHeightmap, incrementInhabitedTime, initializeLightSources, isOldNoiseGeneration, isSectionEmpty, isUpgrading, isYSpaceEmpty, markPosForPostprocessing, readAttachmentsFromNBT, removeData, setBlendingData, setBlockEntityNbt, setData, writeAttachmentsToNBTMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, getMaxLightLevel, isBlockInLineMethods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData, syncData, syncDataMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockGetterExtension
getAuxLightManager, getAuxLightManager, getModelDataMethods inherited from interface net.minecraft.world.level.LevelHeightAccessor
getMaxBuildHeight, getMaxSection, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeight
-
Field Details
-
world
-
-
Constructor Details
-
VirtualChunk
-
-
Method Details
-
setBlockState
@Nullable public @Nullable net.minecraft.world.level.block.state.BlockState setBlockState(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, boolean isMoving) - Specified by:
setBlockStatein classnet.minecraft.world.level.chunk.ChunkAccess
-
setBlockEntity
public void setBlockEntity(net.minecraft.world.level.block.entity.BlockEntity blockEntity) - Specified by:
setBlockEntityin classnet.minecraft.world.level.chunk.ChunkAccess
-
addEntity
public void addEntity(net.minecraft.world.entity.Entity entity) - Specified by:
addEntityin classnet.minecraft.world.level.chunk.ChunkAccess
-
getBlockEntitiesPos
- Overrides:
getBlockEntitiesPosin classnet.minecraft.world.level.chunk.ChunkAccess
-
getSections
public net.minecraft.world.level.chunk.LevelChunkSection[] getSections()- Overrides:
getSectionsin classnet.minecraft.world.level.chunk.ChunkAccess
-
getHeightmaps
public Collection<Map.Entry<net.minecraft.world.level.levelgen.Heightmap.Types,net.minecraft.world.level.levelgen.Heightmap>> getHeightmaps()- Overrides:
getHeightmapsin classnet.minecraft.world.level.chunk.ChunkAccess
-
setHeightmap
public void setHeightmap(net.minecraft.world.level.levelgen.Heightmap.Types type, long[] data) - Overrides:
setHeightmapin classnet.minecraft.world.level.chunk.ChunkAccess
-
getOrCreateHeightmapUnprimed
public net.minecraft.world.level.levelgen.Heightmap getOrCreateHeightmapUnprimed(net.minecraft.world.level.levelgen.Heightmap.Types type) - Overrides:
getOrCreateHeightmapUnprimedin classnet.minecraft.world.level.chunk.ChunkAccess
-
getHeight
public int getHeight(net.minecraft.world.level.levelgen.Heightmap.Types type, int x, int z) - Overrides:
getHeightin classnet.minecraft.world.level.chunk.ChunkAccess
-
getStartForStructure
@Nullable public @Nullable net.minecraft.world.level.levelgen.structure.StructureStart getStartForStructure(net.minecraft.world.level.levelgen.structure.Structure structure) - Specified by:
getStartForStructurein interfacenet.minecraft.world.level.chunk.StructureAccess- Overrides:
getStartForStructurein classnet.minecraft.world.level.chunk.ChunkAccess
-
setStartForStructure
public void setStartForStructure(net.minecraft.world.level.levelgen.structure.Structure structure, net.minecraft.world.level.levelgen.structure.StructureStart structureStart) - Specified by:
setStartForStructurein interfacenet.minecraft.world.level.chunk.StructureAccess- Overrides:
setStartForStructurein classnet.minecraft.world.level.chunk.ChunkAccess
-
getAllStarts
public Map<net.minecraft.world.level.levelgen.structure.Structure,net.minecraft.world.level.levelgen.structure.StructureStart> getAllStarts()- Overrides:
getAllStartsin classnet.minecraft.world.level.chunk.ChunkAccess
-
setAllStarts
public void setAllStarts(Map<net.minecraft.world.level.levelgen.structure.Structure, net.minecraft.world.level.levelgen.structure.StructureStart> structureStarts) - Overrides:
setAllStartsin classnet.minecraft.world.level.chunk.ChunkAccess
-
getReferencesForStructure
public it.unimi.dsi.fastutil.longs.LongSet getReferencesForStructure(net.minecraft.world.level.levelgen.structure.Structure pStructure) - Specified by:
getReferencesForStructurein interfacenet.minecraft.world.level.chunk.StructureAccess- Overrides:
getReferencesForStructurein classnet.minecraft.world.level.chunk.ChunkAccess
-
addReferenceForStructure
public void addReferenceForStructure(net.minecraft.world.level.levelgen.structure.Structure structure, long reference) - Specified by:
addReferenceForStructurein interfacenet.minecraft.world.level.chunk.StructureAccess- Overrides:
addReferenceForStructurein classnet.minecraft.world.level.chunk.ChunkAccess
-
getAllReferences
public Map<net.minecraft.world.level.levelgen.structure.Structure,it.unimi.dsi.fastutil.longs.LongSet> getAllReferences()- Specified by:
getAllReferencesin interfacenet.minecraft.world.level.chunk.StructureAccess- Overrides:
getAllReferencesin classnet.minecraft.world.level.chunk.ChunkAccess
-
setAllReferences
public void setAllReferences(Map<net.minecraft.world.level.levelgen.structure.Structure, it.unimi.dsi.fastutil.longs.LongSet> structureReferencesMap) - Specified by:
setAllReferencesin interfacenet.minecraft.world.level.chunk.StructureAccess- Overrides:
setAllReferencesin classnet.minecraft.world.level.chunk.ChunkAccess
-
setUnsaved
public void setUnsaved(boolean unsaved) - Overrides:
setUnsavedin classnet.minecraft.world.level.chunk.ChunkAccess
-
isUnsaved
public boolean isUnsaved()- Overrides:
isUnsavedin classnet.minecraft.world.level.chunk.ChunkAccess
-
getPersistedStatus
public net.minecraft.world.level.chunk.status.ChunkStatus getPersistedStatus()- Specified by:
getPersistedStatusin classnet.minecraft.world.level.chunk.ChunkAccess
-
removeBlockEntity
public void removeBlockEntity(net.minecraft.core.BlockPos pos) - Specified by:
removeBlockEntityin classnet.minecraft.world.level.chunk.ChunkAccess
-
getPostProcessing
public it.unimi.dsi.fastutil.shorts.ShortList[] getPostProcessing()- Overrides:
getPostProcessingin classnet.minecraft.world.level.chunk.ChunkAccess
-
getBlockEntityNbt
@Nullable public @Nullable net.minecraft.nbt.CompoundTag getBlockEntityNbt(net.minecraft.core.BlockPos pos) - Overrides:
getBlockEntityNbtin classnet.minecraft.world.level.chunk.ChunkAccess
-
getBlockEntityNbtForSaving
@Nullable public @Nullable net.minecraft.nbt.CompoundTag getBlockEntityNbtForSaving(net.minecraft.core.BlockPos pos, net.minecraft.core.HolderLookup.Provider registries) - Specified by:
getBlockEntityNbtForSavingin classnet.minecraft.world.level.chunk.ChunkAccess
-
findBlocks
public void findBlocks(@NotNull @NotNull Predicate<net.minecraft.world.level.block.state.BlockState> roughFilter, @NotNull @NotNull BiPredicate<net.minecraft.world.level.block.state.BlockState, net.minecraft.core.BlockPos> fineFilter, @NotNull @NotNull BiConsumer<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState> output) - Overrides:
findBlocksin classnet.minecraft.world.level.chunk.ChunkAccess
-
getBlockTicks
public net.minecraft.world.ticks.TickContainerAccess<net.minecraft.world.level.block.Block> getBlockTicks()- Specified by:
getBlockTicksin classnet.minecraft.world.level.chunk.ChunkAccess
-
getFluidTicks
public net.minecraft.world.ticks.TickContainerAccess<net.minecraft.world.level.material.Fluid> getFluidTicks()- Specified by:
getFluidTicksin classnet.minecraft.world.level.chunk.ChunkAccess
-
getTicksForSerialization
public net.minecraft.world.level.chunk.ChunkAccess.TicksToSave getTicksForSerialization()- Specified by:
getTicksForSerializationin classnet.minecraft.world.level.chunk.ChunkAccess
-
getInhabitedTime
public long getInhabitedTime()- Overrides:
getInhabitedTimein classnet.minecraft.world.level.chunk.ChunkAccess
-
setInhabitedTime
public void setInhabitedTime(long amount) - Overrides:
setInhabitedTimein classnet.minecraft.world.level.chunk.ChunkAccess
-
isLightCorrect
public boolean isLightCorrect()- Overrides:
isLightCorrectin classnet.minecraft.world.level.chunk.ChunkAccess
-
setLightCorrect
public void setLightCorrect(boolean lightCorrect) - Overrides:
setLightCorrectin classnet.minecraft.world.level.chunk.ChunkAccess
-
getBlockEntity
@Nullable public @Nullable net.minecraft.world.level.block.entity.BlockEntity getBlockEntity(net.minecraft.core.BlockPos pos) -
getBlockState
public net.minecraft.world.level.block.state.BlockState getBlockState(net.minecraft.core.BlockPos pos) -
getFluidState
public net.minecraft.world.level.material.FluidState getFluidState(net.minecraft.core.BlockPos pos)
-