public class ScriptableWorld
extends java.lang.Object
| Constructor and Description |
|---|
ScriptableWorld(net.minecraft.world.World world) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEnchantment(int x,
int y,
int z,
int slotId,
int id,
int level)
Adds an enchantment to the itemstack in the given container slot
|
void |
addEnchantment(ScriptablePosition position,
int slotId,
int id,
int level)
Adds an enchantment to the itemstack in the given container slot
|
int |
addToContainer(int x,
int y,
int z,
int id,
int count,
int metadata)
Adds items to a container if there's space for them.
|
int |
addToContainer(ScriptablePosition position,
int id,
int count,
int metadata)
Adds items to a container if there's space for them.
|
int |
addToContainerSlot(int x,
int y,
int z,
int slotId,
int count)
Adds items to a container slot if it isn't empty
|
int |
addToContainerSlot(ScriptablePosition position,
int slotId,
int count)
Adds items to a container slot if it isn't empty
|
void |
clearContainer(int x,
int y,
int z)
Clears a container
|
void |
clearContainer(ScriptablePosition position)
Clears a container
|
void |
clearContainerSlot(int x,
int y,
int z,
int slotId)
Clears a container slot
|
void |
clearContainerSlot(ScriptablePosition position,
int slotId)
Clears a container slot
|
void |
clearEnchantments(int x,
int y,
int z,
int slotId)
Removes all enchantments from the itemstack in the given container slot
|
void |
clearEnchantments(ScriptablePosition position,
int slotId)
Removes all enchantments from the itemstack in the given container slot
|
int |
countEntities(int x,
int y,
int z,
float radius,
java.lang.String entities)
Gets the amount of entities within the given cube with the given radius.
|
int |
countEntities(ScriptablePosition pos,
float radius,
java.lang.String entities)
Gets the amount of entities within the given cube with the given radius.
|
void |
createExplosion(double x,
double y,
double z,
float strength,
boolean flaming)
Creates a explosion
|
void |
createExplosion(ScriptablePosition position,
float strength,
boolean flaming)
Creates a explosion
|
void |
createThunderbolt(double x,
double y,
double z)
Creates a thunderbolt
|
void |
createThunderbolt(ScriptablePosition position)
Creates a thunderbolt
|
void |
damageItem(int x,
int y,
int z,
int slotId,
int count)
Damages an item in a container slot
|
void |
damageItem(ScriptablePosition position,
int slotId,
int count)
Damages an item in a container slot
|
int |
fillContainer(int x,
int y,
int z,
int id,
int metadata)
Fills a container.
|
int |
fillContainer(ScriptablePosition position,
int id,
int metadata)
Fills a container.
|
int |
fillContainerSlot(int x,
int y,
int z,
int slotId)
Fills a container slot if it isn't empty
|
int |
fillContainerSlot(ScriptablePosition position,
int slotId)
Fills a container slot if it isn't empty
|
java.lang.String |
getBiome(int x,
int y,
int z)
Gets the biome
|
java.lang.String |
getBiome(ScriptablePosition position)
Gets the biome
|
int |
getBlockId(int x,
int y,
int z)
Gets the block id
|
int |
getBlockId(ScriptablePosition position)
Gets the block id
|
int |
getBlockLightLevel(int x,
int y,
int z)
Gets the light level of the block at the given position.
|
int |
getBlockLightLevel(ScriptablePosition position)
Gets the light level of the block at the given position.
|
int |
getBlockMetadata(int x,
int y,
int z)
Gets the block's damage value
|
int |
getBlockMetadata(ScriptablePosition position)
Gets the block's damage value
|
java.lang.String |
getBlockType(int x,
int y,
int z)
Gets the type of the block with the given id.
|
java.lang.String |
getBlockType(ScriptablePosition position)
Gets the type of the block with the given id.
|
int |
getContainerItemCount(int x,
int y,
int z,
int id,
int metadata)
Gets the count of a item in a container
|
int |
getContainerItemCount(ScriptablePosition position,
int id,
int metadata)
Gets the count of a item in a container
|
int |
getContainerSlotId(int x,
int y,
int z,
int slotId)
Gets the id of an item in a slot of a container
|
int |
getContainerSlotId(ScriptablePosition position,
int slotId)
Gets the id of an item in a slot of a container
|
int |
getContainerSlotMaxStackSize(int x,
int y,
int z,
int slotId)
Gets the maximum stack size of an item in a slot of a container.
|
int |
getContainerSlotMaxStackSize(ScriptablePosition position,
int slotId)
Gets the maximum stack size of an item in a slot of a container.
|
int |
getContainerSlotMetadata(int x,
int y,
int z,
int slotId)
Gets the damage value of an item in a slot of a container
|
int |
getContainerSlotMetadata(ScriptablePosition position,
int slotId)
Gets the damage value of an item in a slot of a container
|
int |
getContainerSlotStackSize(int x,
int y,
int z,
int slotId)
Gets the stack size of an item in a slot of a container
|
int |
getContainerSlotStackSize(ScriptablePosition position,
int slotId)
Gets the stack size of an item in a slot of a container
|
int |
getStackIntData(int x,
int y,
int z,
int slotId,
java.lang.String name)
Gets the int data of an itemstack in the given container slot
|
int |
getStackIntData(ScriptablePosition position,
int slotId,
java.lang.String name)
Gets the int data of an itemstack in the given container slot
|
java.lang.String |
getStackStringData(int x,
int y,
int z,
int slotId,
java.lang.String name)
Gets the string data of an itemstack in the given container slot
|
java.lang.String |
getStackStringData(ScriptablePosition position,
int slotId,
java.lang.String name)
Gets the string data of an itemstack in the given container slot
|
float |
getTileEntityFloatData(int x,
int y,
int z,
java.lang.String name)
Gets the tile entity's float data
|
float |
getTileEntityFloatData(ScriptablePosition pos,
java.lang.String name)
Gets the tile entity's float data
|
int |
getTileEntityIntData(int x,
int y,
int z,
int index)
Only use this if you've used it in previous versions and not for new data!
|
int |
getTileEntityIntData(int x,
int y,
int z,
java.lang.String name)
Gets the tile entity's int data
|
int |
getTileEntityIntData(ScriptablePosition pos,
int index)
Only use this if you've used it in previous versions and not for new data!
|
int |
getTileEntityIntData(ScriptablePosition pos,
java.lang.String name)
Gets the tile entity's int data
|
java.lang.String |
getTileEntityStringData(int x,
int y,
int z,
int index)
Only use this if you've used it in previous versions and not for new data!
|
java.lang.String |
getTileEntityStringData(int x,
int y,
int z,
java.lang.String name)
Gets the tile entity's string data
|
java.lang.String |
getTileEntityStringData(ScriptablePosition pos,
int index)
Only use this if you've used it in previous versions and not for new data!
|
java.lang.String |
getTileEntityStringData(ScriptablePosition pos,
java.lang.String name)
Gets the tile entity's string data
|
long |
getTime()
Gets the world time
|
void |
harvestBlock(int x,
int y,
int z)
Harvests a block
|
void |
harvestBlock(ScriptablePosition position)
Harvests a block
|
boolean |
hasEnchantment(int x,
int y,
int z,
int slotId)
Checks if the itemstack in the fiven container slot has any enchantment
|
boolean |
hasEnchantment(int x,
int y,
int z,
int slotId,
int id)
Checks if the itemstack in the given container slot has the given enchantment
|
boolean |
hasEnchantment(int x,
int y,
int z,
int slotId,
int id,
int level)
Checks if the itemstack in the given container slot has the given enchantment with the given level
|
boolean |
hasEnchantment(ScriptablePosition position,
int slotId)
Checks if the itemstack in the given container slot has any enchantment
|
boolean |
hasEnchantment(ScriptablePosition position,
int slotId,
int id)
Checks if the itemstack in the given container slot has the given enchantment
|
boolean |
hasEnchantment(ScriptablePosition position,
int slotId,
int id,
int level)
Checks if the itemstack in the given container slot has the given enchantment with the given level
|
boolean |
isFuelInContainerSlot(int x,
int y,
int z,
int slot) |
boolean |
isFuelInContainerSlot(ScriptablePosition position,
int slot) |
void |
removeEnchantment(int x,
int y,
int z,
int slotId,
int id)
Removes an enchantment from the itemstack in the given container slot
|
void |
removeEnchantment(ScriptablePosition position,
int slotId,
int id)
Removes an enchantment from the itemstack in the given container slot
|
int |
removeFromContainer(int x,
int y,
int z,
int id,
int count,
int metadata)
Removes items from a container
|
int |
removeFromContainer(ScriptablePosition position,
int id,
int count,
int metadata)
Removes items from a container
|
int |
removeFromContainerSlot(int x,
int y,
int z,
int slotId,
int count)
Removes items from a container slot
|
int |
removeFromContainerSlot(ScriptablePosition position,
int slotId,
int count)
Removes items from a container slot
|
void |
repairItem(int x,
int y,
int z,
int slotId)
Fully repairs an item in a container slot
|
void |
repairItem(int x,
int y,
int z,
int slotId,
int count)
Repairs an item in a container slot
|
void |
repairItem(ScriptablePosition position,
int slotId)
Fully repairs an item in a container slot
|
void |
repairItem(ScriptablePosition position,
int slotId,
int count)
Repairs an item in a container slot
|
void |
sendMessageToAllPlayers(java.lang.String message)
Sends a chat message to all players in the world.
|
void |
sendMessageToPlayer(java.lang.String player,
java.lang.String message)
Sends a chat message to the given player.
|
void |
setBlockId(int x,
int y,
int z,
int id)
Sets the id of the block at the given coordinates
|
void |
setBlockId(ScriptablePosition position,
int id)
Sets the id of the block at the given position
|
void |
setBlockIdAndMetadata(int x,
int y,
int z,
int id,
int metadata)
Sets the id and damage value of a block
|
void |
setBlockIdAndMetadata(ScriptablePosition position,
int id,
int metadata)
Sets the id and damage value of a block
|
void |
setBlockMetadata(int x,
int y,
int z,
int metadata)
Sets the damage value of a block
|
void |
setBlockMetadata(ScriptablePosition position,
int metadata)
Sets the damage value of a block
|
int |
setContainerSlot(int x,
int y,
int z,
int slotId,
int id,
int count,
int metadata)
Sets a container slot
|
int |
setContainerSlot(ScriptablePosition position,
int slotId,
int id,
int count,
int metadata)
Sets a container slot
|
void |
setMod(cubex2.cs2core.Mod mod) |
void |
setStackIntData(int x,
int y,
int z,
int slotId,
java.lang.String name,
int data)
Sets the int data of an itemstack in the given container slot
|
void |
setStackIntData(ScriptablePosition position,
int slotId,
java.lang.String name,
int data)
Sets the int data of an itemstack in the given container slot
|
void |
setStackStringData(int x,
int y,
int z,
int slotId,
java.lang.String name,
java.lang.String data)
Sets the string data of an itemstack in the given container slot
|
void |
setStackStringData(ScriptablePosition position,
int slotId,
java.lang.String name,
java.lang.String data)
Sets the string data of an itemstack in the given container slot
|
void |
setTileEntityFloatData(int x,
int y,
int z,
java.lang.String name,
float data)
Sets the tile entity's float data.
|
void |
setTileEntityFloatData(ScriptablePosition pos,
java.lang.String name,
float data)
Sets the tile entity's float data
|
void |
setTileEntityIntData(int x,
int y,
int z,
int index,
int data)
Only use this if you've used it in previous versions and not for new data!
|
void |
setTileEntityIntData(int x,
int y,
int z,
java.lang.String name,
int data)
Sets the tile entity's int data.
|
void |
setTileEntityIntData(ScriptablePosition pos,
int index,
int data)
Only use this if you've used it in previous versions and not for new data!
|
void |
setTileEntityIntData(ScriptablePosition pos,
java.lang.String name,
int data)
Sets the tile entity's int data
|
void |
setTileEntityStringData(int x,
int y,
int z,
int index,
java.lang.String data)
Only use this if you've used it in previous versions and not for new data!
|
void |
setTileEntityStringData(int x,
int y,
int z,
java.lang.String name,
java.lang.String data)
Sets the tile entity's string data.
|
void |
setTileEntityStringData(ScriptablePosition pos,
int index,
java.lang.String data)
Only use this if you've used it in previous versions and not for new data!
|
void |
setTileEntityStringData(ScriptablePosition pos,
java.lang.String name,
java.lang.String data)
Sets the tile entity's string data
|
void |
setTime(long time)
Sets the time
|
void |
setWeather(java.lang.String weather,
int duration)
Sets the weather
|
void |
shear(int x,
int y,
int z)
Shears a block if it can be sheared.
|
void |
shear(ScriptablePosition position)
Shears a block if it can be sheared.
|
void |
spawnItem(double x,
double y,
double z,
int id,
int count,
int damage)
Spawns an item
|
void |
spawnItem(ScriptablePosition position,
int id,
int count,
int damage)
Spawns an item
|
void |
spawnMob(double x,
double y,
double z,
java.lang.String name)
Spawns a mob
|
void |
spawnMob(ScriptablePosition position,
java.lang.String name)
Spawns a mob
|
public void setMod(cubex2.cs2core.Mod mod)
public void setBlockId(ScriptablePosition position, int id)
position - The positionid - The id of the blockpublic void setBlockId(int x,
int y,
int z,
int id)
x - The x coordinatey - The y coordinatez - The z coordinateid - The id of the blockpublic void setBlockMetadata(ScriptablePosition position, int metadata)
position - The positionmetadata - The damage value of the blockpublic void setBlockMetadata(int x,
int y,
int z,
int metadata)
x - The x coordinatey - The y coordinatez - The z coordinatemetadata - The damage value of the blockpublic void setBlockIdAndMetadata(ScriptablePosition position, int id, int metadata)
position - The positionid - The block's idmetadata - The block's damage valuepublic void setBlockIdAndMetadata(int x,
int y,
int z,
int id,
int metadata)
x - The x coordinatey - The y coordinatez - The z coordinateid - The block's idmetadata - The block's damage valuepublic void harvestBlock(ScriptablePosition position)
position - The positionpublic void harvestBlock(int x,
int y,
int z)
x - The x coordinatey - The y coordinatez - The z coordinatepublic void setTime(long time)
time - The timepublic long getTime()
public void createExplosion(ScriptablePosition position, float strength, boolean flaming)
position - The positionstrength - The strength of the explosionflaming - True if the explosion is a flaming explosionpublic void createExplosion(double x,
double y,
double z,
float strength,
boolean flaming)
x - The x coordinatey - The y coordinatez - The z coordinatestrength - The strength of the explosionflaming - True if the explosion is a flaming explosionpublic void createThunderbolt(ScriptablePosition position)
position - The positionpublic void createThunderbolt(double x,
double y,
double z)
x - The x coordinatey - The y coordinatez - The z coordinatepublic void spawnMob(ScriptablePosition position, java.lang.String name)
position - The positionname - The name of the mobpublic void spawnMob(double x,
double y,
double z,
java.lang.String name)
x - The x coordinatey - The y coordinatez - The z coordinatename - The name of the mobpublic void spawnItem(ScriptablePosition position, int id, int count, int damage)
position - The positionid - The item's idcount - The item's stack sizedamage - The item's damage valuepublic void spawnItem(double x,
double y,
double z,
int id,
int count,
int damage)
x - The x coordinatey - The y coordinatez - The z coordinateid - The item's idcount - The item's stack sizedamage - The item's damage valuepublic void setWeather(java.lang.String weather,
int duration)
weather - sun, rain or thunderingduration - The durationpublic int fillContainer(ScriptablePosition position, int id, int metadata)
position - The positionid - The item's idmetadata - The item's damage valuepublic int fillContainer(int x,
int y,
int z,
int id,
int metadata)
x - The x coordinatey - The y coordinatez - The z coordinateid - The item's idmetadata - The item's damage valuepublic void clearContainer(ScriptablePosition position)
position - The positionpublic void clearContainer(int x,
int y,
int z)
x - The x coordinatey - The y coordinatez - The z coordinatepublic int addToContainer(ScriptablePosition position, int id, int count, int metadata)
position - The positionid - The item's idcount - The item's stack sizemetadata - The item's damage valuepublic int addToContainer(int x,
int y,
int z,
int id,
int count,
int metadata)
x - The x coordinatey - The y coordinatez - The z coordinateid - The item's idcount - The item's stack sizemetadata - The item's damage valuepublic int removeFromContainer(ScriptablePosition position, int id, int count, int metadata)
position - The positionid - The item's idcount - The item's stack sizemetadata - The item's damage valuepublic int removeFromContainer(int x,
int y,
int z,
int id,
int count,
int metadata)
x - The x coordinatey - The y coordinatez - The z coordinateid - The item's idcount - The item's stack sizemetadata - The item's damage valuepublic void clearContainerSlot(ScriptablePosition position, int slotId)
position - The positionslotId - The slot's idpublic void clearContainerSlot(int x,
int y,
int z,
int slotId)
x - The x coordinatey - The y coordinatez - The z coordinateslotId - The slot's idpublic int fillContainerSlot(ScriptablePosition position, int slotId)
position - The positionslotId - The slot's idpublic int fillContainerSlot(int x,
int y,
int z,
int slotId)
x - The x coordinatey - The y coordinatez - The z coordinateslotId - The slot's idpublic int setContainerSlot(ScriptablePosition position, int slotId, int id, int count, int metadata)
position - The positionslotId - The slot's idid - The item's idcount - The item's stack sizemetadata - The item's damage valuepublic int setContainerSlot(int x,
int y,
int z,
int slotId,
int id,
int count,
int metadata)
x - The x coordinatey - The y coordinatez - The z coordinateslotId - The slot's idid - The item's idcount - The item's stack sizemetadata - The item's damage valuepublic int removeFromContainerSlot(ScriptablePosition position, int slotId, int count)
position - The positionslotId - The slot's idcount - The count of items to removepublic int removeFromContainerSlot(int x,
int y,
int z,
int slotId,
int count)
x - The x coordinatey - The y coordinatez - The z coordinateslotId - The slot's idcount - The count of items to removepublic int addToContainerSlot(ScriptablePosition position, int slotId, int count)
position - The positionslotId - The slot's idcount - The count to addpublic int addToContainerSlot(int x,
int y,
int z,
int slotId,
int count)
x - The x coordinatey - The y coordinatez - The z coordinateslotId - The slot's idcount - The count to addpublic void damageItem(ScriptablePosition position, int slotId, int count)
position - The positionslotId - The slot's idcount - The damage to add to the itempublic void damageItem(int x,
int y,
int z,
int slotId,
int count)
x - The x coordinatey - The y coordinatez - The z coordinateslotId - The slot's idcount - The damage to add to the itempublic void repairItem(ScriptablePosition position, int slotId)
position - The positionslotId - The slot's idpublic void repairItem(int x,
int y,
int z,
int slotId)
x - The x coordinatey - The y coordinatez - The z coordinateslotId - The slot's idpublic void repairItem(ScriptablePosition position, int slotId, int count)
position - The positionslotId - The slot's idcount - The damage to remove from the itempublic void repairItem(int x,
int y,
int z,
int slotId,
int count)
x - The x coordinatey - The y coordinatez - The z coordinateslotId - The slot's idcount - The damage to remove from the itempublic boolean hasEnchantment(ScriptablePosition position, int slotId)
position - The positionslotId - The slot's idpublic boolean hasEnchantment(int x,
int y,
int z,
int slotId)
x - The x coordinatey - The y coordinatez - The z coordinateslotId - The slot's idpublic boolean hasEnchantment(ScriptablePosition position, int slotId, int id)
position - The positionslotId - The slot's idid - The id of the enchantmentpublic boolean hasEnchantment(int x,
int y,
int z,
int slotId,
int id)
x - The x coordinatey - The y coordinatez - The z coordinateslotId - The slot's idid - The id of the enchantmentpublic boolean hasEnchantment(ScriptablePosition position, int slotId, int id, int level)
position - The positionslotId - The slot's idid - The id of the enchantmentlevel - The level of the enchantmentpublic boolean hasEnchantment(int x,
int y,
int z,
int slotId,
int id,
int level)
x - The x coordinatey - The y coordinatez - The z coordinateslotId - The slot's idid - The id of the enchantmentlevel - The level of the enchantmentpublic void clearEnchantments(ScriptablePosition position, int slotId)
position - The positionslotId - The slot's idpublic void clearEnchantments(int x,
int y,
int z,
int slotId)
x - The x coordinatey - The y coordinatez - The z coordinateslotId - The slot's idpublic void addEnchantment(ScriptablePosition position, int slotId, int id, int level)
position - The positionslotId - The slot's idid - The id of the enchantmentlevel - The level of the enchantmentpublic void addEnchantment(int x,
int y,
int z,
int slotId,
int id,
int level)
x - The x coordinatey - The y coordinatez - The z coordinateslotId - The slot's idid - The id of the enchantmentlevel - The level of the enchantmentpublic void removeEnchantment(ScriptablePosition position, int slotId, int id)
position - The positionslotId - The slot's idid - The id of the enchantmentpublic void removeEnchantment(int x,
int y,
int z,
int slotId,
int id)
x - The x coordinatey - The y coordinatez - The z coordinateslotId - The slot's idid - The id of the enchantmentpublic int getStackIntData(ScriptablePosition position, int slotId, java.lang.String name)
position - The positionslotId - The slot's idname - The data's namepublic int getStackIntData(int x,
int y,
int z,
int slotId,
java.lang.String name)
x - The x coordinatey - The y coordinatez - The z coordinateslotId - The slot's idname - The data's namepublic java.lang.String getStackStringData(ScriptablePosition position, int slotId, java.lang.String name)
position - The positionslotId - The slot's idname - The data's namepublic java.lang.String getStackStringData(int x,
int y,
int z,
int slotId,
java.lang.String name)
x - The x coordinatey - The y coordinatez - The z coordinateslotId - The slot's idname - The data's namepublic void setStackIntData(ScriptablePosition position, int slotId, java.lang.String name, int data)
position - The positionslotId - The slot's idname - The data's namedata - The datapublic void setStackIntData(int x,
int y,
int z,
int slotId,
java.lang.String name,
int data)
x - The x coordinatey - The y coordinatez - The z coordinateslotId - The slot's idname - The data's namedata - The datapublic void setStackStringData(ScriptablePosition position, int slotId, java.lang.String name, java.lang.String data)
position - The positionslotId - The slot's idname - The data's namedata - The datapublic void setStackStringData(int x,
int y,
int z,
int slotId,
java.lang.String name,
java.lang.String data)
x - The x coordinatey - The y coordinatez - The z coordinateslotId - The slot's idname - The data's namedata - The datapublic int getBlockId(ScriptablePosition position)
position - The positionpublic int getBlockId(int x,
int y,
int z)
x - The x coordinatey - The y coordinatez - The z coordinatepublic int getBlockMetadata(ScriptablePosition position)
position - The positionpublic int getBlockMetadata(int x,
int y,
int z)
x - The x coordinatey - The y coordinatez - The z coordinatepublic int getContainerSlotId(ScriptablePosition position, int slotId)
position - The positionslotId - The slot's idpublic int getContainerSlotId(int x,
int y,
int z,
int slotId)
x - The x coordinatey - The y coordinatez - The z coordinateslotId - public int getContainerSlotMetadata(ScriptablePosition position, int slotId)
position - The positionslotId - The slot's idpublic int getContainerSlotMetadata(int x,
int y,
int z,
int slotId)
x - The x coordinatey - The y coordinatez - The z coordinateslotId - The slot's idpublic int getContainerSlotStackSize(ScriptablePosition position, int slotId)
position - The positionslotId - The slot's idpublic int getContainerSlotStackSize(int x,
int y,
int z,
int slotId)
x - The x coordinatey - The y coordinatez - The z coordinateslotId - slotId The slot's idpublic int getContainerSlotMaxStackSize(ScriptablePosition position, int slotId)
position - The positionslotId - The slot's idpublic int getContainerSlotMaxStackSize(int x,
int y,
int z,
int slotId)
x - The x coordinatey - The y coordinatez - The z coordinateslotId - slotId The slot's idpublic int getContainerItemCount(ScriptablePosition position, int id, int metadata)
position - The positionid - The item's idmetadata - The item's damage valuepublic int getContainerItemCount(int x,
int y,
int z,
int id,
int metadata)
x - The x coordinatey - The y coordinatez - The z coordinateid - The item's idmetadata - The item's damage valuepublic boolean isFuelInContainerSlot(ScriptablePosition position, int slot)
position - The positionslot - The slot's idpublic boolean isFuelInContainerSlot(int x,
int y,
int z,
int slot)
x - The x coordinatey - The y coordinatez - The z coordinateslot - The slot's idpublic java.lang.String getBiome(ScriptablePosition position)
position - The positionpublic java.lang.String getBiome(int x,
int y,
int z)
x - The x coordinatey - The y coordinatez - The z coordinatepublic void shear(ScriptablePosition position)
position - The positionpublic void shear(int x,
int y,
int z)
x - The x coordinatey - The y coordinatez - The z coordinatepublic int getTileEntityIntData(ScriptablePosition pos, java.lang.String name)
pos - The positionname - The data's namepublic int getTileEntityIntData(int x,
int y,
int z,
java.lang.String name)
x - The x-coordinatey - The y-coordinatez - The z-coordinatename - The data's namepublic int getTileEntityIntData(ScriptablePosition pos, int index)
pos - positionindex - The index to read the data from (0 to 15)public int getTileEntityIntData(int x,
int y,
int z,
int index)
x - The x-coordinatey - The y-coordinatez - The z-coordinateindex - The index to read the data from (0 to 15)public float getTileEntityFloatData(ScriptablePosition pos, java.lang.String name)
pos - The positionname - The data's namepublic float getTileEntityFloatData(int x,
int y,
int z,
java.lang.String name)
x - The x-coordinatey - The y-coordinatez - The z-coordinatename - The data's namepublic java.lang.String getTileEntityStringData(ScriptablePosition pos, java.lang.String name)
pos - The positionname - The data's namepublic java.lang.String getTileEntityStringData(int x,
int y,
int z,
java.lang.String name)
x - The x-coordinatey - The y-coordinatez - The z-coordinatename - The data's namepublic java.lang.String getTileEntityStringData(ScriptablePosition pos, int index)
pos - positionindex - The index to read the data from (0 to 15)public java.lang.String getTileEntityStringData(int x,
int y,
int z,
int index)
x - The x-coordinatey - The y-coordinatez - The z-coordinateindex - The index to read the data from (0 to 15)public void setTileEntityIntData(ScriptablePosition pos, java.lang.String name, int data)
pos - The positionname - The data's namedata - The datapublic void setTileEntityIntData(int x,
int y,
int z,
java.lang.String name,
int data)
x - The x-coordinatey - The y-coordinatez - The z-coordinatename - The data's namedata - The datapublic void setTileEntityIntData(ScriptablePosition pos, int index, int data)
pos - positionindex - The index of the data (0 to 15)data - The data to set at the indexpublic void setTileEntityIntData(int x,
int y,
int z,
int index,
int data)
x - The x-coordinatey - The y-coordinatez - The z-coordinateindex - The index of the data (0 to 15)data - The data to set at the indexpublic void setTileEntityFloatData(ScriptablePosition pos, java.lang.String name, float data)
pos - The positionname - The data's namedata - The datapublic void setTileEntityFloatData(int x,
int y,
int z,
java.lang.String name,
float data)
x - The x-coordinatey - The y-coordinatez - The z-coordinatename - The data's namedata - The datapublic void setTileEntityStringData(ScriptablePosition pos, java.lang.String name, java.lang.String data)
pos - The positionname - The data's namedata - The datapublic void setTileEntityStringData(int x,
int y,
int z,
java.lang.String name,
java.lang.String data)
x - The x-coordinatey - The y-coordinatez - The z-coordinatename - The data's namedata - The datapublic void setTileEntityStringData(ScriptablePosition pos, int index, java.lang.String data)
pos - positionindex - The index of the data (0 to 15)data - The data to set at the indexpublic void setTileEntityStringData(int x,
int y,
int z,
int index,
java.lang.String data)
x - The x-coordinatey - The y-coordinatez - The z-coordinateindex - The index of the data (0 to 15)data - The data to set at the indexpublic int countEntities(ScriptablePosition pos, float radius, java.lang.String entities)
pos - The positionradius - The radius of the lookup cubeentities - The entities to search. Allowed values are 'hostile', 'animal', 'mob', 'player', 'item', 'all', any entityID and any
entity name. You can give multiple values by dividing them with a ','public int countEntities(int x,
int y,
int z,
float radius,
java.lang.String entities)
x - The x-coordinatey - The y-coordinatez - The z-coordinateradius - The radius of the lookup cubeentities - The entities to search. Allowed values are 'hostile', 'animal', 'mob', 'player', 'item', 'all', any entityID and any
entity name. You can give multiple values by dividing them with a ','public int getBlockLightLevel(ScriptablePosition position)
position - The block's positionpublic int getBlockLightLevel(int x,
int y,
int z)
x - The x-coordinatey - The y-coordinatez - The z-coordinatepublic void sendMessageToAllPlayers(java.lang.String message)
message - The message to send.public void sendMessageToPlayer(java.lang.String player,
java.lang.String message)
player - The player's usernamemessage - The message to sendpublic java.lang.String getBlockType(ScriptablePosition position)
position - The positionpublic java.lang.String getBlockType(int x,
int y,
int z)
x - The x-coordinatey - The y-coordinatez - The z-coordinate