java.lang.Object
com.simibubi.create.foundation.utility.worldWrappers.chunk.WrappedChunk
All Implemented Interfaces:
net.minecraft.world.level.BlockGetter, net.minecraft.world.level.chunk.ChunkAccess, net.minecraft.world.level.chunk.FeatureAccess, net.minecraft.world.level.LevelHeightAccessor

public class WrappedChunk extends Object implements net.minecraft.world.level.chunk.ChunkAccess
  • Constructor Summary

    Constructors
    Constructor
    Description
    WrappedChunk​(PlacementSimulationWorld world, int x, int z)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addEntity​(net.minecraft.world.entity.Entity p_76612_1_)
     
    void
    addReferenceForFeature​(net.minecraft.world.level.levelgen.feature.StructureFeature<?> arg0, long arg1)
     
    Map<net.minecraft.world.level.levelgen.feature.StructureFeature<?>,​it.unimi.dsi.fastutil.longs.LongSet>
     
    Map<net.minecraft.world.level.levelgen.feature.StructureFeature<?>,​net.minecraft.world.level.levelgen.structure.StructureStart<?>>
     
    net.minecraft.world.level.chunk.ChunkBiomeContainer
     
    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.level.TickList<net.minecraft.world.level.block.Block>
     
    net.minecraft.world.level.material.FluidState
    getFluidState​(net.minecraft.core.BlockPos p_204610_1_)
     
    net.minecraft.core.BlockPos
    getHeighestPosition​(net.minecraft.world.level.levelgen.Heightmap.Types pType)
     
    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>
     
    net.minecraft.world.level.TickList<net.minecraft.world.level.material.Fluid>
     
    int
     
    net.minecraft.world.level.levelgen.Heightmap
    getOrCreateHeightmapUnprimed​(net.minecraft.world.level.levelgen.Heightmap.Types p_217303_1_)
     
    net.minecraft.world.level.ChunkPos
     
    it.unimi.dsi.fastutil.shorts.ShortList[]
     
    it.unimi.dsi.fastutil.longs.LongSet
    getReferencesForFeature​(net.minecraft.world.level.levelgen.feature.StructureFeature<?> arg0)
     
    net.minecraft.world.level.chunk.LevelChunkSection[]
     
    net.minecraft.world.level.levelgen.structure.StructureStart<?>
    getStartForFeature​(net.minecraft.world.level.levelgen.feature.StructureFeature<?> arg0)
     
    net.minecraft.world.level.chunk.ChunkStatus
     
    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.feature.StructureFeature<?>,​it.unimi.dsi.fastutil.longs.LongSet> arg0)
     
    void
    setAllStarts​(Map<net.minecraft.world.level.levelgen.feature.StructureFeature<?>,​net.minecraft.world.level.levelgen.structure.StructureStart<?>> p_201612_1_)
     
    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
    setStartForFeature​(net.minecraft.world.level.levelgen.feature.StructureFeature<?> arg0, net.minecraft.world.level.levelgen.structure.StructureStart<?> arg1)
     
    void
    setUnsaved​(boolean p_177427_1_)
     

    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.minecraft.world.level.chunk.ChunkAccess

    addPackedPostProcess, getEventDispatcher, getHighestSection, getHighestSectionPosition, getOrCreateSection, getWorldForge, isYSpaceEmpty, markPosForPostprocessing, setBlockEntityNbt

    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 interface net.minecraft.world.level.chunk.ChunkAccess
    • getSections

      public net.minecraft.world.level.chunk.LevelChunkSection[] getSections()
      Specified by:
      getSections in interface net.minecraft.world.level.chunk.ChunkAccess
    • getStatus

      public net.minecraft.world.level.chunk.ChunkStatus getStatus()
      Specified by:
      getStatus in interface 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 interface net.minecraft.world.level.chunk.ChunkAccess
    • setBlockEntity

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

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

      public Set<net.minecraft.core.BlockPos> getBlockEntitiesPos()
      Specified by:
      getBlockEntitiesPos in interface 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()
      Specified by:
      getHeightmaps in interface net.minecraft.world.level.chunk.ChunkAccess
    • setHeightmap

      public void setHeightmap(net.minecraft.world.level.levelgen.Heightmap.Types p_201607_1_, long[] p_201607_2_)
      Specified by:
      setHeightmap in interface 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_)
      Specified by:
      getOrCreateHeightmapUnprimed in interface 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_)
      Specified by:
      getHeight in interface net.minecraft.world.level.chunk.ChunkAccess
    • getPos

      public net.minecraft.world.level.ChunkPos getPos()
      Specified by:
      getPos in interface net.minecraft.world.level.chunk.ChunkAccess
    • getBiomes

      @Nullable public net.minecraft.world.level.chunk.ChunkBiomeContainer getBiomes()
      Specified by:
      getBiomes in interface net.minecraft.world.level.chunk.ChunkAccess
    • setUnsaved

      public void setUnsaved(boolean p_177427_1_)
      Specified by:
      setUnsaved in interface net.minecraft.world.level.chunk.ChunkAccess
    • isUnsaved

      public boolean isUnsaved()
      Specified by:
      isUnsaved in interface net.minecraft.world.level.chunk.ChunkAccess
    • removeBlockEntity

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

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

      @Nullable public net.minecraft.nbt.CompoundTag getBlockEntityNbt(net.minecraft.core.BlockPos p_201579_1_)
      Specified by:
      getBlockEntityNbt in interface 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 interface net.minecraft.world.level.chunk.ChunkAccess
    • getBlockTicks

      public net.minecraft.world.level.TickList<net.minecraft.world.level.block.Block> getBlockTicks()
      Specified by:
      getBlockTicks in interface net.minecraft.world.level.chunk.ChunkAccess
    • getLiquidTicks

      public net.minecraft.world.level.TickList<net.minecraft.world.level.material.Fluid> getLiquidTicks()
      Specified by:
      getLiquidTicks in interface net.minecraft.world.level.chunk.ChunkAccess
    • getUpgradeData

      public net.minecraft.world.level.chunk.UpgradeData getUpgradeData()
      Specified by:
      getUpgradeData in interface net.minecraft.world.level.chunk.ChunkAccess
    • setInhabitedTime

      public void setInhabitedTime(long p_177415_1_)
      Specified by:
      setInhabitedTime in interface net.minecraft.world.level.chunk.ChunkAccess
    • getInhabitedTime

      public long getInhabitedTime()
      Specified by:
      getInhabitedTime in interface net.minecraft.world.level.chunk.ChunkAccess
    • isLightCorrect

      public boolean isLightCorrect()
      Specified by:
      isLightCorrect in interface net.minecraft.world.level.chunk.ChunkAccess
    • setLightCorrect

      public void setLightCorrect(boolean needsLight)
      Specified by:
      setLightCorrect in interface net.minecraft.world.level.chunk.ChunkAccess
    • getBlockEntity

      @Nullable public net.minecraft.world.level.block.entity.BlockEntity getBlockEntity(net.minecraft.core.BlockPos pos)
      Specified by:
      getBlockEntity in interface net.minecraft.world.level.BlockGetter
    • getBlockState

      public net.minecraft.world.level.block.state.BlockState getBlockState(net.minecraft.core.BlockPos pos)
      Specified by:
      getBlockState in interface net.minecraft.world.level.BlockGetter
    • getFluidState

      public net.minecraft.world.level.material.FluidState getFluidState(net.minecraft.core.BlockPos p_204610_1_)
      Specified by:
      getFluidState in interface net.minecraft.world.level.BlockGetter
    • addReferenceForFeature

      public void addReferenceForFeature(net.minecraft.world.level.levelgen.feature.StructureFeature<?> arg0, long arg1)
      Specified by:
      addReferenceForFeature in interface net.minecraft.world.level.chunk.FeatureAccess
    • getAllReferences

      public Map<net.minecraft.world.level.levelgen.feature.StructureFeature<?>,​it.unimi.dsi.fastutil.longs.LongSet> getAllReferences()
      Specified by:
      getAllReferences in interface net.minecraft.world.level.chunk.FeatureAccess
    • getReferencesForFeature

      public it.unimi.dsi.fastutil.longs.LongSet getReferencesForFeature(net.minecraft.world.level.levelgen.feature.StructureFeature<?> arg0)
      Specified by:
      getReferencesForFeature in interface net.minecraft.world.level.chunk.FeatureAccess
    • getStartForFeature

      public net.minecraft.world.level.levelgen.structure.StructureStart<?> getStartForFeature(net.minecraft.world.level.levelgen.feature.StructureFeature<?> arg0)
      Specified by:
      getStartForFeature in interface net.minecraft.world.level.chunk.FeatureAccess
    • setAllReferences

      public void setAllReferences(Map<net.minecraft.world.level.levelgen.feature.StructureFeature<?>,​it.unimi.dsi.fastutil.longs.LongSet> arg0)
      Specified by:
      setAllReferences in interface net.minecraft.world.level.chunk.FeatureAccess
    • setStartForFeature

      public void setStartForFeature(net.minecraft.world.level.levelgen.feature.StructureFeature<?> arg0, net.minecraft.world.level.levelgen.structure.StructureStart<?> arg1)
      Specified by:
      setStartForFeature in interface net.minecraft.world.level.chunk.FeatureAccess
    • setAllStarts

      public void setAllStarts(Map<net.minecraft.world.level.levelgen.feature.StructureFeature<?>,​net.minecraft.world.level.levelgen.structure.StructureStart<?>> p_201612_1_)
      Specified by:
      setAllStarts in interface net.minecraft.world.level.chunk.ChunkAccess
    • getAllStarts

      public Map<net.minecraft.world.level.levelgen.feature.StructureFeature<?>,​net.minecraft.world.level.levelgen.structure.StructureStart<?>> getAllStarts()
      Specified by:
      getAllStarts in interface net.minecraft.world.level.chunk.ChunkAccess
    • getHeight

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

      public int getMinBuildHeight()
      Specified by:
      getMinBuildHeight in interface net.minecraft.world.level.LevelHeightAccessor
    • getHeighestPosition

      public net.minecraft.core.BlockPos getHeighestPosition(net.minecraft.world.level.levelgen.Heightmap.Types pType)
      Specified by:
      getHeighestPosition in interface net.minecraft.world.level.chunk.ChunkAccess