Interface IWorld

All Superinterfaces:
IAdditionalDataProvider, IChunkOrWorld

public interface IWorld extends IChunkOrWorld
  • Method Details

    • getChunkFromGridCoords

      IChunk getChunkFromGridCoords(int gridX, int gridY)
    • getChunk

      IChunk getChunk(double x, double y)
    • isPosLoaded

      boolean isPosLoaded(double x, double y)
    • isPosLoaded

      boolean isPosLoaded(double x, double y, boolean checkGenerating)
    • isChunkLoaded

      boolean isChunkLoaded(int x, int y)
    • isChunkLoaded

      boolean isChunkLoaded(int x, int y, boolean checkGenerating)
    • getWeatherHeight

      int getWeatherHeight()
    • getMinimumWeatherHeight

      default int getMinimumWeatherHeight()
      The lowest y position that the world will attempt to load to, to find the highest block in the world.
      Returns:
      the lower bound for initial weather tile checks
    • getHighestTilePos

      int getHighestTilePos(int x)
    • getIdForState

      int getIdForState(TileState state)
    • getStateForId

      TileState getStateForId(int id)
    • getTileRegInfo

      NameToIndexInfo getTileRegInfo()
    • getIdForBiome

      int getIdForBiome(Biome biome)
    • getBiomeForId

      Biome getBiomeForId(int id)
    • getBiomeRegInfo

      NameToIndexInfo getBiomeRegInfo()
    • getRegInfo

      DynamicRegistryInfo getRegInfo()
    • getWorldInfo

      @ApiInternal WorldInfo getWorldInfo()
    • getCurrentTime

      int getCurrentTime()
    • setCurrentTime

      void setCurrentTime(int time)
    • getTotalTime

      int getTotalTime()
    • setTotalTime

      @ApiInternal void setTotalTime(int time)
    • isTimeFrozen

      boolean isTimeFrozen()
    • setTimeFrozen

      void setTimeFrozen(boolean frozen)
    • notifyNeighborsOfChange

      void notifyNeighborsOfChange(int x, int y, TileLayer layer)
    • createPlayer

      AbstractPlayerEntity createPlayer(UUID id, IPlayerDesign design, io.netty.channel.Channel channel, boolean loadOrSwapLast)
    • getPlayer

      AbstractPlayerEntity getPlayer(UUID id)
    • getPlayer

      AbstractPlayerEntity getPlayer(String name)
    • destroyTile

      void destroyTile(int x, int y, TileLayer layer, Entity destroyer, boolean shouldDrop)
    • getSpawnX

      int getSpawnX()
    • causeLightUpdate

      void causeLightUpdate(int x, int y)
    • getGenerator

      IWorldGenerator getGenerator(ResourceName name)
    • unloadChunk

      @ApiInternal void unloadChunk(IChunk chunk)
    • savePlayer

      @ApiInternal void savePlayer(AbstractPlayerEntity player)
    • getSkylightModifier

      float getSkylightModifier(boolean doMinMax)
    • getAllGenerators

    • getSortedLoopingGenerators

      @ApiInternal List<IWorldGenerator> getSortedLoopingGenerators()
    • getSortedRetroactiveGenerators

      @ApiInternal List<IWorldGenerator> getSortedRetroactiveGenerators()
    • save

      @ApiInternal void save()
    • getAllPlayers

      List<AbstractPlayerEntity> getAllPlayers()
    • removeEntity

      void removeEntity(Entity entity, IChunk chunk)
    • isDaytime

      boolean isDaytime()
    • isNighttime

      boolean isNighttime()
    • getFolder

      File getFolder()
    • getPlayerFolder

      File getPlayerFolder()
    • getChunksFolder

      File getChunksFolder()
    • getName

      String getName()
    • playSound

      void playSound(AbstractPlayerEntity player, ResourceName name, double x, double y, double z, float pitch, float volume)
    • broadcastSound

      void broadcastSound(AbstractPlayerEntity player, ResourceName name, float pitch, float volume)
    • playSound

      void playSound(ResourceName name, double x, double y, double z, float pitch, float volume, AbstractPlayerEntity except)
    • broadcastSound

      void broadcastSound(ResourceName name, float pitch, float volume, AbstractPlayerEntity except)
    • playSound

      void playSound(ResourceName name, double x, double y, double z, float pitch, float volume)
    • broadcastSound

      void broadcastSound(ResourceName name, float pitch, float volume)
    • getCombinedVisualLight

      byte getCombinedVisualLight(int x, int y)
    • isStoryMode

      boolean isStoryMode()
    • getClosestPlayer

      AbstractPlayerEntity getClosestPlayer(double x, double y, AbstractPlayerEntity excluding)
    • getClosestPlayer

      AbstractPlayerEntity getClosestPlayer(double x, double y)
    • addPlayer

      @ApiInternal void addPlayer(AbstractPlayerEntity player)
    • removePlayer

      @ApiInternal void removePlayer(AbstractPlayerEntity player)
    • travelToSubWorld

      void travelToSubWorld(Entity entity, ResourceName subWorld, double x, double y)
    • getSubWorld

      IWorld getSubWorld(ResourceName name)
    • getSubWorlds

      List<? extends IWorld> getSubWorlds()
    • getMainWorld

      IWorld getMainWorld()
    • getSleepingPercentage

      float getSleepingPercentage()
    • getSubName

      ResourceName getSubName()
    • setSubName

      @ApiInternal void setSubName(ResourceName subName)
    • unloadEverything

      @ApiInternal void unloadEverything()