Interface IWorld

All Superinterfaces:
BiomeManager.IBiomeReader, IBiomeReader, IBlockDisplayReader, IBlockReader, ICollisionReader, IDayTimeReader, IEntityReader, IWorldGenerationBaseReader, IWorldGenerationReader, IWorldReader, IWorldWriter
All Known Subinterfaces:
ISeedReader, IServerWorld
All Known Implementing Classes:
ClientWorld, ServerWorld, World, WorldGenRegion

public interface IWorld extends IBiomeReader, IDayTimeReader
  • Method Details

    • dayTime

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

      ITickList<Block> getBlockTicks()
    • getLiquidTicks

      ITickList<Fluid> getLiquidTicks()
    • getLevelData

      IWorldInfo getLevelData()
    • getCurrentDifficultyAt

      DifficultyInstance getCurrentDifficultyAt(BlockPos p_175649_1_)
    • getDifficulty

      default Difficulty getDifficulty()
    • getChunkSource

      AbstractChunkProvider getChunkSource()
    • hasChunk

      default boolean hasChunk(int p_217354_1_, int p_217354_2_)
      Specified by:
      hasChunk in interface IWorldReader
    • getRandom

      Random getRandom()
    • blockUpdated

      default void blockUpdated(BlockPos p_230547_1_, Block p_230547_2_)
    • playSound

      void playSound(@Nullable PlayerEntity p_184133_1_, BlockPos p_184133_2_, SoundEvent p_184133_3_, SoundCategory p_184133_4_, float p_184133_5_, float p_184133_6_)
    • addParticle

      void addParticle(IParticleData p_195594_1_, double p_195594_2_, double p_195594_4_, double p_195594_6_, double p_195594_8_, double p_195594_10_, double p_195594_12_)
    • levelEvent

      void levelEvent(@Nullable PlayerEntity p_217378_1_, int p_217378_2_, BlockPos p_217378_3_, int p_217378_4_)
    • getHeight

      default int getHeight()
    • levelEvent

      default void levelEvent(int p_217379_1_, BlockPos p_217379_2_, int p_217379_3_)