public interface IWorld extends IChunkOrWorld
| Modifier and Type | Method and Description |
|---|---|
void |
addPlayer(AbstractPlayerEntity player) |
void |
broadcastSound(AbstractPlayerEntity player,
ResourceName name,
float pitch,
float volume) |
void |
broadcastSound(ResourceName name,
float pitch,
float volume) |
void |
broadcastSound(ResourceName name,
float pitch,
float volume,
AbstractPlayerEntity except) |
void |
causeLightUpdate(int x,
int y) |
AbstractPlayerEntity |
createPlayer(java.util.UUID id,
IPlayerDesign design,
io.netty.channel.Channel channel,
boolean loadOrSwapLast) |
void |
destroyTile(int x,
int y,
TileLayer layer,
Entity destroyer,
boolean shouldDrop) |
java.util.Map<ResourceName,IWorldGenerator> |
getAllGenerators() |
java.util.List<AbstractPlayerEntity> |
getAllPlayers() |
Biome |
getBiomeForId(int id) |
NameToIndexInfo |
getBiomeRegInfo() |
IChunk |
getChunk(double x,
double y) |
IChunk |
getChunkFromGridCoords(int gridX,
int gridY) |
java.io.File |
getChunksFolder() |
AbstractPlayerEntity |
getClosestPlayer(double x,
double y) |
AbstractPlayerEntity |
getClosestPlayer(double x,
double y,
AbstractPlayerEntity excluding) |
byte |
getCombinedVisualLight(int x,
int y) |
int |
getCurrentTime() |
java.io.File |
getFolder() |
IWorldGenerator |
getGenerator(ResourceName name) |
int |
getHighestTilePos(int x) |
int |
getIdForBiome(Biome biome) |
int |
getIdForState(TileState state) |
IWorld |
getMainWorld() |
default int |
getMinimumWeatherHeight()
The lowest y position that the world will attempt to load to, to find the highest block in the world.
|
java.lang.String |
getName() |
AbstractPlayerEntity |
getPlayer(java.lang.String name) |
AbstractPlayerEntity |
getPlayer(java.util.UUID id) |
java.io.File |
getPlayerFolder() |
DynamicRegistryInfo |
getRegInfo() |
float |
getSkylightModifier(boolean doMinMax) |
java.util.List<IWorldGenerator> |
getSortedLoopingGenerators() |
java.util.List<IWorldGenerator> |
getSortedRetroactiveGenerators() |
int |
getSpawnX() |
TileState |
getStateForId(int id) |
ResourceName |
getSubName() |
IWorld |
getSubWorld(ResourceName name) |
java.util.List<? extends IWorld> |
getSubWorlds() |
NameToIndexInfo |
getTileRegInfo() |
int |
getTotalTime() |
int |
getWeatherHeight() |
WorldInfo |
getWorldInfo() |
boolean |
isChunkLoaded(int x,
int y) |
boolean |
isChunkLoaded(int x,
int y,
boolean checkGenerating) |
boolean |
isDaytime() |
boolean |
isNighttime() |
boolean |
isPosLoaded(double x,
double y) |
boolean |
isPosLoaded(double x,
double y,
boolean checkGenerating) |
boolean |
isStoryMode() |
boolean |
isTimeFrozen() |
void |
notifyNeighborsOfChange(int x,
int y,
TileLayer layer) |
void |
playSound(AbstractPlayerEntity player,
ResourceName name,
double x,
double y,
double z,
float pitch,
float volume) |
void |
playSound(ResourceName name,
double x,
double y,
double z,
float pitch,
float volume) |
void |
playSound(ResourceName name,
double x,
double y,
double z,
float pitch,
float volume,
AbstractPlayerEntity except) |
void |
removeEntity(Entity entity,
IChunk chunk) |
void |
removePlayer(AbstractPlayerEntity player) |
void |
save() |
void |
savePlayer(AbstractPlayerEntity player) |
void |
setCurrentTime(int time) |
void |
setSubName(ResourceName subName) |
void |
setTimeFrozen(boolean frozen) |
void |
setTotalTime(int time) |
void |
travelToSubWorld(Entity entity,
ResourceName subWorld,
double x,
double y) |
void |
unloadChunk(IChunk chunk) |
void |
unloadEverything() |
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, setStategetAdditionalData, getOrCreateAdditionalData, hasAdditionalData, setAdditionalDataIChunk getChunkFromGridCoords(int gridX, int gridY)
IChunk getChunk(double x, double y)
boolean isPosLoaded(double x,
double y)
boolean isPosLoaded(double x,
double y,
boolean checkGenerating)
boolean isChunkLoaded(int x,
int y)
boolean isChunkLoaded(int x,
int y,
boolean checkGenerating)
int getWeatherHeight()
default int getMinimumWeatherHeight()
int getHighestTilePos(int x)
int getIdForState(TileState state)
TileState getStateForId(int id)
NameToIndexInfo getTileRegInfo()
int getIdForBiome(Biome biome)
Biome getBiomeForId(int id)
NameToIndexInfo getBiomeRegInfo()
DynamicRegistryInfo getRegInfo()
@ApiInternal WorldInfo getWorldInfo()
int getCurrentTime()
void setCurrentTime(int time)
int getTotalTime()
@ApiInternal void setTotalTime(int time)
boolean isTimeFrozen()
void setTimeFrozen(boolean frozen)
void notifyNeighborsOfChange(int x,
int y,
TileLayer layer)
AbstractPlayerEntity createPlayer(java.util.UUID id, IPlayerDesign design, io.netty.channel.Channel channel, boolean loadOrSwapLast)
AbstractPlayerEntity getPlayer(java.util.UUID id)
AbstractPlayerEntity getPlayer(java.lang.String name)
int getSpawnX()
void causeLightUpdate(int x,
int y)
IWorldGenerator getGenerator(ResourceName name)
@ApiInternal void unloadChunk(IChunk chunk)
@ApiInternal void savePlayer(AbstractPlayerEntity player)
float getSkylightModifier(boolean doMinMax)
@ApiInternal java.util.Map<ResourceName,IWorldGenerator> getAllGenerators()
@ApiInternal java.util.List<IWorldGenerator> getSortedLoopingGenerators()
@ApiInternal java.util.List<IWorldGenerator> getSortedRetroactiveGenerators()
@ApiInternal void save()
java.util.List<AbstractPlayerEntity> getAllPlayers()
boolean isDaytime()
boolean isNighttime()
java.io.File getFolder()
java.io.File getPlayerFolder()
java.io.File getChunksFolder()
java.lang.String getName()
void playSound(AbstractPlayerEntity player, ResourceName name, double x, double y, double z, float pitch, float volume)
void broadcastSound(AbstractPlayerEntity player, ResourceName name, float pitch, float volume)
void playSound(ResourceName name, double x, double y, double z, float pitch, float volume, AbstractPlayerEntity except)
void broadcastSound(ResourceName name, float pitch, float volume, AbstractPlayerEntity except)
void playSound(ResourceName name, double x, double y, double z, float pitch, float volume)
void broadcastSound(ResourceName name, float pitch, float volume)
byte getCombinedVisualLight(int x,
int y)
boolean isStoryMode()
AbstractPlayerEntity getClosestPlayer(double x, double y, AbstractPlayerEntity excluding)
AbstractPlayerEntity getClosestPlayer(double x, double y)
@ApiInternal void addPlayer(AbstractPlayerEntity player)
@ApiInternal void removePlayer(AbstractPlayerEntity player)
void travelToSubWorld(Entity entity, ResourceName subWorld, double x, double y)
IWorld getSubWorld(ResourceName name)
java.util.List<? extends IWorld> getSubWorlds()
IWorld getMainWorld()
ResourceName getSubName()
@ApiInternal void setSubName(ResourceName subName)
@ApiInternal void unloadEverything()