Fix Tree Feller not working with custom axes

This commit is contained in:
GJ
2012-05-27 14:31:37 -04:00
parent 3699d26e5d
commit c2fb57fce9
6 changed files with 29 additions and 6 deletions

View File

@ -2,9 +2,11 @@ package com.gmail.nossr50.datatypes.mods;
public class CustomItem {
protected int itemID;
protected short durability;
public CustomItem(int itemID) {
public CustomItem(int itemID, short durability) {
this.itemID = itemID;
this.durability = durability;
}
public int getItemID() {
@ -14,4 +16,12 @@ public class CustomItem {
public void setItemID(int itemID) {
this.itemID = itemID;
}
public short getDurability() {
return durability;
}
public void setDurability(short durability) {
this.durability = durability;
}
}

View File

@ -5,8 +5,8 @@ public class CustomTool extends CustomItem {
private boolean abilityEnabled;
private int tier;
public CustomTool(int tier, boolean abilityEnabled, double xpMultiplier, int itemID) {
super(itemID);
public CustomTool(int tier, boolean abilityEnabled, double xpMultiplier, short durability, int itemID) {
super(itemID, durability);
this.xpMultiplier = xpMultiplier;
this.abilityEnabled = abilityEnabled;
this.tier = tier;