mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Changed naming for Repair events to be more consistent
This commit is contained in:
parent
751b795417
commit
fd6bf931fc
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user