public class GlowWorld extends Object implements org.bukkit.World
| Constructor and Description |
|---|
GlowWorld(GlowServer server,
org.bukkit.WorldCreator creator,
WorldStorageProvider worldStorageProvider)
Creates a new world from the options in the given WorldCreator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
broadcastBlockChangeInRange(GlowChunk.Key chunkKey,
BlockChangeMessage message) |
void |
cancelPulse(GlowBlock block) |
void |
cancelPulse(org.bukkit.Location location) |
boolean |
canGenerateStructures() |
boolean |
createExplosion(double x,
double y,
double z,
float power) |
boolean |
createExplosion(double x,
double y,
double z,
float power,
boolean setFire) |
boolean |
createExplosion(double x,
double y,
double z,
float power,
boolean setFire,
boolean breakBlocks) |
boolean |
createExplosion(org.bukkit.entity.Entity source,
double x,
double y,
double z,
float power,
boolean incendiary,
boolean breakBlocks)
Create an explosion with a specific entity as the source.
|
boolean |
createExplosion(org.bukkit.entity.Entity source,
org.bukkit.Location loc,
float power,
boolean setFire,
boolean breakBlocks) |
boolean |
createExplosion(org.bukkit.Location loc,
float power) |
boolean |
createExplosion(org.bukkit.Location loc,
float power,
boolean setFire) |
GlowItem |
dropItem(org.bukkit.Location location,
org.bukkit.inventory.ItemStack item)
Spawn an item at the given
Location without shooting effect. |
GlowItem |
dropItemNaturally(org.bukkit.Location location,
org.bukkit.inventory.ItemStack item)
Spawn an item at the given
Location with shooting effect. |
boolean |
equals(Object obj) |
boolean |
generateTree(org.bukkit.Location location,
org.bukkit.TreeType type) |
boolean |
generateTree(org.bukkit.Location loc,
org.bukkit.TreeType type,
org.bukkit.BlockChangeDelegate delegate) |
boolean |
getAllowAnimals() |
boolean |
getAllowMonsters() |
int |
getAmbientSpawnLimit()
Per-world spawn limits on ambient mobs (bats).
|
int |
getAnimalSpawnLimit()
Per-world spawn limits on passive mobs.
|
org.bukkit.block.Biome |
getBiome(int x,
int z) |
GlowBlock |
getBlockAt(int x,
int y,
int z) |
GlowBlock |
getBlockAt(org.bukkit.Location location) |
int |
getBlockEntityCount()
Returns the number of block entities in loaded chunkManager.
|
int |
getBlockTypeIdAt(int x,
int y,
int z) |
int |
getBlockTypeIdAt(org.bukkit.Location location) |
GlowChunk |
getChunk(GlowChunk.Key key) |
org.bukkit.Chunk |
getChunkAt(org.bukkit.block.Block block) |
GlowChunk |
getChunkAt(int x,
int z) |
org.bukkit.Chunk |
getChunkAt(org.bukkit.Location location) |
GlowChunk |
getChunkAt(long chunkKey) |
void |
getChunkAtAsync(org.bukkit.block.Block block,
org.bukkit.World.ChunkLoadCallback cb) |
void |
getChunkAtAsync(int x,
int z,
org.bukkit.World.ChunkLoadCallback cb) |
void |
getChunkAtAsync(org.bukkit.Location location,
org.bukkit.World.ChunkLoadCallback cb) |
int |
getChunkCount() |
ChunkManager |
getChunkManager()
The chunk manager.
|
org.bukkit.Difficulty |
getDifficulty()
The world's gameplay difficulty.
|
org.bukkit.ChunkSnapshot |
getEmptyChunkSnapshot(int x,
int z,
boolean includeBiome,
boolean includeBiomeTempRain) |
List<org.bukkit.entity.Entity> |
getEntities() |
<T extends org.bukkit.entity.Entity> |
getEntitiesByClass(Class<T>... classes)
Deprecated.
|
<T extends org.bukkit.entity.Entity> |
getEntitiesByClass(Class<T> cls) |
Collection<org.bukkit.entity.Entity> |
getEntitiesByClasses(Class<?>... classes) |
org.bukkit.entity.Entity |
getEntity(UUID uuid) |
int |
getEntityCount() |
EntityManager |
getEntityManager()
The entity manager.
|
org.bukkit.World.Environment |
getEnvironment()
The environment.
|
long |
getFullTime()
The age of the world, in ticks.
|
Map<String,CommandFunction> |
getFunctions() |
GameRuleManager |
getGameRuleMap()
The game rules used in this world.
|
String[] |
getGameRules() |
String |
getGameRuleValue(@NonNls String rule) |
org.bukkit.generator.ChunkGenerator |
getGenerator() |
org.bukkit.block.Block |
getHighestBlockAt(int x,
int z) |
org.bukkit.block.Block |
getHighestBlockAt(org.bukkit.Location location) |
org.bukkit.block.Block |
getHighestBlockAt(org.bukkit.Location location,
org.bukkit.Material... except)
Gets the lowest block at the given
Location such that the block
and all blocks above it are either air or one of the given materials. |
int |
getHighestBlockYAt(int x,
int z) |
int |
getHighestBlockYAt(org.bukkit.Location location) |
double |
getHumidity(int x,
int z) |
boolean |
getKeepSpawnInMemory() |
Set<String> |
getListeningPluginChannels() |
List<org.bukkit.entity.LivingEntity> |
getLivingEntities() |
org.bukkit.Chunk[] |
getLoadedChunks() |
int |
getMaxHeight()
The maximum height at which players may place blocks.
|
List<org.bukkit.metadata.MetadataValue> |
getMetadata(String metadataKey) |
int |
getMonsterSpawnLimit()
Per-world spawn limits on hostile mobs.
|
double |
getMoonPhase() |
String |
getName()
The name of this world.
|
Collection<org.bukkit.entity.Entity> |
getNearbyEntities(org.bukkit.Location location,
double x,
double y,
double z)
Returns a list of entities within a bounding box centered around a Location.
|
int |
getPlayerCount() |
List<org.bukkit.entity.Player> |
getPlayers() |
List<org.bukkit.generator.BlockPopulator> |
getPopulators() |
boolean |
getPVP() |
float |
getRainDensity()
The rain density on the current world tick.
|
Collection<GlowPlayer> |
getRawPlayers() |
int |
getSeaLevel() |
long |
getSeed()
The world seed.
|
GlowServer |
getServer()
Get the world's parent server.
|
float |
getSkyDarkness()
The sky darkness on the current world tick.
|
org.bukkit.Location |
getSpawnLocation() |
WorldStorageProvider |
getStorage()
The storage provider for the world.
|
Map<Integer,GlowStructure> |
getStructures() |
double |
getTemperature(int x,
int z) |
int |
getThunderDuration()
How many ticks until the thundering status is expected to change.
|
int |
getTickableBlockEntityCount()
Returns the number of tickable block entities in loaded chunkManager.
|
int |
getTickableTileEntityCount()
Deprecated.
|
ConcurrentSet<org.bukkit.Location> |
getTickMap() |
long |
getTicksPerAnimalSpawns() |
long |
getTicksPerMonsterSpawns() |
int |
getTileEntityCount()
Deprecated.
|
long |
getTime()
The current world time.
|
UUID |
getUID() |
int |
getWaterAnimalSpawnLimit()
Per-world spawn limits on water mobs (squids).
|
int |
getWeatherDuration()
How many ticks until the rain/snow status is expected to change.
|
GlowWorldBorder |
getWorldBorder()
The world border.
|
File |
getWorldFolder()
Get the world folder.
|
org.bukkit.WorldType |
getWorldType()
The world type.
|
int |
hashCode() |
boolean |
hasMetadata(String metadataKey) |
boolean |
hasStorm() |
boolean |
isAutoSave()
The check to autosave.
|
boolean |
isChunkGenerated(int x,
int z) |
boolean |
isChunkInUse(int x,
int z) |
boolean |
isChunkLoaded(org.bukkit.Chunk chunk) |
boolean |
isChunkLoaded(int x,
int z) |
boolean |
isGameRule(String rule) |
boolean |
isInitialized()
Whether the world has been initialized (i.e.
|
boolean |
isThundering()
Whether it is currently thundering on this world.
|
void |
loadChunk(org.bukkit.Chunk chunk) |
void |
loadChunk(int x,
int z) |
boolean |
loadChunk(int x,
int z,
boolean generate) |
ChunkManager.ChunkLock |
newChunkLock(@NonNls String desc)
Get a new chunk lock object a player or other party can use to keep chunkManager loaded.
|
void |
playEffect(org.bukkit.Location location,
org.bukkit.Effect effect,
int data) |
void |
playEffect(org.bukkit.Location location,
org.bukkit.Effect effect,
int data,
int radius) |
<T> void |
playEffect(org.bukkit.Location location,
org.bukkit.Effect effect,
T data) |
<T> void |
playEffect(org.bukkit.Location location,
org.bukkit.Effect effect,
T data,
int radius) |
void |
playEffectExceptTo(org.bukkit.Location location,
org.bukkit.Effect effect,
int data,
int radius,
org.bukkit.entity.Player exclude)
Plays an effect to all but one player within a given radius around a location.
|
void |
playSound(org.bukkit.Location location,
org.bukkit.Sound sound,
float volume,
float pitch) |
void |
playSound(org.bukkit.Location location,
org.bukkit.Sound sound,
org.bukkit.SoundCategory category,
float volume,
float pitch) |
void |
playSound(org.bukkit.Location location,
String sound,
float volume,
float pitch) |
void |
playSound(org.bukkit.Location location,
String sound,
org.bukkit.SoundCategory category,
float volume,
float pitch) |
void |
pulse()
Updates all the entities within this world.
|
float |
rayTrace(org.bukkit.Location location,
GlowEntity entity)
Calculates how much the rays from the location to the entity's bounding box is blocked.
|
boolean |
refreshChunk(int x,
int z) |
boolean |
regenerateChunk(int x,
int z) |
void |
removeMetadata(String metadataKey,
org.bukkit.plugin.Plugin owningPlugin) |
void |
requestPulse(GlowBlock block) |
void |
requestPulse(org.bukkit.Location location) |
void |
save() |
void |
save(boolean async)
Saves world to disk synchronously or asynchronously.
|
void |
sendPluginMessage(org.bukkit.plugin.Plugin source,
String channel,
byte[] message) |
void |
setAmbientSpawnLimit(int ambientSpawnLimit)
Per-world spawn limits on ambient mobs (bats).
|
void |
setAnimalSpawnLimit(int animalSpawnLimit)
Per-world spawn limits on passive mobs.
|
void |
setAutoSave(boolean autoSave)
The check to autosave.
|
void |
setBiome(int x,
int z,
org.bukkit.block.Biome bio) |
void |
setDifficulty(org.bukkit.Difficulty difficulty) |
void |
setFullTime(long fullTime)
The age of the world, in ticks.
|
boolean |
setGameRuleValue(@NonNls String rule,
String value) |
void |
setKeepSpawnInMemory(boolean keepLoaded) |
void |
setMetadata(String metadataKey,
org.bukkit.metadata.MetadataValue newMetadataValue) |
void |
setMonsterSpawnLimit(int monsterSpawnLimit)
Per-world spawn limits on hostile mobs.
|
void |
setPVP(boolean pvp) |
void |
setSpawnFlags(boolean allowMonsters,
boolean allowAnimals) |
boolean |
setSpawnLocation(int x,
int y,
int z) |
boolean |
setSpawnLocation(int x,
int y,
int z,
boolean anchor) |
boolean |
setSpawnLocation(org.bukkit.Location newSpawn) |
boolean |
setSpawnLocation(org.bukkit.Location newSpawn,
boolean anchor)
Sets the spawn location of the world.
|
void |
setStorm(boolean hasStorm) |
void |
setThunderDuration(int thunderDuration)
How many ticks until the thundering status is expected to change.
|
void |
setThundering(boolean thundering) |
void |
setTicksPerAnimalSpawns(int ticksPerAnimalSpawns)
Ticks between when passive mobs are spawned.
|
void |
setTicksPerMonsterSpawns(int ticksPerMonsterSpawns)
Ticks between when hostile mobs are spawned.
|
void |
setTime(long time) |
void |
setWaterAnimalSpawnLimit(int waterAnimalSpawnLimit)
Per-world spawn limits on water mobs (squids).
|
void |
setWeatherDuration(int weatherDuration)
How many ticks until the rain/snow status is expected to change.
|
void |
setWorldType(org.bukkit.WorldType worldType)
The world type.
|
void |
showParticle(org.bukkit.Location loc,
org.bukkit.Effect particle,
float offsetX,
float offsetY,
float offsetZ,
float speed,
int amount)
Displays the given particle to all players.
|
void |
showParticle(org.bukkit.Location loc,
org.bukkit.Effect particle,
int id,
int data,
float offsetX,
float offsetY,
float offsetZ,
float speed,
int amount,
int radius)
Displays the given particle to all players.
|
GlowEntity |
spawn(org.bukkit.Location location,
Class<? extends GlowEntity> clazz,
org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason reason)
Spawns an entity.
|
<T extends org.bukkit.entity.Entity> |
spawn(org.bukkit.Location location,
Class<T> clazz) |
<T extends org.bukkit.entity.Entity> |
spawn(org.bukkit.Location location,
Class<T> clazz,
org.bukkit.util.Consumer<T> function) |
org.bukkit.entity.Arrow |
spawnArrow(org.bukkit.Location location,
org.bukkit.util.Vector velocity,
float speed,
float spread) |
<T extends org.bukkit.entity.Arrow> |
spawnArrow(org.bukkit.Location location,
org.bukkit.util.Vector direction,
float speed,
float spread,
Class<T> clazz) |
<T extends org.bukkit.entity.Entity> |
spawnCustomEntity(org.bukkit.Location location,
String id)
Spawn a custom entity at the given
Location. |
<T extends org.bukkit.entity.Entity> |
spawnCustomEntity(org.bukkit.Location location,
String id,
org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason reason)
Spawn a custom entity at the given
Location, with the given CreatureSpawnEvent.SpawnReason. |
org.bukkit.entity.Entity |
spawnEntity(org.bukkit.Location loc,
org.bukkit.entity.EntityType type) |
org.bukkit.entity.FallingBlock |
spawnFallingBlock(org.bukkit.Location location,
int blockId,
byte blockData) |
org.bukkit.entity.FallingBlock |
spawnFallingBlock(org.bukkit.Location location,
org.bukkit.Material material,
byte data) |
org.bukkit.entity.FallingBlock |
spawnFallingBlock(org.bukkit.Location location,
org.bukkit.material.MaterialData data) |
void |
spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count) |
void |
spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count,
double offsetX,
double offsetY,
double offsetZ) |
void |
spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count,
double offsetX,
double offsetY,
double offsetZ,
double extra) |
<T> void |
spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count,
double offsetX,
double offsetY,
double offsetZ,
double extra,
T data) |
<T> void |
spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count,
double offsetX,
double offsetY,
double offsetZ,
T data) |
<T> void |
spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count,
T data) |
<T> void |
spawnParticle(org.bukkit.Particle particle,
List<org.bukkit.entity.Player> receivers,
org.bukkit.entity.Player source,
double x,
double y,
double z,
int count,
double offsetX,
double offsetY,
double offsetZ,
double extra,
T data) |
<T> void |
spawnParticle(org.bukkit.Particle particle,
List<org.bukkit.entity.Player> receivers,
org.bukkit.entity.Player source,
double x,
double y,
double z,
int count,
double offsetX,
double offsetY,
double offsetZ,
double extra,
T data,
boolean force) |
void |
spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count) |
void |
spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count,
double offsetX,
double offsetY,
double offsetZ) |
void |
spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count,
double offsetX,
double offsetY,
double offsetZ,
double extra) |
<T> void |
spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count,
double offsetX,
double offsetY,
double offsetZ,
double extra,
T data) |
<T> void |
spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count,
double offsetX,
double offsetY,
double offsetZ,
T data) |
<T> void |
spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count,
T data) |
org.bukkit.World.Spigot |
spigot() |
GlowLightningStrike |
strikeLightning(org.bukkit.Location loc) |
GlowLightningStrike |
strikeLightningEffect(org.bukkit.Location loc) |
String |
toString() |
boolean |
unload()
Unloads the world.
|
boolean |
unloadChunk(org.bukkit.Chunk chunk) |
boolean |
unloadChunk(int x,
int z) |
boolean |
unloadChunk(int x,
int z,
boolean save) |
boolean |
unloadChunk(int x,
int z,
boolean save,
boolean safe) |
boolean |
unloadChunkRequest(int x,
int z) |
boolean |
unloadChunkRequest(int x,
int z,
boolean safe) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcreateExplosion, createExplosion, createExplosion, createExplosion, createExplosion, createExplosion, getBlockAtKey, getLocationAtKey, getNearbyEntitiesByType, getNearbyEntitiesByType, getNearbyEntitiesByType, getNearbyEntitiesByType, getNearbyEntitiesByType, getNearbyEntitiesByType, getNearbyLivingEntities, getNearbyLivingEntities, getNearbyLivingEntities, getNearbyLivingEntities, getNearbyLivingEntities, getNearbyLivingEntities, getNearbyPlayers, getNearbyPlayers, getNearbyPlayers, getNearbyPlayers, getNearbyPlayers, getNearbyPlayers, isChunkGeneratedpublic GlowWorld(GlowServer server, org.bukkit.WorldCreator creator, WorldStorageProvider worldStorageProvider)
server - The server for the world.creator - The WorldCreator to use.worldStorageProvider - The storage provider to use.public ChunkManager.ChunkLock newChunkLock(@NonNls @NonNls String desc)
desc - A description for this chunk lock.public void pulse()
public void broadcastBlockChangeInRange(GlowChunk.Key chunkKey, BlockChangeMessage message)
public float rayTrace(org.bukkit.Location location,
GlowEntity entity)
location - The location for the rays to startentity - The entity that's bounding box is the ray's end pointpublic double getMoonPhase()
public Collection<GlowPlayer> getRawPlayers()
public List<org.bukkit.entity.Player> getPlayers()
getPlayers in interface org.bukkit.Worldpublic Collection<org.bukkit.entity.Entity> getNearbyEntities(org.bukkit.Location location, double x, double y, double z)
Some implementations may impose artificial restrictions on the size of the search bounding box.
getNearbyEntities in interface org.bukkit.Worldlocation - The center of the bounding boxx - 1/2 the size of the box along x axisy - 1/2 the size of the box along y axisz - 1/2 the size of the box along z axispublic org.bukkit.entity.Entity getEntity(UUID uuid)
getEntity in interface org.bukkit.Worldpublic List<org.bukkit.entity.Entity> getEntities()
getEntities in interface org.bukkit.Worldpublic List<org.bukkit.entity.LivingEntity> getLivingEntities()
getLivingEntities in interface org.bukkit.World@Deprecated public <T extends org.bukkit.entity.Entity> Collection<T> getEntitiesByClass(Class<T>... classes)
getEntitiesByClass in interface org.bukkit.Worldpublic <T extends org.bukkit.entity.Entity> Collection<T> getEntitiesByClass(Class<T> cls)
getEntitiesByClass in interface org.bukkit.Worldpublic Collection<org.bukkit.entity.Entity> getEntitiesByClasses(Class<?>... classes)
getEntitiesByClasses in interface org.bukkit.Worldpublic org.bukkit.Location getSpawnLocation()
getSpawnLocation in interface org.bukkit.Worldpublic boolean setSpawnLocation(org.bukkit.Location newSpawn)
setSpawnLocation in interface org.bukkit.Worldpublic boolean setSpawnLocation(int x,
int y,
int z)
setSpawnLocation in interface org.bukkit.Worldpublic boolean setSpawnLocation(org.bukkit.Location newSpawn,
boolean anchor)
newSpawn - the new spawn locationanchor - if true, the spawn is never unloaded while the world is runningpublic boolean setSpawnLocation(int x,
int y,
int z,
boolean anchor)
public boolean getPVP()
getPVP in interface org.bukkit.Worldpublic void setPVP(boolean pvp)
setPVP in interface org.bukkit.Worldpublic boolean getKeepSpawnInMemory()
getKeepSpawnInMemory in interface org.bukkit.Worldpublic void setKeepSpawnInMemory(boolean keepLoaded)
setKeepSpawnInMemory in interface org.bukkit.Worldpublic void setDifficulty(org.bukkit.Difficulty difficulty)
setDifficulty in interface org.bukkit.Worldpublic void setSpawnFlags(boolean allowMonsters,
boolean allowAnimals)
setSpawnFlags in interface org.bukkit.Worldpublic boolean getAllowAnimals()
getAllowAnimals in interface org.bukkit.Worldpublic boolean getAllowMonsters()
getAllowMonsters in interface org.bukkit.Worldpublic UUID getUID()
getUID in interface org.bukkit.Worldpublic int getSeaLevel()
getSeaLevel in interface org.bukkit.Worldpublic boolean canGenerateStructures()
canGenerateStructures in interface org.bukkit.Worldpublic long getTicksPerAnimalSpawns()
getTicksPerAnimalSpawns in interface org.bukkit.Worldpublic long getTicksPerMonsterSpawns()
getTicksPerMonsterSpawns in interface org.bukkit.Worldpublic void save()
save in interface org.bukkit.Worldpublic void save(boolean async)
async - if true, save asynchronouslypublic org.bukkit.generator.ChunkGenerator getGenerator()
getGenerator in interface org.bukkit.Worldpublic List<org.bukkit.generator.BlockPopulator> getPopulators()
getPopulators in interface org.bukkit.Worldpublic boolean generateTree(org.bukkit.Location location,
org.bukkit.TreeType type)
generateTree in interface org.bukkit.Worldpublic boolean generateTree(org.bukkit.Location loc,
org.bukkit.TreeType type,
org.bukkit.BlockChangeDelegate delegate)
generateTree in interface org.bukkit.Worldpublic Map<Integer,GlowStructure> getStructures()
public int getEntityCount()
getEntityCount in interface org.bukkit.World@Deprecated public int getTileEntityCount()
getTileEntityCount in interface org.bukkit.Worldpublic int getBlockEntityCount()
@Deprecated public int getTickableTileEntityCount()
getTickableTileEntityCount in interface org.bukkit.Worldpublic int getTickableBlockEntityCount()
public int getChunkCount()
getChunkCount in interface org.bukkit.Worldpublic int getPlayerCount()
getPlayerCount in interface org.bukkit.Worldpublic GlowBlock getBlockAt(org.bukkit.Location location)
getBlockAt in interface org.bukkit.Worldpublic GlowBlock getBlockAt(int x, int y, int z)
getBlockAt in interface org.bukkit.Worldpublic int getBlockTypeIdAt(org.bukkit.Location location)
getBlockTypeIdAt in interface org.bukkit.Worldpublic int getBlockTypeIdAt(int x,
int y,
int z)
getBlockTypeIdAt in interface org.bukkit.Worldpublic int getHighestBlockYAt(org.bukkit.Location location)
getHighestBlockYAt in interface org.bukkit.Worldpublic int getHighestBlockYAt(int x,
int z)
getHighestBlockYAt in interface org.bukkit.Worldpublic org.bukkit.block.Block getHighestBlockAt(int x,
int z)
getHighestBlockAt in interface org.bukkit.Worldpublic org.bukkit.block.Block getHighestBlockAt(org.bukkit.Location location)
getHighestBlockAt in interface org.bukkit.Worldpublic org.bukkit.block.Block getHighestBlockAt(org.bukkit.Location location,
org.bukkit.Material... except)
Location such that the block
and all blocks above it are either air or one of the given materials.location - Coordinates to get the highest blockexcept - Blocks to exclude in addition to airpublic GlowChunk getChunkAt(long chunkKey)
getChunkAt in interface org.bukkit.Worldpublic org.bukkit.Chunk getChunkAt(org.bukkit.Location location)
getChunkAt in interface org.bukkit.Worldpublic GlowChunk getChunkAt(int x, int z)
getChunkAt in interface org.bukkit.Worldpublic org.bukkit.Chunk getChunkAt(org.bukkit.block.Block block)
getChunkAt in interface org.bukkit.Worldpublic GlowChunk getChunk(GlowChunk.Key key)
public boolean isChunkGenerated(int x,
int z)
isChunkGenerated in interface org.bukkit.Worldpublic void getChunkAtAsync(int x,
int z,
org.bukkit.World.ChunkLoadCallback cb)
getChunkAtAsync in interface org.bukkit.Worldpublic void getChunkAtAsync(org.bukkit.Location location,
org.bukkit.World.ChunkLoadCallback cb)
getChunkAtAsync in interface org.bukkit.Worldpublic void getChunkAtAsync(org.bukkit.block.Block block,
org.bukkit.World.ChunkLoadCallback cb)
getChunkAtAsync in interface org.bukkit.Worldpublic boolean isChunkLoaded(org.bukkit.Chunk chunk)
isChunkLoaded in interface org.bukkit.Worldpublic boolean isChunkLoaded(int x,
int z)
isChunkLoaded in interface org.bukkit.Worldpublic boolean isChunkInUse(int x,
int z)
isChunkInUse in interface org.bukkit.Worldpublic org.bukkit.Chunk[] getLoadedChunks()
getLoadedChunks in interface org.bukkit.Worldpublic void loadChunk(org.bukkit.Chunk chunk)
loadChunk in interface org.bukkit.Worldpublic void loadChunk(int x,
int z)
loadChunk in interface org.bukkit.Worldpublic boolean loadChunk(int x,
int z,
boolean generate)
loadChunk in interface org.bukkit.Worldpublic boolean unloadChunk(org.bukkit.Chunk chunk)
unloadChunk in interface org.bukkit.Worldpublic boolean unloadChunk(int x,
int z)
unloadChunk in interface org.bukkit.Worldpublic boolean unloadChunk(int x,
int z,
boolean save)
unloadChunk in interface org.bukkit.Worldpublic boolean unloadChunk(int x,
int z,
boolean save,
boolean safe)
unloadChunk in interface org.bukkit.Worldpublic boolean unloadChunkRequest(int x,
int z)
unloadChunkRequest in interface org.bukkit.Worldpublic boolean unloadChunkRequest(int x,
int z,
boolean safe)
unloadChunkRequest in interface org.bukkit.Worldpublic boolean regenerateChunk(int x,
int z)
regenerateChunk in interface org.bukkit.Worldpublic boolean refreshChunk(int x,
int z)
refreshChunk in interface org.bukkit.Worldpublic org.bukkit.ChunkSnapshot getEmptyChunkSnapshot(int x,
int z,
boolean includeBiome,
boolean includeBiomeTempRain)
getEmptyChunkSnapshot in interface org.bukkit.Worldpublic org.bukkit.block.Biome getBiome(int x,
int z)
getBiome in interface org.bukkit.Worldpublic void setBiome(int x,
int z,
org.bukkit.block.Biome bio)
setBiome in interface org.bukkit.Worldpublic double getTemperature(int x,
int z)
getTemperature in interface org.bukkit.Worldpublic double getHumidity(int x,
int z)
getHumidity in interface org.bukkit.Worldpublic <T extends org.bukkit.entity.Entity> T spawn(org.bukkit.Location location,
Class<T> clazz)
throws IllegalArgumentException
spawn in interface org.bukkit.WorldIllegalArgumentExceptionpublic <T extends org.bukkit.entity.Entity> T spawn(org.bukkit.Location location,
Class<T> clazz,
org.bukkit.util.Consumer<T> function)
throws IllegalArgumentException
spawn in interface org.bukkit.WorldIllegalArgumentExceptionpublic GlowEntity spawn(org.bukkit.Location location, Class<? extends GlowEntity> clazz, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason reason) throws IllegalArgumentException
location - the Location to spawn the entity atclazz - the class of the Entity to spawnreason - the reason for the spawning of the entityEntityIllegalArgumentException - TODO: document the reason this can happenpublic <T extends org.bukkit.entity.Entity> T spawnCustomEntity(org.bukkit.Location location,
String id)
throws IllegalArgumentException
Location.T - the class of the Entity to spawnlocation - the Location to spawn the entity atid - the id of the custom entityEntityIllegalArgumentExceptionpublic <T extends org.bukkit.entity.Entity> T spawnCustomEntity(org.bukkit.Location location,
String id,
org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason reason)
throws IllegalArgumentException
Location, with the given CreatureSpawnEvent.SpawnReason.T - the class of the Entity to spawnlocation - the Location to spawn the entity atid - the id of the custom entityreason - the reason for the spawning of the entityEntityIllegalArgumentExceptionpublic GlowItem dropItem(org.bukkit.Location location, org.bukkit.inventory.ItemStack item)
Location without shooting effect.dropItem in interface org.bukkit.Worldlocation - the Location to spawn the item atitem - the ItemStack the item should havepublic GlowItem dropItemNaturally(org.bukkit.Location location, org.bukkit.inventory.ItemStack item)
Location with shooting effect.dropItemNaturally in interface org.bukkit.Worldlocation - the Location to spawn the item atitem - the ItemStack the item should havepublic org.bukkit.entity.Arrow spawnArrow(org.bukkit.Location location,
org.bukkit.util.Vector velocity,
float speed,
float spread)
spawnArrow in interface org.bukkit.Worldpublic <T extends org.bukkit.entity.Arrow> T spawnArrow(org.bukkit.Location location,
org.bukkit.util.Vector direction,
float speed,
float spread,
Class<T> clazz)
spawnArrow in interface org.bukkit.Worldpublic org.bukkit.entity.FallingBlock spawnFallingBlock(org.bukkit.Location location,
org.bukkit.material.MaterialData data)
throws IllegalArgumentException
spawnFallingBlock in interface org.bukkit.WorldIllegalArgumentExceptionpublic org.bukkit.entity.FallingBlock spawnFallingBlock(org.bukkit.Location location,
org.bukkit.Material material,
byte data)
throws IllegalArgumentException
spawnFallingBlock in interface org.bukkit.WorldIllegalArgumentExceptionpublic org.bukkit.entity.FallingBlock spawnFallingBlock(org.bukkit.Location location,
int blockId,
byte blockData)
throws IllegalArgumentException
spawnFallingBlock in interface org.bukkit.WorldIllegalArgumentExceptionpublic org.bukkit.entity.Entity spawnEntity(org.bukkit.Location loc,
org.bukkit.entity.EntityType type)
spawnEntity in interface org.bukkit.Worldpublic GlowLightningStrike strikeLightning(org.bukkit.Location loc)
strikeLightning in interface org.bukkit.Worldpublic GlowLightningStrike strikeLightningEffect(org.bukkit.Location loc)
strikeLightningEffect in interface org.bukkit.Worldpublic void setTime(long time)
setTime in interface org.bukkit.Worldpublic boolean hasStorm()
hasStorm in interface org.bukkit.Worldpublic void setStorm(boolean hasStorm)
setStorm in interface org.bukkit.Worldpublic void setThundering(boolean thundering)
setThundering in interface org.bukkit.Worldpublic boolean createExplosion(org.bukkit.Location loc,
float power)
createExplosion in interface org.bukkit.Worldpublic boolean createExplosion(org.bukkit.Location loc,
float power,
boolean setFire)
createExplosion in interface org.bukkit.Worldpublic boolean createExplosion(org.bukkit.entity.Entity source,
org.bukkit.Location loc,
float power,
boolean setFire,
boolean breakBlocks)
createExplosion in interface org.bukkit.Worldpublic boolean createExplosion(double x,
double y,
double z,
float power)
createExplosion in interface org.bukkit.Worldpublic boolean createExplosion(double x,
double y,
double z,
float power,
boolean setFire)
createExplosion in interface org.bukkit.Worldpublic boolean createExplosion(double x,
double y,
double z,
float power,
boolean setFire,
boolean breakBlocks)
createExplosion in interface org.bukkit.Worldpublic boolean createExplosion(org.bukkit.entity.Entity source,
double x,
double y,
double z,
float power,
boolean incendiary,
boolean breakBlocks)
source - The entity to treat as the source, or null.x - X coordinatey - Y coordinatez - Z coordinatepower - The power of explosion, where 4F is TNTincendiary - Whether or not to set blocks on firebreakBlocks - Whether or not to have blocks be destroyedpublic void playEffect(org.bukkit.Location location,
org.bukkit.Effect effect,
int data)
playEffect in interface org.bukkit.Worldpublic void playEffect(org.bukkit.Location location,
org.bukkit.Effect effect,
int data,
int radius)
playEffect in interface org.bukkit.Worldpublic <T> void playEffect(org.bukkit.Location location,
org.bukkit.Effect effect,
T data)
playEffect in interface org.bukkit.Worldpublic <T> void playEffect(org.bukkit.Location location,
org.bukkit.Effect effect,
T data,
int radius)
playEffect in interface org.bukkit.Worldpublic void playEffectExceptTo(org.bukkit.Location location,
org.bukkit.Effect effect,
int data,
int radius,
org.bukkit.entity.Player exclude)
location - the Location around which players must be to
hear the effecteffect - the Effectdata - a data bit needed for some effectsradius - the radius around the locationexclude - the player who won't see the effectpublic void playSound(org.bukkit.Location location,
org.bukkit.Sound sound,
float volume,
float pitch)
playSound in interface org.bukkit.Worldpublic void playSound(org.bukkit.Location location,
String sound,
float volume,
float pitch)
playSound in interface org.bukkit.Worldpublic void playSound(org.bukkit.Location location,
org.bukkit.Sound sound,
org.bukkit.SoundCategory category,
float volume,
float pitch)
playSound in interface org.bukkit.Worldpublic void playSound(org.bukkit.Location location,
String sound,
org.bukkit.SoundCategory category,
float volume,
float pitch)
playSound in interface org.bukkit.Worldpublic org.bukkit.World.Spigot spigot()
spigot in interface org.bukkit.Worldpublic void showParticle(org.bukkit.Location loc,
org.bukkit.Effect particle,
float offsetX,
float offsetY,
float offsetZ,
float speed,
int amount)
loc - the locationparticle - the particle typeoffsetX - TODO: document this parameteroffsetY - TODO: document this parameteroffsetZ - TODO: document this parameterspeed - TODO: document this parameteramount - the number of particlespublic void showParticle(org.bukkit.Location loc,
org.bukkit.Effect particle,
int id,
int data,
float offsetX,
float offsetY,
float offsetZ,
float speed,
int amount,
int radius)
loc - the locationparticle - the particle typeid - the block or item type IDdata - the block or item dataoffsetX - TODO: document this parameteroffsetY - TODO: document this parameteroffsetZ - TODO: document this parameterspeed - TODO: document this parameteramount - the number of particlesradius - TODO: document this parameterpublic boolean unload()
public File getWorldFolder()
getWorldFolder in interface org.bukkit.Worldpublic String[] getGameRules()
getGameRules in interface org.bukkit.Worldpublic String getGameRuleValue(@NonNls @NonNls String rule)
getGameRuleValue in interface org.bukkit.Worldpublic boolean setGameRuleValue(@NonNls
@NonNls String rule,
String value)
setGameRuleValue in interface org.bukkit.Worldpublic boolean isGameRule(String rule)
isGameRule in interface org.bukkit.Worldpublic Map<String,CommandFunction> getFunctions()
public void spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count)
spawnParticle in interface org.bukkit.Worldpublic void spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count)
spawnParticle in interface org.bukkit.Worldpublic <T> void spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count,
T data)
spawnParticle in interface org.bukkit.Worldpublic <T> void spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count,
T data)
spawnParticle in interface org.bukkit.Worldpublic void spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count,
double offsetX,
double offsetY,
double offsetZ)
spawnParticle in interface org.bukkit.Worldpublic void spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count,
double offsetX,
double offsetY,
double offsetZ)
spawnParticle in interface org.bukkit.Worldpublic <T> void spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count,
double offsetX,
double offsetY,
double offsetZ,
T data)
spawnParticle in interface org.bukkit.Worldpublic <T> void spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count,
double offsetX,
double offsetY,
double offsetZ,
T data)
spawnParticle in interface org.bukkit.Worldpublic void spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count,
double offsetX,
double offsetY,
double offsetZ,
double extra)
spawnParticle in interface org.bukkit.Worldpublic void spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count,
double offsetX,
double offsetY,
double offsetZ,
double extra)
spawnParticle in interface org.bukkit.Worldpublic <T> void spawnParticle(org.bukkit.Particle particle,
org.bukkit.Location location,
int count,
double offsetX,
double offsetY,
double offsetZ,
double extra,
T data)
spawnParticle in interface org.bukkit.Worldpublic <T> void spawnParticle(org.bukkit.Particle particle,
double x,
double y,
double z,
int count,
double offsetX,
double offsetY,
double offsetZ,
double extra,
T data)
spawnParticle in interface org.bukkit.Worldpublic <T> void spawnParticle(org.bukkit.Particle particle,
List<org.bukkit.entity.Player> receivers,
org.bukkit.entity.Player source,
double x,
double y,
double z,
int count,
double offsetX,
double offsetY,
double offsetZ,
double extra,
T data)
spawnParticle in interface org.bukkit.Worldpublic <T> void spawnParticle(org.bukkit.Particle particle,
List<org.bukkit.entity.Player> receivers,
org.bukkit.entity.Player source,
double x,
double y,
double z,
int count,
double offsetX,
double offsetY,
double offsetZ,
double extra,
T data,
boolean force)
spawnParticle in interface org.bukkit.Worldpublic void setMetadata(String metadataKey, org.bukkit.metadata.MetadataValue newMetadataValue)
setMetadata in interface org.bukkit.metadata.Metadatablepublic List<org.bukkit.metadata.MetadataValue> getMetadata(String metadataKey)
getMetadata in interface org.bukkit.metadata.Metadatablepublic boolean hasMetadata(String metadataKey)
hasMetadata in interface org.bukkit.metadata.Metadatablepublic void removeMetadata(String metadataKey, org.bukkit.plugin.Plugin owningPlugin)
removeMetadata in interface org.bukkit.metadata.Metadatablepublic void sendPluginMessage(org.bukkit.plugin.Plugin source,
String channel,
byte[] message)
sendPluginMessage in interface org.bukkit.plugin.messaging.PluginMessageRecipientpublic Set<String> getListeningPluginChannels()
getListeningPluginChannels in interface org.bukkit.plugin.messaging.PluginMessageRecipientpublic ConcurrentSet<org.bukkit.Location> getTickMap()
public void requestPulse(GlowBlock block)
public void requestPulse(org.bukkit.Location location)
public void cancelPulse(GlowBlock block)
public void cancelPulse(org.bukkit.Location location)
public GlowServer getServer()
public String getName()
getName in interface org.bukkit.Worldpublic ChunkManager getChunkManager()
public WorldStorageProvider getStorage()
WorldStorageProvider.public EntityManager getEntityManager()
public GameRuleManager getGameRuleMap()
public org.bukkit.World.Environment getEnvironment()
getEnvironment in interface org.bukkit.Worldpublic long getSeed()
getSeed in interface org.bukkit.Worldpublic GlowWorldBorder getWorldBorder()
getWorldBorder in interface org.bukkit.Worldpublic org.bukkit.WorldType getWorldType()
getWorldType in interface org.bukkit.Worldpublic void setWorldType(org.bukkit.WorldType worldType)
public int getWeatherDuration()
getWeatherDuration in interface org.bukkit.Worldpublic void setWeatherDuration(int weatherDuration)
setWeatherDuration in interface org.bukkit.Worldpublic boolean isThundering()
isThundering in interface org.bukkit.Worldpublic int getThunderDuration()
getThunderDuration in interface org.bukkit.Worldpublic void setThunderDuration(int thunderDuration)
setThunderDuration in interface org.bukkit.Worldpublic float getRainDensity()
public float getSkyDarkness()
public long getFullTime()
getFullTime in interface org.bukkit.Worldpublic void setFullTime(long fullTime)
setFullTime in interface org.bukkit.Worldpublic long getTime()
getTime in interface org.bukkit.Worldpublic boolean isAutoSave()
isAutoSave in interface org.bukkit.Worldpublic void setAutoSave(boolean autoSave)
setAutoSave in interface org.bukkit.Worldpublic org.bukkit.Difficulty getDifficulty()
getDifficulty in interface org.bukkit.Worldpublic void setTicksPerAnimalSpawns(int ticksPerAnimalSpawns)
setTicksPerAnimalSpawns in interface org.bukkit.Worldpublic void setTicksPerMonsterSpawns(int ticksPerMonsterSpawns)
setTicksPerMonsterSpawns in interface org.bukkit.Worldpublic int getMonsterSpawnLimit()
getMonsterSpawnLimit in interface org.bukkit.Worldpublic void setMonsterSpawnLimit(int monsterSpawnLimit)
setMonsterSpawnLimit in interface org.bukkit.Worldpublic int getAnimalSpawnLimit()
getAnimalSpawnLimit in interface org.bukkit.Worldpublic void setAnimalSpawnLimit(int animalSpawnLimit)
setAnimalSpawnLimit in interface org.bukkit.Worldpublic int getWaterAnimalSpawnLimit()
getWaterAnimalSpawnLimit in interface org.bukkit.Worldpublic void setWaterAnimalSpawnLimit(int waterAnimalSpawnLimit)
setWaterAnimalSpawnLimit in interface org.bukkit.Worldpublic int getAmbientSpawnLimit()
getAmbientSpawnLimit in interface org.bukkit.Worldpublic void setAmbientSpawnLimit(int ambientSpawnLimit)
setAmbientSpawnLimit in interface org.bukkit.Worldpublic int getMaxHeight()
getMaxHeight in interface org.bukkit.Worldpublic boolean isInitialized()
Copyright © 2021. All rights reserved.