Changed naming for Repair events to be more consistent

This commit is contained in:
GJ 2012-03-29 01:41:43 -04:00
parent 751b795417
commit fd6bf931fc
2 changed files with 9 additions and 9 deletions

View File

@ -8,12 +8,12 @@ import com.gmail.nossr50.datatypes.SkillType;
public class McMMOPlayerRepairCheckEvent extends McMMOPlayerSkillEvent implements Cancellable{
private int repairAmount;
private short repairAmount;
private ItemStack repairMaterial;
private ItemStack repairedObject;
private boolean cancelled;
public McMMOPlayerRepairCheckEvent(Player player, int repairAmount, ItemStack repairMaterial, ItemStack repairedObject) {
public McMMOPlayerRepairCheckEvent(Player player, short repairAmount, ItemStack repairMaterial, ItemStack repairedObject) {
super(player, SkillType.REPAIR);
this.repairAmount = repairAmount;
this.repairMaterial = repairMaterial;
@ -21,7 +21,7 @@ public class McMMOPlayerRepairCheckEvent extends McMMOPlayerSkillEvent implement
this.cancelled = false;
}
public int getRepairAmount() {
public short getRepairAmount() {
return repairAmount;
}

View File

@ -7,20 +7,20 @@ import com.gmail.nossr50.datatypes.SkillType;
public class McMMOPlayerRepairEvent extends McMMOPlayerSkillEvent{
private ItemStack item;
private ItemStack repairedObject;
private short repairAmount;
public McMMOPlayerRepairEvent(Player player, ItemStack item, short repairAmount) {
public McMMOPlayerRepairEvent(Player player, ItemStack repairedObject, short repairAmount) {
super(player, SkillType.REPAIR);
this.item = item;
this.repairedObject = repairedObject;
this.repairAmount = repairAmount;
}
public ItemStack getItem() {
return item;
public ItemStack getRepairedObject() {
return repairedObject;
}
public int getRepairAmount() {
public short getRepairAmount() {
return repairAmount;
}
}