public interface IWorld
| Modifier and Type | Method and Description |
|---|---|
boolean |
areAllPlayersAsleep() |
boolean |
canBlockFreeze(int x,
int y,
int z,
boolean adjacentToWater) |
boolean |
canBlockFreezeBody(int x,
int y,
int z,
boolean adjacentToWater) |
boolean |
canBlockSeeTheSky(int x,
int y,
int z) |
boolean |
canLightningStrikeAt(int x,
int y,
int z) |
boolean |
canSeeSky(int x,
int y,
int z) |
boolean |
canSeeSky(IPos pos) |
boolean |
canSnowAt(int x,
int y,
int z,
boolean checkLight) |
boolean |
canSnowAtBody(int x,
int y,
int z,
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) |
IPlayer[] |
getAllServerPlayers() |
java.lang.String |
getBiomeName(int x,
int z) |
IBlock |
getBlock(int x,
int y,
int z) |
IBlock |
getBlock(IPos pos) |
int |
getBlockLightValue(int x,
int y,
int z) |
int |
getBlockMetadata(int x,
int y,
int z) |
int |
getChunkHeightMapMinimum(int x,
int z) |
IPlayer |
getClosestPlayer(double x,
double y,
double z,
double range) |
IPlayer |
getClosestPlayerToEntity(IEntity entity,
double range) |
IPlayer |
getClosestVulnerablePlayer(double x,
double y,
double z,
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 |
getHeightValue(int x,
int z) |
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() |
noppes.npcs.scripted.scoreboard.ScriptScoreboard |
getScoreboard() |
long |
getSeed() |
java.lang.String |
getSignText(int x,
int y,
int z) |
java.lang.Object |
getStoredData(java.lang.String key) |
java.lang.Object |
getTempData(java.lang.String key) |
long |
getTime() |
IBlock |
getTopBlock(int x,
int z) |
long |
getTotalTime() |
boolean |
hasStoredData(java.lang.String key) |
boolean |
hasTempData(java.lang.String key) |
boolean |
isBlockFreezable(int x,
int y,
int z) |
boolean |
isBlockFreezableNaturally(int x,
int y,
int z) |
boolean |
isBlockFullCube(int x,
int y,
int z) |
boolean |
isBlockHighHumidity(int x,
int y,
int z) |
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 |
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 |
setBlock(int x,
int y,
int z,
IBlock block) |
void |
setBlock(int x,
int y,
int z,
IItemStack item) |
boolean |
setBlockMetadataWithNotify(int x,
int y,
int z,
int metadata,
int flag) |
void |
setRaining(boolean bo) |
void |
setSpawnLocation(int x,
int y,
int z) |
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 |
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
|
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 |
stopSound(int id) |
void |
stopSounds() |
void |
thunderStrike(double x,
double y,
double z) |
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(int x,
int y,
int z)
boolean isBlockFreezableNaturally(int x,
int y,
int z)
boolean canBlockFreeze(int x,
int y,
int z,
boolean adjacentToWater)
boolean canBlockFreezeBody(int x,
int y,
int z,
boolean adjacentToWater)
boolean canSnowAt(int x,
int y,
int z,
boolean checkLight)
boolean canSnowAtBody(int x,
int y,
int z,
boolean checkLight)
int getHeightValue(int x,
int z)
int getChunkHeightMapMinimum(int x,
int z)
int getBlockMetadata(int x,
int y,
int z)
boolean setBlockMetadataWithNotify(int x,
int y,
int z,
int metadata,
int flag)
boolean canBlockSeeTheSky(int x,
int y,
int z)
int getFullBlockLightValue(int x,
int y,
int z)
int getBlockLightValue(int x,
int y,
int z)
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 removeTileEntity(int x,
int y,
int z)
boolean isBlockFullCube(int x,
int y,
int z)
long getSeed()
void setSpawnLocation(int x,
int y,
int z)
boolean canLightningStrikeAt(int x,
int y,
int z)
boolean isBlockHighHumidity(int x,
int y,
int z)
java.lang.String getSignText(int x,
int y,
int z)
x - World position xy - World position yz - World position zvoid setBlock(int x,
int y,
int z,
IItemStack item)
x - World position xy - World position yz - World position zitem - The block to be setvoid 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 zIPos 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)
boolean canSeeSky(int x,
int y,
int z)
x - y - z - boolean canSeeSky(IPos pos)
pos - 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 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 countIItemStack 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 blocksIPlayer[] getAllServerPlayers()
java.lang.String[] getPlayerNames()
java.lang.String getBiomeName(int x,
int z)
x - Position xz - Position zIEntity 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)
noppes.npcs.scripted.scoreboard.ScriptScoreboard getScoreboard()
net.minecraft.world.WorldServer getMCWorld()
int getDimensionID()