Package de.ellpeck.rockbottom.api.world
Interface IWorld
- All Superinterfaces:
IAdditionalDataProvider,IChunkOrWorld
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddPlayer(AbstractPlayerEntity player) voidbroadcastSound(AbstractPlayerEntity player, ResourceName name, float pitch, float volume) voidbroadcastSound(ResourceName name, float pitch, float volume) voidbroadcastSound(ResourceName name, float pitch, float volume, AbstractPlayerEntity except) voidcauseLightUpdate(int x, int y) createPlayer(UUID id, IPlayerDesign design, io.netty.channel.Channel channel, boolean loadOrSwapLast) voiddestroyTile(int x, int y, TileLayer layer, Entity destroyer, boolean shouldDrop) getBiomeForId(int id) getChunk(double x, double y) getChunkFromGridCoords(int gridX, int gridY) getClosestPlayer(double x, double y) getClosestPlayer(double x, double y, AbstractPlayerEntity excluding) bytegetCombinedVisualLight(int x, int y) intgetGenerator(ResourceName name) intgetHighestTilePos(int x) intgetIdForBiome(Biome biome) intgetIdForState(TileState state) default intThe lowest y position that the world will attempt to load to, to find the highest block in the world.getName()floatgetSkylightModifier(boolean doMinMax) floatintgetStateForId(int id) getSubWorld(ResourceName name) intintbooleanisChunkLoaded(int x, int y) booleanisChunkLoaded(int x, int y, boolean checkGenerating) booleanbooleanbooleanisPosLoaded(double x, double y) booleanisPosLoaded(double x, double y, boolean checkGenerating) booleanbooleanvoidnotifyNeighborsOfChange(int x, int y, TileLayer layer) voidplaySound(AbstractPlayerEntity player, ResourceName name, double x, double y, double z, float pitch, float volume) voidplaySound(ResourceName name, double x, double y, double z, float pitch, float volume) voidplaySound(ResourceName name, double x, double y, double z, float pitch, float volume, AbstractPlayerEntity except) voidremoveEntity(Entity entity, IChunk chunk) voidremovePlayer(AbstractPlayerEntity player) voidsave()voidsavePlayer(AbstractPlayerEntity player) voidsetCurrentTime(int time) voidsetSubName(ResourceName subName) voidsetTimeFrozen(boolean frozen) voidsetTotalTime(int time) voidtravelToSubWorld(Entity entity, ResourceName subWorld, double x, double y) voidunloadChunk(IChunk chunk) voidMethods inherited from interface de.ellpeck.rockbottom.api.data.set.IAdditionalDataProvider
getAdditionalData, getOrCreateAdditionalData, hasAdditionalData, setAdditionalDataMethods inherited from interface de.ellpeck.rockbottom.api.world.IChunkOrWorld
addEntity, addTileEntity, callRetroactiveGeneration, getAllEntities, getAllTickingTileEntities, getAllTileEntities, getArtificialLight, getAverageChunkHeight, getBiome, getChunkFlatness, getChunkHeight, getCombinedLight, getEntities, getEntities, getEntities, getEntities, getEntities, getEntities, getEntities, getEntities, getEntity, getExpectedAverageHeight, getExpectedBiome, getExpectedBiomeLevel, getExpectedSurfaceFlatness, getExpectedSurfaceHeight, getSeed, getSkyLight, getState, getState, getTileEntity, getTileEntity, getTileEntity, getTileEntity, isClient, isDedicatedServer, isLocalPlayer, isServer, reevaluateTickBehavior, removeEntity, removeTileEntity, scheduleUpdate, scheduleUpdate, setArtificialLight, setBiome, setDirty, setSkyLight, setState, setState
-
Method Details
-
getChunkFromGridCoords
-
getChunk
-
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
-
getStateForId
-
getTileRegInfo
NameToIndexInfo getTileRegInfo() -
getIdForBiome
-
getBiomeForId
-
getBiomeRegInfo
NameToIndexInfo getBiomeRegInfo() -
getRegInfo
DynamicRegistryInfo getRegInfo() -
getWorldInfo
-
getCurrentTime
int getCurrentTime() -
setCurrentTime
void setCurrentTime(int time) -
getTotalTime
int getTotalTime() -
setTotalTime
-
isTimeFrozen
boolean isTimeFrozen() -
setTimeFrozen
void setTimeFrozen(boolean frozen) -
notifyNeighborsOfChange
-
createPlayer
AbstractPlayerEntity createPlayer(UUID id, IPlayerDesign design, io.netty.channel.Channel channel, boolean loadOrSwapLast) -
getPlayer
-
getPlayer
-
destroyTile
-
getSpawnX
int getSpawnX() -
causeLightUpdate
void causeLightUpdate(int x, int y) -
getGenerator
-
unloadChunk
-
savePlayer
-
getSkylightModifier
float getSkylightModifier(boolean doMinMax) -
getAllGenerators
-
getSortedLoopingGenerators
-
getSortedRetroactiveGenerators
-
save
-
getAllPlayers
List<AbstractPlayerEntity> getAllPlayers() -
removeEntity
-
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
-
playSound
void playSound(ResourceName name, double x, double y, double z, float pitch, float volume, AbstractPlayerEntity except) -
broadcastSound
-
playSound
-
broadcastSound
-
getCombinedVisualLight
byte getCombinedVisualLight(int x, int y) -
isStoryMode
boolean isStoryMode() -
getClosestPlayer
-
getClosestPlayer
-
addPlayer
-
removePlayer
-
travelToSubWorld
-
getSubWorld
-
getSubWorlds
-
getMainWorld
IWorld getMainWorld() -
getSleepingPercentage
float getSleepingPercentage() -
getSubName
ResourceName getSubName() -
setSubName
-
unloadEverything
-