Recipes are now added to the recipe book when a tree tap is used.

This commit is contained in:
modmuss50 2017-06-15 11:35:08 +01:00
parent 5536a6cd94
commit aa615f86bd
No known key found for this signature in database
GPG key ID: 203A5ED4D3E48BEA
23 changed files with 124 additions and 36 deletions

View file

@ -26,6 +26,7 @@ package techreborn.items.tools;
import net.minecraft.item.ItemSpade;
import techreborn.client.TechRebornCreativeTabMisc;
import techreborn.events.TRRecipeHandler;
public class ItemTRSpade extends ItemSpade {
private ToolMaterial material = ToolMaterial.WOOD;
@ -35,5 +36,6 @@ public class ItemTRSpade extends ItemSpade {
setUnlocalizedName(material.name().toLowerCase() + "Spade");
setCreativeTab(TechRebornCreativeTabMisc.instance);
this.material = material;
TRRecipeHandler.hideEntry(this);
}
}