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

    Fields
    Modifier and Type
    Field
    Description
     

    Fields 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
    Constructor
    Description
    VirtualChunk(VirtualRenderWorld world, int x, int z)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addEntity(net.minecraft.world.entity.Entity entity)
     
    void
    addReferenceForStructure(net.minecraft.world.level.levelgen.structure.Structure structure, long reference)
     
    void
    findBlocks(@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>
     
    net.minecraft.world.level.block.entity.BlockEntity
    getBlockEntity(net.minecraft.core.BlockPos pos)
     
    net.minecraft.nbt.CompoundTag
    getBlockEntityNbt(net.minecraft.core.BlockPos pos)
     
    net.minecraft.nbt.CompoundTag
    getBlockEntityNbtForSaving(net.minecraft.core.BlockPos pos, net.minecraft.core.HolderLookup.Provider registries)
     
    net.minecraft.world.level.block.state.BlockState
    getBlockState(net.minecraft.core.BlockPos pos)
     
    net.minecraft.world.ticks.TickContainerAccess<net.minecraft.world.level.block.Block>
     
    net.minecraft.world.level.material.FluidState
    getFluidState(net.minecraft.core.BlockPos pos)
     
    net.minecraft.world.ticks.TickContainerAccess<net.minecraft.world.level.material.Fluid>
     
    int
    getHeight(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>>
     
    long
     
    net.minecraft.world.level.levelgen.Heightmap
    getOrCreateHeightmapUnprimed(net.minecraft.world.level.levelgen.Heightmap.Types type)
     
    net.minecraft.world.level.chunk.status.ChunkStatus
     
    it.unimi.dsi.fastutil.shorts.ShortList[]
     
    it.unimi.dsi.fastutil.longs.LongSet
    getReferencesForStructure(net.minecraft.world.level.levelgen.structure.Structure pStructure)
     
    net.minecraft.world.level.chunk.LevelChunkSection[]
     
    net.minecraft.world.level.levelgen.structure.StructureStart
    getStartForStructure(net.minecraft.world.level.levelgen.structure.Structure structure)
     
    net.minecraft.world.level.chunk.ChunkAccess.TicksToSave
     
    boolean
     
    boolean
     
    void
    removeBlockEntity(net.minecraft.core.BlockPos pos)
     
    void
    setAllReferences(Map<net.minecraft.world.level.levelgen.structure.Structure,it.unimi.dsi.fastutil.longs.LongSet> structureReferencesMap)
     
    void
    setAllStarts(Map<net.minecraft.world.level.levelgen.structure.Structure,net.minecraft.world.level.levelgen.structure.StructureStart> structureStarts)
     
    void
    setBlockEntity(net.minecraft.world.level.block.entity.BlockEntity blockEntity)
     
    net.minecraft.world.level.block.state.BlockState
    setBlockState(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, boolean isMoving)
     
    void
    setHeightmap(net.minecraft.world.level.levelgen.Heightmap.Types type, long[] data)
     
    void
    setInhabitedTime(long amount)
     
    void
    setLightCorrect(boolean lightCorrect)
     
    void
    setStartForStructure(net.minecraft.world.level.levelgen.structure.Structure structure, net.minecraft.world.level.levelgen.structure.StructureStart structureStart)
     
    void
    setUnsaved(boolean unsaved)
     

    Methods inherited from class net.minecraft.world.level.chunk.ChunkAccess

    addPackedPostProcess, carverBiome, fillBiomesFromNoise, findBlockLightSources, findBlocks, findBlocks, getAttachmentHolder, getBelowZeroRetrogen, getBlendingData, getData, getExistingData, 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, writeAttachmentsToNBT

    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.level.BlockGetter

    clip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, getMaxLightLevel, isBlockInLine

    Methods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder

    getData, getExistingData, hasData, removeData, setData

    Methods inherited from interface net.neoforged.neoforge.common.extensions.IBlockGetterExtension

    getAuxLightManager, getAuxLightManager, getModelData

    Methods inherited from interface net.minecraft.world.level.LevelHeightAccessor

    getMaxBuildHeight, getMaxSection, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeight
  • Field Details

  • Constructor Details

  • Method Details

    • setBlockState

      @Nullable public 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:
      setBlockState in class net.minecraft.world.level.chunk.ChunkAccess
    • setBlockEntity

      public void setBlockEntity(net.minecraft.world.level.block.entity.BlockEntity blockEntity)
      Specified by:
      setBlockEntity in class net.minecraft.world.level.chunk.ChunkAccess
    • addEntity

      public void addEntity(net.minecraft.world.entity.Entity entity)
      Specified by:
      addEntity in class net.minecraft.world.level.chunk.ChunkAccess
    • getBlockEntitiesPos

      public Set<net.minecraft.core.BlockPos> getBlockEntitiesPos()
      Overrides:
      getBlockEntitiesPos in class net.minecraft.world.level.chunk.ChunkAccess
    • getSections

      public net.minecraft.world.level.chunk.LevelChunkSection[] getSections()
      Overrides:
      getSections in class net.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:
      getHeightmaps in class net.minecraft.world.level.chunk.ChunkAccess
    • setHeightmap

      public void setHeightmap(net.minecraft.world.level.levelgen.Heightmap.Types type, long[] data)
      Overrides:
      setHeightmap in class net.minecraft.world.level.chunk.ChunkAccess
    • getOrCreateHeightmapUnprimed

      public net.minecraft.world.level.levelgen.Heightmap getOrCreateHeightmapUnprimed(net.minecraft.world.level.levelgen.Heightmap.Types type)
      Overrides:
      getOrCreateHeightmapUnprimed in class net.minecraft.world.level.chunk.ChunkAccess
    • getHeight

      public int getHeight(net.minecraft.world.level.levelgen.Heightmap.Types type, int x, int z)
      Overrides:
      getHeight in class net.minecraft.world.level.chunk.ChunkAccess
    • getStartForStructure

      @Nullable public net.minecraft.world.level.levelgen.structure.StructureStart getStartForStructure(net.minecraft.world.level.levelgen.structure.Structure structure)
      Specified by:
      getStartForStructure in interface net.minecraft.world.level.chunk.StructureAccess
      Overrides:
      getStartForStructure in class net.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:
      setStartForStructure in interface net.minecraft.world.level.chunk.StructureAccess
      Overrides:
      setStartForStructure in class net.minecraft.world.level.chunk.ChunkAccess
    • getAllStarts

      public Map<net.minecraft.world.level.levelgen.structure.Structure,net.minecraft.world.level.levelgen.structure.StructureStart> getAllStarts()
      Overrides:
      getAllStarts in class net.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:
      setAllStarts in class net.minecraft.world.level.chunk.ChunkAccess
    • getReferencesForStructure

      public it.unimi.dsi.fastutil.longs.LongSet getReferencesForStructure(net.minecraft.world.level.levelgen.structure.Structure pStructure)
      Specified by:
      getReferencesForStructure in interface net.minecraft.world.level.chunk.StructureAccess
      Overrides:
      getReferencesForStructure in class net.minecraft.world.level.chunk.ChunkAccess
    • addReferenceForStructure

      public void addReferenceForStructure(net.minecraft.world.level.levelgen.structure.Structure structure, long reference)
      Specified by:
      addReferenceForStructure in interface net.minecraft.world.level.chunk.StructureAccess
      Overrides:
      addReferenceForStructure in class net.minecraft.world.level.chunk.ChunkAccess
    • getAllReferences

      public Map<net.minecraft.world.level.levelgen.structure.Structure,it.unimi.dsi.fastutil.longs.LongSet> getAllReferences()
      Specified by:
      getAllReferences in interface net.minecraft.world.level.chunk.StructureAccess
      Overrides:
      getAllReferences in class net.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:
      setAllReferences in interface net.minecraft.world.level.chunk.StructureAccess
      Overrides:
      setAllReferences in class net.minecraft.world.level.chunk.ChunkAccess
    • setUnsaved

      public void setUnsaved(boolean unsaved)
      Overrides:
      setUnsaved in class net.minecraft.world.level.chunk.ChunkAccess
    • isUnsaved

      public boolean isUnsaved()
      Overrides:
      isUnsaved in class net.minecraft.world.level.chunk.ChunkAccess
    • getPersistedStatus

      public net.minecraft.world.level.chunk.status.ChunkStatus getPersistedStatus()
      Specified by:
      getPersistedStatus in class net.minecraft.world.level.chunk.ChunkAccess
    • removeBlockEntity

      public void removeBlockEntity(net.minecraft.core.BlockPos pos)
      Specified by:
      removeBlockEntity in class net.minecraft.world.level.chunk.ChunkAccess
    • getPostProcessing

      public it.unimi.dsi.fastutil.shorts.ShortList[] getPostProcessing()
      Overrides:
      getPostProcessing in class net.minecraft.world.level.chunk.ChunkAccess
    • getBlockEntityNbt

      @Nullable public net.minecraft.nbt.CompoundTag getBlockEntityNbt(net.minecraft.core.BlockPos pos)
      Overrides:
      getBlockEntityNbt in class net.minecraft.world.level.chunk.ChunkAccess
    • getBlockEntityNbtForSaving

      @Nullable public net.minecraft.nbt.CompoundTag getBlockEntityNbtForSaving(net.minecraft.core.BlockPos pos, net.minecraft.core.HolderLookup.Provider registries)
      Specified by:
      getBlockEntityNbtForSaving in class net.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:
      findBlocks in class net.minecraft.world.level.chunk.ChunkAccess
    • getBlockTicks

      public net.minecraft.world.ticks.TickContainerAccess<net.minecraft.world.level.block.Block> getBlockTicks()
      Specified by:
      getBlockTicks in class net.minecraft.world.level.chunk.ChunkAccess
    • getFluidTicks

      public net.minecraft.world.ticks.TickContainerAccess<net.minecraft.world.level.material.Fluid> getFluidTicks()
      Specified by:
      getFluidTicks in class net.minecraft.world.level.chunk.ChunkAccess
    • getTicksForSerialization

      public net.minecraft.world.level.chunk.ChunkAccess.TicksToSave getTicksForSerialization()
      Specified by:
      getTicksForSerialization in class net.minecraft.world.level.chunk.ChunkAccess
    • getInhabitedTime

      public long getInhabitedTime()
      Overrides:
      getInhabitedTime in class net.minecraft.world.level.chunk.ChunkAccess
    • setInhabitedTime

      public void setInhabitedTime(long amount)
      Overrides:
      setInhabitedTime in class net.minecraft.world.level.chunk.ChunkAccess
    • isLightCorrect

      public boolean isLightCorrect()
      Overrides:
      isLightCorrect in class net.minecraft.world.level.chunk.ChunkAccess
    • setLightCorrect

      public void setLightCorrect(boolean lightCorrect)
      Overrides:
      setLightCorrect in class net.minecraft.world.level.chunk.ChunkAccess
    • getBlockEntity

      @Nullable public 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)