Class VirtualChunk

java.lang.Object
net.minecraft.world.level.chunk.ChunkAccess
com.jozufozu.flywheel.core.virtual.VirtualChunk
All Implemented Interfaces:
net.minecraft.world.level.biome.BiomeManager.NoiseBiomeSource, net.minecraft.world.level.BlockGetter, net.minecraft.world.level.chunk.StructureAccess, net.minecraft.world.level.LevelHeightAccessor, net.minecraftforge.common.extensions.IForgeBlockGetter

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 inherited from class net.minecraft.world.level.chunk.ChunkAccess

    blendingData, blockEntities, chunkPos, heightmaps, levelHeightAccessor, noiseChunk, pendingBlockEntities, postProcessing, 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 p_76612_1_)
     
    void
    addReferenceForStructure(net.minecraft.world.level.levelgen.structure.Structure structure, long reference)
     
    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 p_201579_1_)
     
    net.minecraft.nbt.CompoundTag
    getBlockEntityNbtForSaving(net.minecraft.core.BlockPos p_223134_1_)
     
    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 p_204610_1_)
     
    net.minecraft.world.ticks.TickContainerAccess<net.minecraft.world.level.material.Fluid>
     
    int
     
    int
    getHeight(net.minecraft.world.level.levelgen.Heightmap.Types p_201576_1_, int p_201576_2_, int p_201576_3_)
     
    Collection<Map.Entry<net.minecraft.world.level.levelgen.Heightmap.Types,net.minecraft.world.level.levelgen.Heightmap>>
     
    long
     
    Stream<net.minecraft.core.BlockPos>
     
    int
     
    net.minecraft.world.level.levelgen.Heightmap
    getOrCreateHeightmapUnprimed(net.minecraft.world.level.levelgen.Heightmap.Types p_217303_1_)
     
    it.unimi.dsi.fastutil.shorts.ShortList[]
     
    it.unimi.dsi.fastutil.longs.LongSet
    getReferencesForStructure(net.minecraft.world.level.levelgen.structure.Structure structure)
     
    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.ChunkStatus
     
    net.minecraft.world.level.chunk.ChunkAccess.TicksToSave
     
    net.minecraft.world.level.chunk.UpgradeData
     
    boolean
     
    boolean
     
    void
    removeBlockEntity(net.minecraft.core.BlockPos p_177425_1_)
     
    void
    setAllReferences(Map<net.minecraft.world.level.levelgen.structure.Structure,it.unimi.dsi.fastutil.longs.LongSet> structureReferences)
     
    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 p_177426_2_)
     
    net.minecraft.world.level.block.state.BlockState
    setBlockState(net.minecraft.core.BlockPos p_177436_1_, net.minecraft.world.level.block.state.BlockState p_177436_2_, boolean p_177436_3_)
     
    void
    setHeightmap(net.minecraft.world.level.levelgen.Heightmap.Types p_201607_1_, long[] p_201607_2_)
     
    void
    setInhabitedTime(long p_177415_1_)
     
    void
    setLightCorrect(boolean needsLight)
     
    void
    setStartForStructure(net.minecraft.world.level.levelgen.structure.Structure structure, net.minecraft.world.level.levelgen.structure.StructureStart start)
     
    void
    setUnsaved(boolean p_177427_1_)
     

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

    addPackedPostProcess, carverBiome, fillBiomesFromNoise, getBelowZeroRetrogen, getBlendingData, getEventDispatcher, getHeightAccessorForGeneration, getHighestSection, getHighestSectionPosition, getNoiseBiome, getOrCreateNoiseChunk, getOrCreateOffsetList, getPos, getSection, getWorldForge, hasAnyStructureReferences, hasPrimedHeightmap, incrementInhabitedTime, isOldNoiseGeneration, isUpgrading, isYSpaceEmpty, markPosForPostprocessing, setBlendingData, setBlockEntityNbt

    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.minecraftforge.common.extensions.IForgeBlockGetter

    getExistingBlockEntity, getModelDataManager

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

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

  • Method Details

    • getLights

      public Stream<net.minecraft.core.BlockPos> getLights()
      Specified by:
      getLights 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
    • getStatus

      public net.minecraft.world.level.chunk.ChunkStatus getStatus()
      Specified by:
      getStatus in class net.minecraft.world.level.chunk.ChunkAccess
    • setBlockState

      @Nullable public net.minecraft.world.level.block.state.BlockState setBlockState(net.minecraft.core.BlockPos p_177436_1_, net.minecraft.world.level.block.state.BlockState p_177436_2_, boolean p_177436_3_)
      Specified by:
      setBlockState in class net.minecraft.world.level.chunk.ChunkAccess
    • setBlockEntity

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

      public void addEntity(net.minecraft.world.entity.Entity p_76612_1_)
      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
    • 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 p_201607_1_, long[] p_201607_2_)
      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 p_217303_1_)
      Overrides:
      getOrCreateHeightmapUnprimed in class net.minecraft.world.level.chunk.ChunkAccess
    • getHeight

      public int getHeight(net.minecraft.world.level.levelgen.Heightmap.Types p_201576_1_, int p_201576_2_, int p_201576_3_)
      Overrides:
      getHeight in class net.minecraft.world.level.chunk.ChunkAccess
    • setUnsaved

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

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

      public void removeBlockEntity(net.minecraft.core.BlockPos p_177425_1_)
      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 p_201579_1_)
      Overrides:
      getBlockEntityNbt in class net.minecraft.world.level.chunk.ChunkAccess
    • getBlockEntityNbtForSaving

      @Nullable public net.minecraft.nbt.CompoundTag getBlockEntityNbtForSaving(net.minecraft.core.BlockPos p_223134_1_)
      Specified by:
      getBlockEntityNbtForSaving in class net.minecraft.world.level.chunk.ChunkAccess
    • getUpgradeData

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

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

      public long getInhabitedTime()
      Overrides:
      getInhabitedTime 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 needsLight)
      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 p_204610_1_)
    • 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 start)
      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 structure)
      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> structureReferences)
      Specified by:
      setAllReferences in interface net.minecraft.world.level.chunk.StructureAccess
      Overrides:
      setAllReferences in class net.minecraft.world.level.chunk.ChunkAccess
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in interface net.minecraft.world.level.LevelHeightAccessor
      Overrides:
      getHeight in class net.minecraft.world.level.chunk.ChunkAccess
    • getMinBuildHeight

      public int getMinBuildHeight()
      Specified by:
      getMinBuildHeight in interface net.minecraft.world.level.LevelHeightAccessor
      Overrides:
      getMinBuildHeight 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
    • 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