diff --git a/appForgeArchive/1.3.2/src/main/java/legendarium/init/Items.java b/appForgeArchive/1.3.2/src/main/java/legendarium/init/Items.java index d4a41bd4..45a98ddd 100644 --- a/appForgeArchive/1.3.2/src/main/java/legendarium/init/Items.java +++ b/appForgeArchive/1.3.2/src/main/java/legendarium/init/Items.java @@ -4,6 +4,7 @@ import legendarium.Config; import legendarium.item.ItemColdWeapon; import legendarium.item.ItemGem; +import net.minecraft.src.EnumRarity; import net.minecraft.src.Item; @SuppressWarnings({"WeakerAccess", "PublicField"}) @@ -121,8 +122,8 @@ public static void preInit() { weaponUrfael = new ItemColdWeapon(Config.idWeaponUrfael - 256); weaponWitchking = new ItemColdWeapon(Config.idWeaponWitchking - 256); - arkenstone = new ItemGem(Config.idArkenstone - 256); - silmaril = new ItemGem(Config.idSilmaril - 256); + arkenstone = new ItemGem(Config.idArkenstone - 256, EnumRarity.rare); + silmaril = new ItemGem(Config.idSilmaril - 256, EnumRarity.epic); int id = 0; arkenstone.setIconIndex(id++); diff --git a/appForgeArchive/1.3.2/src/main/java/legendarium/item/ItemGem.java b/appForgeArchive/1.3.2/src/main/java/legendarium/item/ItemGem.java index f8b14551..8b32b6dc 100644 --- a/appForgeArchive/1.3.2/src/main/java/legendarium/item/ItemGem.java +++ b/appForgeArchive/1.3.2/src/main/java/legendarium/item/ItemGem.java @@ -1,12 +1,22 @@ package legendarium.item; import legendarium.init.ItemGroups; +import net.minecraft.src.EnumRarity; import net.minecraft.src.Item; +import net.minecraft.src.ItemStack; public class ItemGem extends Item { - public ItemGem(int id) { + private final EnumRarity rarity; + + public ItemGem(int id, EnumRarity rarity) { super(id); setMaxStackSize(1); setCreativeTab(ItemGroups.TAB_ARTIFACTS); + this.rarity = rarity; + } + + @Override + public EnumRarity getRarity(ItemStack var1) { + return rarity; } } \ No newline at end of file