Class EmptyChunkAccess

java.lang.Object
net.minecraft.world.level.chunk.ChunkAccess
net.minecraft.world.level.chunk.LevelChunk
net.jcm.vsch.util.EmptyChunkAccess
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.minecraftforge.common.capabilities.ICapabilityProvider, net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.chunk.LevelChunk>, net.minecraftforge.common.extensions.IForgeBlockGetter

public class EmptyChunkAccess extends net.minecraft.world.level.chunk.LevelChunk
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.level.chunk.LevelChunk

    net.minecraft.world.level.chunk.LevelChunk.EntityCreationType, net.minecraft.world.level.chunk.LevelChunk.PostLoadProcessor

    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, NO_FILLED_SECTION, noiseChunk, pendingBlockEntities, postProcessing, sections, skyLightSources, unsaved, upgradeData
  • Constructor Summary

    Constructors
    Constructor
    Description
    EmptyChunkAccess(net.minecraft.world.level.Level level, net.minecraft.world.level.ChunkPos pos)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addEntity(net.minecraft.world.entity.Entity entity)
     
    net.minecraft.world.level.block.entity.BlockEntity
    getBlockEntity(net.minecraft.core.BlockPos pos)
     
    net.minecraft.nbt.CompoundTag
    getBlockEntityNbtForSaving(net.minecraft.core.BlockPos pos)
     
    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(int x, int y, int z)
     
    net.minecraft.world.level.material.FluidState
    getFluidState(net.minecraft.core.BlockPos pos)
     
    net.minecraft.world.ticks.TickContainerAccess<net.minecraft.world.level.material.Fluid>
     
    net.minecraft.world.level.chunk.ChunkStatus
     
    net.minecraft.world.level.chunk.ChunkAccess.TicksToSave
     
    void
    removeBlockEntity(net.minecraft.core.BlockPos pos)
     
    void
    setBlockEntity(net.minecraft.world.level.block.entity.BlockEntity be)
     
    net.minecraft.world.level.block.state.BlockState
    setBlockState(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, boolean isMoving)
     
    static boolean
    shouldUseEmptyChunk(net.minecraft.world.level.Level level, int x, int z)
     

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

    addAndRegisterBlockEntity, areCapsCompatible, areCapsCompatible, clearAllBlockEntities, getBlockEntities, getBlockEntity, getCapability, getFullStatus, getLevel, getListenerRegistry, getWorldForge, invalidateCaps, isEmpty, postProcessGeneration, readCapsFromNBT, registerAllBlockEntitiesAfterLevelLoad, registerTickContainerInLevel, replaceBiomes, replaceWithPacketData, reviveCaps, runPostLoad, setFullStatus, setLoaded, unpackTicks, unregisterTickContainerFromLevel, writeCapsToNBT

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

    addPackedPostProcess, addReferenceForStructure, carverBiome, fillBiomesFromNoise, findBlockLightSources, findBlocks, findBlocks, getAllReferences, getAllStarts, getBelowZeroRetrogen, getBlendingData, getBlockEntitiesPos, getBlockEntityNbt, getHeight, getHeight, getHeightAccessorForGeneration, getHeightmaps, getHighestFilledSectionIndex, getHighestGeneratedStatus, getHighestSectionPosition, getInhabitedTime, getMinBuildHeight, getNoiseBiome, getOrCreateHeightmapUnprimed, getOrCreateNoiseChunk, getOrCreateOffsetList, getPos, getPostProcessing, getReferencesForStructure, getSection, getSections, getSkyLightSources, getStartForStructure, getUpgradeData, hasAnyStructureReferences, hasPrimedHeightmap, incrementInhabitedTime, initializeLightSources, isLightCorrect, isOldNoiseGeneration, isUnsaved, isUpgrading, isYSpaceEmpty, markPosForPostprocessing, setAllReferences, setAllStarts, setBlendingData, setBlockEntityNbt, setHeightmap, setInhabitedTime, setLightCorrect, setStartForStructure, setUnsaved

    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.capabilities.ICapabilityProvider

    getCapability

    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

    • EmptyChunkAccess

      public EmptyChunkAccess(net.minecraft.world.level.Level level, net.minecraft.world.level.ChunkPos pos)
  • Method Details

    • getBlockEntity

      public net.minecraft.world.level.block.entity.BlockEntity getBlockEntity(net.minecraft.core.BlockPos pos)
      Specified by:
      getBlockEntity in interface net.minecraft.world.level.BlockGetter
      Overrides:
      getBlockEntity in class net.minecraft.world.level.chunk.LevelChunk
    • 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
      Overrides:
      getBlockState in class net.minecraft.world.level.chunk.LevelChunk
    • getFluidState

      public net.minecraft.world.level.material.FluidState getFluidState(net.minecraft.core.BlockPos pos)
      Specified by:
      getFluidState in interface net.minecraft.world.level.BlockGetter
      Overrides:
      getFluidState in class net.minecraft.world.level.chunk.LevelChunk
    • getFluidState

      public net.minecraft.world.level.material.FluidState getFluidState(int x, int y, int z)
      Overrides:
      getFluidState in class net.minecraft.world.level.chunk.LevelChunk
    • setBlockState

      public net.minecraft.world.level.block.state.BlockState setBlockState(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, boolean isMoving)
      Overrides:
      setBlockState in class net.minecraft.world.level.chunk.LevelChunk
    • setBlockEntity

      public void setBlockEntity(net.minecraft.world.level.block.entity.BlockEntity be)
      Overrides:
      setBlockEntity in class net.minecraft.world.level.chunk.LevelChunk
    • addEntity

      public void addEntity(net.minecraft.world.entity.Entity entity)
      Overrides:
      addEntity in class net.minecraft.world.level.chunk.LevelChunk
    • getStatus

      public net.minecraft.world.level.chunk.ChunkStatus getStatus()
      Overrides:
      getStatus in class net.minecraft.world.level.chunk.LevelChunk
    • removeBlockEntity

      public void removeBlockEntity(net.minecraft.core.BlockPos pos)
      Overrides:
      removeBlockEntity in class net.minecraft.world.level.chunk.LevelChunk
    • getBlockEntityNbtForSaving

      public net.minecraft.nbt.CompoundTag getBlockEntityNbtForSaving(net.minecraft.core.BlockPos pos)
      Overrides:
      getBlockEntityNbtForSaving in class net.minecraft.world.level.chunk.LevelChunk
    • getBlockTicks

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

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

      public net.minecraft.world.level.chunk.ChunkAccess.TicksToSave getTicksForSerialization()
      Overrides:
      getTicksForSerialization in class net.minecraft.world.level.chunk.LevelChunk
    • shouldUseEmptyChunk

      public static boolean shouldUseEmptyChunk(net.minecraft.world.level.Level level, int x, int z)