public interface IWorld
| Modifier and Type | Method and Description |
|---|---|
boolean |
areAllPlayersAsleep() |
boolean |
canBlockFreeze(int x,
int y,
int z,
boolean adjacentToWater) |
boolean |
canBlockFreeze(IPos pos,
boolean adjacentToWater) |
boolean |
canBlockFreezeBody(int x,
int y,
int z,
boolean adjacentToWater) |
boolean |
canBlockFreezeBody(IPos pos,
boolean adjacentToWater) |
boolean |
canLightningStrikeAt(int x,
int y,
int z) |
boolean |
canLightningStrikeAt(IPos pos) |
boolean |
canSeeSky(int x,
int y,
int z) |
boolean |
canSeeSky(IPos pos) |
boolean |
canSnowAt(int x,
int y,
int z,
boolean checkLight) |
boolean |
canSnowAt(IPos pos,
boolean checkLight) |
boolean |
canSnowAtBody(int x,
int y,
int z,
boolean checkLight) |
boolean |
canSnowAtBody(IPos pos,
boolean checkLight) |
void |
clearStoredData()
Remove all stored data
|
void |
clearTempData()
Removes all tempdata
|
void |
continueSounds() |
int |
countEntities(IEntity entity) |
IParticle |
createEntityParticle(java.lang.String directory)
Deprecated.
|
IItemStack |
createItem(java.lang.String id,
int damage,
int size) |
void |
explode(double x,
double y,
double z,
float range,
boolean fire,
boolean grief) |
void |
explode(IPos pos,
float range,
boolean fire,
boolean grief) |
IPlayer[] |
getAllServerPlayers() |
java.lang.String |
getBiomeName(int x,
int z) |
java.lang.String |
getBiomeName(IPos pos) |
IBlock |
getBlock(int x,
int y,
int z) |
IBlock |
getBlock(IPos pos) |
int |
getBlockLightValue(int x,
int y,
int z) |
int |
getBlockLightValue(IPos pos) |
int |
getBlockMetadata(int x,
int y,
int z) |
int |
getBlockMetadata(IPos pos) |
int |
getChunkHeightMapMinimum(int x,
int z) |
int |
getChunkHeightMapMinimum(IPos pos) |
IPlayer |
getClosestPlayer(double x,
double y,
double z,
double range) |
IPlayer |
getClosestPlayer(IPos pos,
double range) |
IPlayer |
getClosestPlayerToEntity(IEntity entity,
double range) |
IPlayer |
getClosestVulnerablePlayer(double x,
double y,
double z,
double range) |
IPlayer |
getClosestVulnerablePlayer(IPos pos,
double range) |
IPlayer |
getClosestVulnerablePlayerToEntity(IEntity entity,
double range) |
int |
getDimensionID() |
IEntity[] |
getEntitiesNear(double x,
double y,
double z,
double range) |
IEntity[] |
getEntitiesNear(IPos position,
double range) |
IEntity |
getEntityByID(int id) |
int |
getFullBlockLightValue(int x,
int y,
int z) |
int |
getFullBlockLightValue(IPos pos) |
int |
getHeightValue(int x,
int z) |
int |
getHeightValue(IPos pos) |
IEntity[] |
getLoadedEntities() |
net.minecraft.world.WorldServer |
getMCWorld() |
IPos |
getNearestAir(IPos startPos,
int maxHeight) |
IPlayer |
getPlayer(java.lang.String name) |
IPlayer |
getPlayerByUUID(java.lang.String uuid) |
java.lang.String[] |
getPlayerNames() |
IScoreboard |
getScoreboard() |
long |
getSeed() |
java.lang.String |
getSignText(int x,
int y,
int z) |
java.lang.String |
getSignText(IPos pos) |
java.lang.Object |
getStoredData(java.lang.String key) |
java.lang.Object |
getTempData(java.lang.String key) |
long |
getTime() |
IBlock |
getTopBlock(int x,
int z) |
IBlock |
getTopBlock(IPos pos) |
long |
getTotalTime() |
boolean |
hasStoredData(java.lang.String key) |
boolean |
hasTempData(java.lang.String key) |
boolean |
isBlockFreezable(int x,
int y,
int z) |
boolean |
isBlockFreezable(IPos pos) |
boolean |
isBlockFreezableNaturally(int x,
int y,
int z) |
boolean |
isBlockFreezableNaturally(IPos pos) |
boolean |
isBlockFullCube(int x,
int y,
int z) |
boolean |
isBlockFullCube(IPos pos) |
boolean |
isBlockHighHumidity(int x,
int y,
int z) |
boolean |
isBlockHighHumidity(IPos pos) |
boolean |
isDay() |
boolean |
isRaining() |
void |
pauseSounds() |
void |
playSound(int id,
ISound sound) |
void |
playSoundAtEntity(IEntity entity,
java.lang.String sound,
float volume,
float pitch) |
void |
playSoundToNearExcept(IPlayer player,
java.lang.String sound,
float volume,
float pitch) |
IBlock |
rayCastBlock(double[] startPos,
double[] lookVector,
int maxDistance) |
IBlock |
rayCastBlock(double[] startPos,
double[] lookVector,
int maxDistance,
boolean stopOnBlock,
boolean stopOnLiquid,
boolean stopOnCollision)
starting at the start position, draw a line in the lookVector direction until a block is detected
|
IBlock |
rayCastBlock(IPos startPos,
IPos lookVector,
int maxDistance) |
IBlock |
rayCastBlock(IPos startPos,
IPos lookVector,
int maxDistance,
boolean stopOnBlock,
boolean stopOnLiquid,
boolean stopOnCollision) |
IEntity[] |
rayCastEntities(double[] startPos,
double[] lookVector,
int maxDistance,
double offset,
double range) |
IEntity[] |
rayCastEntities(double[] startPos,
double[] lookVector,
int maxDistance,
double offset,
double range,
boolean stopOnBlock,
boolean stopOnLiquid,
boolean stopOnCollision) |
IEntity[] |
rayCastEntities(IPos startPos,
IPos lookVector,
int maxDistance,
double offset,
double range) |
IEntity[] |
rayCastEntities(IPos startPos,
IPos lookVector,
int maxDistance,
double offset,
double range,
boolean stopOnBlock,
boolean stopOnLiquid,
boolean stopOnCollision) |
IPos |
rayCastPos(double[] startPos,
double[] lookVector,
int maxDistance) |
IPos |
rayCastPos(double[] startPos,
double[] lookVector,
int maxDistance,
boolean stopOnBlock,
boolean stopOnLiquid,
boolean stopOnCollision) |
IPos |
rayCastPos(IPos startPos,
IPos lookVector,
int maxDistance) |
IPos |
rayCastPos(IPos startPos,
IPos lookVector,
int maxDistance,
boolean stopOnBlock,
boolean stopOnLiquid,
boolean stopOnCollision) |
void |
removeBlock(int x,
int y,
int z) |
void |
removeBlock(IPos pos) |
void |
removeStoredData(java.lang.String key) |
void |
removeTempData(java.lang.String key) |
void |
removeTileEntity(int x,
int y,
int z)
Removes the block's tile entity at the given position.
|
void |
removeTileEntity(IPos pos) |
boolean |
setBlock(int x,
int y,
int z,
IBlock block) |
boolean |
setBlock(int x,
int y,
int z,
IItemStack item) |
boolean |
setBlock(IPos pos,
IBlock block) |
boolean |
setBlock(IPos pos,
IItemStack item) |
boolean |
setBlockMetadataWithNotify(int x,
int y,
int z,
int metadata,
int flag) |
boolean |
setBlockMetadataWithNotify(IPos pos,
int metadata,
int flag) |
void |
setRaining(boolean bo) |
void |
setSpawnLocation(int x,
int y,
int z) |
void |
setSpawnLocation(IPos pos) |
void |
setStoredData(java.lang.String key,
java.lang.Object value)
Stored data persists through world restart.
|
void |
setTempData(java.lang.String key,
java.lang.Object value)
Tempdata gets cleared when the server restarts.
|
void |
setTileEntity(int x,
int y,
int z,
ITileEntity tileEntity)
Sets the block's tile entity at the given position.
|
void |
setTileEntity(IPos pos,
ITileEntity tileEntity) |
void |
setTime(long time) |
IEntity |
spawnClone(int x,
int y,
int z,
int tab,
java.lang.String name) |
IEntity |
spawnClone(int x,
int y,
int z,
int tab,
java.lang.String name,
boolean ignoreProtection)
Lets you spawn a server side cloned entity
|
IEntity |
spawnClone(IPos pos,
int tab,
java.lang.String name) |
IEntity |
spawnClone(IPos pos,
int tab,
java.lang.String name,
boolean ignoreProtection) |
boolean |
spawnEntityInWorld(IEntity entity) |
void |
spawnParticle(java.lang.String particle,
double x,
double y,
double z,
double dx,
double dy,
double dz,
double speed,
int count)
Sends a packet from the server to the client everytime its called.
|
void |
spawnParticle(java.lang.String particle,
IPos pos,
double dx,
double dy,
double dz,
double speed,
int count) |
void |
stopSound(int id) |
void |
stopSounds() |
void |
thunderStrike(double x,
double y,
double z) |
void |
thunderStrike(IPos pos) |
long getTime()
long getTotalTime()
boolean areAllPlayersAsleep()
IBlock getBlock(int x, int y, int z)
x - World position xy - World position yz - World position zIBlock getBlock(IPos pos)
pos - IBlock getTopBlock(int x, int z)
boolean isBlockFreezable(IPos pos)
boolean isBlockFreezable(int x,
int y,
int z)
boolean isBlockFreezableNaturally(IPos pos)
boolean isBlockFreezableNaturally(int x,
int y,
int z)
boolean canBlockFreeze(IPos pos, boolean adjacentToWater)
boolean canBlockFreeze(int x,
int y,
int z,
boolean adjacentToWater)
boolean canBlockFreezeBody(IPos pos, boolean adjacentToWater)
boolean canBlockFreezeBody(int x,
int y,
int z,
boolean adjacentToWater)
boolean canSnowAt(IPos pos, boolean checkLight)
boolean canSnowAt(int x,
int y,
int z,
boolean checkLight)
boolean canSnowAtBody(IPos pos, boolean checkLight)
boolean canSnowAtBody(int x,
int y,
int z,
boolean checkLight)
int getHeightValue(int x,
int z)
int getHeightValue(IPos pos)
int getChunkHeightMapMinimum(int x,
int z)
int getChunkHeightMapMinimum(IPos pos)
int getBlockMetadata(int x,
int y,
int z)
int getBlockMetadata(IPos pos)
boolean setBlockMetadataWithNotify(int x,
int y,
int z,
int metadata,
int flag)
boolean setBlockMetadataWithNotify(IPos pos, int metadata, int flag)
boolean canSeeSky(int x,
int y,
int z)
x - y - z - boolean canSeeSky(IPos pos)
pos - int getFullBlockLightValue(int x,
int y,
int z)
int getFullBlockLightValue(IPos pos)
int getBlockLightValue(int x,
int y,
int z)
int getBlockLightValue(IPos pos)
void playSoundAtEntity(IEntity entity, java.lang.String sound, float volume, float pitch)
void playSoundToNearExcept(IPlayer player, java.lang.String sound, float volume, float pitch)
void playSound(int id,
ISound sound)
void stopSound(int id)
void pauseSounds()
void continueSounds()
void stopSounds()
IEntity getEntityByID(int id)
boolean spawnEntityInWorld(IEntity entity)
IPlayer getClosestPlayer(double x, double y, double z, double range)
IPlayer getClosestVulnerablePlayerToEntity(IEntity entity, double range)
IPlayer getClosestVulnerablePlayer(double x, double y, double z, double range)
int countEntities(IEntity entity)
entity - The entity whose type will be used as a parameterIEntity[] getLoadedEntities()
IEntity[] getEntitiesNear(double x, double y, double z, double range)
void setTileEntity(int x,
int y,
int z,
ITileEntity tileEntity)
void setTileEntity(IPos pos, ITileEntity tileEntity)
void removeTileEntity(int x,
int y,
int z)
void removeTileEntity(IPos pos)
boolean isBlockFullCube(int x,
int y,
int z)
boolean isBlockFullCube(IPos pos)
long getSeed()
void setSpawnLocation(int x,
int y,
int z)
void setSpawnLocation(IPos pos)
boolean canLightningStrikeAt(int x,
int y,
int z)
boolean canLightningStrikeAt(IPos pos)
boolean isBlockHighHumidity(int x,
int y,
int z)
boolean isBlockHighHumidity(IPos pos)
java.lang.String getSignText(int x,
int y,
int z)
x - World position xy - World position yz - World position zjava.lang.String getSignText(IPos pos)
boolean setBlock(int x,
int y,
int z,
IItemStack item)
x - World position xy - World position yz - World position zitem - The block to be setboolean setBlock(IPos pos, IItemStack item)
boolean setBlock(int x,
int y,
int z,
IBlock block)
x - World position xy - World position yz - World position zblock - The block to be setvoid removeBlock(int x,
int y,
int z)
x - World position xy - World position yz - World position zvoid removeBlock(IPos pos)
IPos rayCastPos(double[] startPos, double[] lookVector, int maxDistance, boolean stopOnBlock, boolean stopOnLiquid, boolean stopOnCollision)
IPos rayCastPos(double[] startPos, double[] lookVector, int maxDistance)
IPos rayCastPos(IPos startPos, IPos lookVector, int maxDistance, boolean stopOnBlock, boolean stopOnLiquid, boolean stopOnCollision)
IBlock rayCastBlock(double[] startPos, double[] lookVector, int maxDistance, boolean stopOnBlock, boolean stopOnLiquid, boolean stopOnCollision)
startPos - lookVector - should be a normalized direction vectormaxDistance - IBlock rayCastBlock(double[] startPos, double[] lookVector, int maxDistance)
IBlock rayCastBlock(IPos startPos, IPos lookVector, int maxDistance, boolean stopOnBlock, boolean stopOnLiquid, boolean stopOnCollision)
IPos getNearestAir(IPos startPos, int maxHeight)
startPos - maxHeight - IEntity[] rayCastEntities(double[] startPos, double[] lookVector, int maxDistance, double offset, double range, boolean stopOnBlock, boolean stopOnLiquid, boolean stopOnCollision)
IEntity[] rayCastEntities(IPos startPos, IPos lookVector, int maxDistance, double offset, double range, boolean stopOnBlock, boolean stopOnLiquid, boolean stopOnCollision)
IEntity[] rayCastEntities(double[] startPos, double[] lookVector, int maxDistance, double offset, double range)
IEntity[] rayCastEntities(IPos startPos, IPos lookVector, int maxDistance, double offset, double range)
IPlayer getPlayer(java.lang.String name)
name - The name of the player to be returnedIPlayer getPlayerByUUID(java.lang.String uuid)
void setTime(long time)
time - The world time to be setboolean isDay()
boolean isRaining()
void setRaining(boolean bo)
bo - Set if it's rainingvoid thunderStrike(double x,
double y,
double z)
x - The x positiony - The y positionz - The z positionvoid thunderStrike(IPos pos)
void spawnParticle(java.lang.String particle,
double x,
double y,
double z,
double dx,
double dy,
double dz,
double speed,
int count)
particle - Particle name. Particle name list: http://minecraft.gamepedia.com/Particlesx - The x positiony - The y positionz - The z positiondx - Usually used for the x motiondy - Usually used for the y motiondz - Usually used for the z motionspeed - Speed of the particles, usually between 0 and 1count - Particle countvoid spawnParticle(java.lang.String particle,
IPos pos,
double dx,
double dy,
double dz,
double speed,
int count)
IItemStack createItem(java.lang.String id, int damage, int size)
id - The items namedamage - The damage valuesize - The number of items in the item@Deprecated IParticle createEntityParticle(java.lang.String directory)
directory - The particle's texture directory. Use only forward slashes when writing a directory. Example: "customnpcs:textures/particle/tail.png"java.lang.Object getTempData(java.lang.String key)
key - Get temp data for this keyvoid setTempData(java.lang.String key,
java.lang.Object value)
key - The key for the data storedvalue - The data storedboolean hasTempData(java.lang.String key)
key - The key thats going to be tested against the temp datavoid removeTempData(java.lang.String key)
key - The key for the temp data to be removedvoid clearTempData()
java.lang.Object getStoredData(java.lang.String key)
key - The key of the data to be returnedvoid setStoredData(java.lang.String key,
java.lang.Object value)
key - The key for the data storedvalue - The data stored. This data can be either a Number or a String. Other data is not storedboolean hasStoredData(java.lang.String key)
key - The key of the data to be checkedvoid removeStoredData(java.lang.String key)
key - The key of the data to be removedvoid clearStoredData()
void explode(double x,
double y,
double z,
float range,
boolean fire,
boolean grief)
x - Position xy - Position yz - Position zrange - Range of the explosionfire - Whether or not the explosion does fire damagegrief - Whether or not the explosion does damage to blocksvoid explode(IPos pos, float range, boolean fire, boolean grief)
IPlayer[] getAllServerPlayers()
java.lang.String[] getPlayerNames()
java.lang.String getBiomeName(int x,
int z)
x - Position xz - Position zjava.lang.String getBiomeName(IPos pos)
IEntity spawnClone(int x, int y, int z, int tab, java.lang.String name, boolean ignoreProtection)
x - The x position the clone will be spawned aty - The y position the clone will be spawned atz - The z position the clone will be spawned attab - The tab in which the clone isname - Name of the cloned entityignoreProtection - Whether the spawning of this clone skips protection checks.IEntity spawnClone(int x, int y, int z, int tab, java.lang.String name)
IScoreboard getScoreboard()
net.minecraft.world.WorldServer getMCWorld()
int getDimensionID()