Start work on porting tool and armor materials, values still need porting over

This commit is contained in:
modmuss50 2019-02-21 17:53:30 +00:00
parent 0b0435a1a2
commit 02d2d9cf1c
9 changed files with 373 additions and 279 deletions

View file

@ -25,11 +25,7 @@
package techreborn.items.armor;
import net.minecraft.inventory.EntityEquipmentSlot;
import net.minecraft.item.ArmorMaterial;
import net.minecraft.item.Item;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemGroup;
import net.minecraft.item.ItemStack;
import net.minecraft.item.*;
import reborncore.common.util.ItemUtils;
import techreborn.events.TRRecipeHandler;
@ -40,12 +36,12 @@ public class ItemTRArmour extends ItemArmor {
String repairOreDict = "";
public ItemTRArmour(ArmorMaterial material, EntityEquipmentSlot slot) {
public ItemTRArmour(IArmorMaterial material, EntityEquipmentSlot slot) {
this(material, slot, "");
}
public ItemTRArmour(ArmorMaterial material, EntityEquipmentSlot slot, String repairOreDict) {
super(material, slot, (new Item.Builder()).group(ItemGroup.COMBAT));
public ItemTRArmour(IArmorMaterial material, EntityEquipmentSlot slot, String repairOreDict) {
super(material, slot, (new Item.Properties()).group(ItemGroup.COMBAT));
this.repairOreDict = repairOreDict;
if (slot == EntityEquipmentSlot.HEAD)
//setTranslationKey(material.name().toLowerCase() + "Helmet");