Modifier and Type | Method and Description |
---|---|
void |
ScriptableWorld.addEnchantment(ScriptablePosition position,
int slotId,
int id,
int level)
Adds an enchantment to the itemstack in the given container slot
|
int |
ScriptableWorld.addToContainer(ScriptablePosition position,
int id,
int count,
int metadata)
Adds items to a container if there's space for them.
|
int |
ScriptableWorld.addToContainerSlot(ScriptablePosition position,
int slotId,
int count)
Adds items to a container slot if it isn't empty
|
void |
ScriptableWorld.clearContainer(ScriptablePosition position)
Clears a container
|
void |
ScriptableWorld.clearContainerSlot(ScriptablePosition position,
int slotId)
Clears a container slot
|
void |
ScriptableWorld.clearEnchantments(ScriptablePosition position,
int slotId)
Removes all enchantments from the itemstack in the given container slot
|
int |
ScriptableWorld.countEntities(ScriptablePosition pos,
float radius,
java.lang.String entities)
Gets the amount of entities within the given cube with the given radius.
|
void |
ScriptableWorld.createExplosion(ScriptablePosition position,
float strength,
boolean flaming)
Creates a explosion
|
void |
ScriptableWorld.createThunderbolt(ScriptablePosition position)
Creates a thunderbolt
|
void |
ScriptableWorld.damageItem(ScriptablePosition position,
int slotId,
int count)
Damages an item in a container slot
|
int |
ScriptableWorld.fillContainer(ScriptablePosition position,
int id,
int metadata)
Fills a container.
|
int |
ScriptableWorld.fillContainerSlot(ScriptablePosition position,
int slotId)
Fills a container slot if it isn't empty
|
java.lang.String |
ScriptableWorld.getBiome(ScriptablePosition position)
Gets the biome
|
int |
ScriptableWorld.getBlockId(ScriptablePosition position)
Gets the block id
|
int |
ScriptableWorld.getBlockLightLevel(ScriptablePosition position)
Gets the light level of the block at the given position.
|
int |
ScriptableWorld.getBlockMetadata(ScriptablePosition position)
Gets the block's damage value
|
java.lang.String |
ScriptableWorld.getBlockType(ScriptablePosition position)
Gets the type of the block with the given id.
|
int |
ScriptableWorld.getContainerItemCount(ScriptablePosition position,
int id,
int metadata)
Gets the count of a item in a container
|
int |
ScriptableWorld.getContainerSlotId(ScriptablePosition position,
int slotId)
Gets the id of an item in a slot of a container
|
int |
ScriptableWorld.getContainerSlotMaxStackSize(ScriptablePosition position,
int slotId)
Gets the maximum stack size of an item in a slot of a container.
|
int |
ScriptableWorld.getContainerSlotMetadata(ScriptablePosition position,
int slotId)
Gets the damage value of an item in a slot of a container
|
int |
ScriptableWorld.getContainerSlotStackSize(ScriptablePosition position,
int slotId)
Gets the stack size of an item in a slot of a container
|
int |
ScriptableWorld.getStackIntData(ScriptablePosition position,
int slotId,
java.lang.String name)
Gets the int data of an itemstack in the given container slot
|
java.lang.String |
ScriptableWorld.getStackStringData(ScriptablePosition position,
int slotId,
java.lang.String name)
Gets the string data of an itemstack in the given container slot
|
float |
ScriptableWorld.getTileEntityFloatData(ScriptablePosition pos,
java.lang.String name)
Gets the tile entity's float data
|
int |
ScriptableWorld.getTileEntityIntData(ScriptablePosition pos,
int index)
Only use this if you've used it in previous versions and not for new data!
|
int |
ScriptableWorld.getTileEntityIntData(ScriptablePosition pos,
java.lang.String name)
Gets the tile entity's int data
|
java.lang.String |
ScriptableWorld.getTileEntityStringData(ScriptablePosition pos,
int index)
Only use this if you've used it in previous versions and not for new data!
|
java.lang.String |
ScriptableWorld.getTileEntityStringData(ScriptablePosition pos,
java.lang.String name)
Gets the tile entity's string data
|
void |
ScriptableWorld.harvestBlock(ScriptablePosition position)
Harvests a block
|
boolean |
ScriptableWorld.hasEnchantment(ScriptablePosition position,
int slotId)
Checks if the itemstack in the given container slot has any enchantment
|
boolean |
ScriptableWorld.hasEnchantment(ScriptablePosition position,
int slotId,
int id)
Checks if the itemstack in the given container slot has the given enchantment
|
boolean |
ScriptableWorld.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 |
ScriptableWorld.isFuelInContainerSlot(ScriptablePosition position,
int slot) |
void |
ScriptableEntity.move(ScriptablePosition pos)
Adds the given position to the living's position
|
void |
ScriptableEntityPlayer.openGui(java.lang.String guiName,
ScriptablePosition position)
Opens a gui for the player.
|
boolean |
ScriptableEntityPlayer.placeBlock(ScriptablePosition position,
int side,
int id,
int metadata,
boolean flag)
Places a block
|
void |
ScriptableWorld.removeEnchantment(ScriptablePosition position,
int slotId,
int id)
Removes an enchantment from the itemstack in the given container slot
|
int |
ScriptableWorld.removeFromContainer(ScriptablePosition position,
int id,
int count,
int metadata)
Removes items from a container
|
int |
ScriptableWorld.removeFromContainerSlot(ScriptablePosition position,
int slotId,
int count)
Removes items from a container slot
|
void |
ScriptableWorld.repairItem(ScriptablePosition position,
int slotId)
Fully repairs an item in a container slot
|
void |
ScriptableWorld.repairItem(ScriptablePosition position,
int slotId,
int count)
Repairs an item in a container slot
|
void |
ScriptableWorld.setBlockId(ScriptablePosition position,
int id)
Sets the id of the block at the given position
|
void |
ScriptableWorld.setBlockIdAndMetadata(ScriptablePosition position,
int id,
int metadata)
Sets the id and damage value of a block
|
void |
ScriptableWorld.setBlockMetadata(ScriptablePosition position,
int metadata)
Sets the damage value of a block
|
int |
ScriptableWorld.setContainerSlot(ScriptablePosition position,
int slotId,
int id,
int count,
int metadata)
Sets a container slot
|
void |
ScriptableEntity.setPosition(ScriptablePosition position)
Sets the position of the entity
|
void |
ScriptableWorld.setStackIntData(ScriptablePosition position,
int slotId,
java.lang.String name,
int data)
Sets the int data of an itemstack in the given container slot
|
void |
ScriptableWorld.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 |
ScriptableWorld.setTileEntityFloatData(ScriptablePosition pos,
java.lang.String name,
float data)
Sets the tile entity's float data
|
void |
ScriptableWorld.setTileEntityIntData(ScriptablePosition pos,
int index,
int data)
Only use this if you've used it in previous versions and not for new data!
|
void |
ScriptableWorld.setTileEntityIntData(ScriptablePosition pos,
java.lang.String name,
int data)
Sets the tile entity's int data
|
void |
ScriptableWorld.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 |
ScriptableWorld.setTileEntityStringData(ScriptablePosition pos,
java.lang.String name,
java.lang.String data)
Sets the tile entity's string data
|
void |
ScriptableWorld.shear(ScriptablePosition position)
Shears a block if it can be sheared.
|
void |
ScriptableWorld.spawnItem(ScriptablePosition position,
int id,
int count,
int damage)
Spawns an item
|
void |
ScriptableWorld.spawnMob(ScriptablePosition position,
java.lang.String name)
Spawns a mob
|