Mod support - able to define tiers for custom blocks now.

Tier 1 - breaks with wood/gold
Tier 2 - breaks with stone
Tier 3 - breaks with iron
Tier 4 - breaks with diamond
This commit is contained in:
GJ
2012-05-17 21:57:41 -04:00
parent efcc15d89d
commit c559e70270
4 changed files with 19 additions and 2 deletions

View File

@ -6,12 +6,14 @@ public class CustomBlock {
private int itemID;
private byte dataValue;
private int xpGain;
private int tier;
private ItemStack itemDrop;
public CustomBlock(ItemStack itemDrop, int xpGain, byte dataValue, int itemID) {
public CustomBlock(ItemStack itemDrop, int tier, int xpGain, byte dataValue, int itemID) {
this.itemID = itemID;
this.dataValue = dataValue;
this.xpGain = xpGain;
this.tier = tier;
this.itemDrop = itemDrop;
}
@ -39,6 +41,14 @@ public class CustomBlock {
this.xpGain = xpGain;
}
public int getTier() {
return tier;
}
public void setTier(int tier) {
this.tier = tier;
}
public ItemStack getItemDrop() {
return itemDrop;
}