diff options
Diffstat (limited to 'src/main/java/darkknight/jewelrycraft/api/IJewelryItem.java')
| -rwxr-xr-x | src/main/java/darkknight/jewelrycraft/api/IJewelryItem.java | 67 |
1 files changed, 35 insertions, 32 deletions
diff --git a/src/main/java/darkknight/jewelrycraft/api/IJewelryItem.java b/src/main/java/darkknight/jewelrycraft/api/IJewelryItem.java index c4a2c7a..ad15c7a 100755 --- a/src/main/java/darkknight/jewelrycraft/api/IJewelryItem.java +++ b/src/main/java/darkknight/jewelrycraft/api/IJewelryItem.java @@ -24,57 +24,59 @@ public interface IJewelryItem { * This is the action performed each player tick
*
* @param item
- * The item stack of the item (allows for fine item search,
- * like metadata and nbt)
+ * The item stack of the item (allows for fine item
+ * search, like metadata and nbt)
* @param player
- * The player wearing the jewelry
+ * The player wearing the jewelry
*/
public void onWearAction(ItemStack item, EntityPlayer player);
/**
- * This performs an action whenever a player gets attacked by an entity
- * besides another Player
+ * This performs an action whenever a player gets attacked by an
+ * entity besides another Player
*
* @param item
- * The item stack of the item (allows for fine item search,
- * like metadata and nbt)
+ * The item stack of the item (allows for fine item
+ * search, like metadata and nbt)
* @param player
- * The player that was attacked
+ * The player that was attacked
* @param source
- * Source of the damage
+ * Source of the damage
* @param amount
- * The amount of damage taken
+ * The amount of damage taken
*/
- public void onPlayerAttackedAction(ItemStack item, EntityPlayer player,
- DamageSource source, float amount);
+ public void onPlayerAttackedAction(ItemStack item,
+ EntityPlayer player, DamageSource source,
+ float amount);
/**
- * This does an action whenever an Entity gets attacked by a player,
- * this includes other Players
+ * This does an action whenever an Entity gets attacked by a
+ * player, this includes other Players
*
* @param item
- * The item stack of the item (allows for fine item search,
- * like metadata and nbt)
+ * The item stack of the item (allows for fine item
+ * search, like metadata and nbt)
* @param player
- * The attacking player
+ * The attacking player
* @param entity
- * The target entity
+ * The target entity
* @param amount
- * The amount of damage dealt
+ * The amount of damage dealt
*/
public void onEntityAttackedByPlayer(ItemStack item,
- EntityPlayer player, EntityLivingBase entity, float amount);
+ EntityPlayer player, EntityLivingBase entity,
+ float amount);
/**
* This runs whenever a player dies
*
* @param item
- * The item stack of the item (allows for fine item search,
- * like metadata and nbt)
+ * The item stack of the item (allows for fine item
+ * search, like metadata and nbt)
* @param player
- * The player that died
+ * The player that died
* @param source
- * The damage source that caused the death
+ * The damage source that caused the death
*/
public void onPlayerDeadAction(ItemStack item, EntityPlayer player,
DamageSource source);
@@ -84,11 +86,12 @@ public interface IJewelryItem { * respawns)
*
* @param item
- * The item stack of the item (allows for fine item search,
- * like metadata and nbt)
+ * The item stack of the item (allows for fine item
+ * search, like metadata and nbt)
* @param event
- * The clone event that runs whenever a player respawns,
- * either because he died or switched dimensions
+ * The clone event that runs whenever a player
+ * respawns, either because he died or switched
+ * dimensions
*/
public void onPlayerRespawnAction(ItemStack item,
PlayerEvent.Clone event);
@@ -97,8 +100,8 @@ public interface IJewelryItem { * This runs when the item is equipped
*
* @param item
- * The item stack of the item (allows for fine item search,
- * like metadata and nbt)
+ * The item stack of the item (allows for fine item
+ * search, like metadata and nbt)
*/
public void onJewelryEquipped(ItemStack item);
@@ -106,8 +109,8 @@ public interface IJewelryItem { * This runs when the item is unequipped
*
* @param item
- * The item stack of the item (allows for fine item search,
- * like metadata and nbt)
+ * The item stack of the item (allows for fine item
+ * search, like metadata and nbt)
*/
public void onJewelryUnequipped(ItemStack item);
}
|
