Interface LevelAccessor

All Superinterfaces:
BiomeManager.NoiseBiomeSource, BlockAndTintGetter, BlockGetter, CollisionGetter, CommonLevelAccessor, EntityGetter, LevelHeightAccessor, LevelReader, LevelSimulatedReader, LevelSimulatedRW, LevelTimeAccess, LevelWriter
All Known Subinterfaces:
ServerLevelAccessor, WorldGenLevel
All Known Implementing Classes:
ClientLevel, Level, ServerLevel, WorldGenRegion

public interface LevelAccessor extends CommonLevelAccessor, LevelTimeAccess
  • Method Details

    • dayTime

      default long dayTime()
      Specified by:
      dayTime in interface LevelTimeAccess
    • getBlockTicks

      TickList<Block> getBlockTicks()
    • getLiquidTicks

      TickList<Fluid> getLiquidTicks()
    • getLevelData

      LevelData getLevelData()
    • getCurrentDifficultyAt

      DifficultyInstance getCurrentDifficultyAt(BlockPos p_46800_)
    • getServer

      @Nullable MinecraftServer getServer()
    • getDifficulty

      default Difficulty getDifficulty()
    • getChunkSource

      ChunkSource getChunkSource()
    • hasChunk

      default boolean hasChunk(int p_46794_, int p_46795_)
      Specified by:
      hasChunk in interface LevelReader
    • getRandom

      Random getRandom()
    • blockUpdated

      default void blockUpdated(BlockPos p_46781_, Block p_46782_)
    • playSound

      void playSound(@Nullable Player p_46775_, BlockPos p_46776_, SoundEvent p_46777_, SoundSource p_46778_, float p_46779_, float p_46780_)
    • addParticle

      void addParticle(ParticleOptions p_46783_, double p_46784_, double p_46785_, double p_46786_, double p_46787_, double p_46788_, double p_46789_)
    • levelEvent

      void levelEvent(@Nullable Player p_46771_, int p_46772_, BlockPos p_46773_, int p_46774_)
    • getLogicalHeight

      default int getLogicalHeight()
    • levelEvent

      default void levelEvent(int p_46797_, BlockPos p_46798_, int p_46799_)
    • gameEvent

      void gameEvent(@Nullable Entity p_151549_, GameEvent p_151550_, BlockPos p_151551_)
    • gameEvent

      default void gameEvent(GameEvent p_151556_, BlockPos p_151557_)
    • gameEvent

      default void gameEvent(GameEvent p_151553_, Entity p_151554_)
    • gameEvent

      default void gameEvent(@Nullable Entity p_151546_, GameEvent p_151547_, Entity p_151548_)