This repository has been archived on 2026-10-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
slashblade-pseudoedge/src/main/java/Fish/mods/slashblade/black/White_Blade.java
T

75 lines
4.3 KiB
Java

/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.common.eventhandler.SubscribeEvent
* cpw.mods.fml.common.registry.GameRegistry
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
* mods.flammpfeil.slashblade.RecipeAwakeBlade
* mods.flammpfeil.slashblade.SlashBlade
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
* net.minecraft.enchantment.Enchantment
* net.minecraft.init.Blocks
* net.minecraft.item.Item
* net.minecraft.item.ItemStack
* net.minecraft.item.crafting.IRecipe
* net.minecraft.nbt.NBTTagCompound
*/
package Fish.mods.slashblade.black;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
import mods.flammpfeil.slashblade.SlashBlade;
import mods.flammpfeil.slashblade.named.event.LoadEvent;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.nbt.NBTTagCompound;
public class White_Blade {
public static ItemSlashBladeNamed bladeNamed;
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.whitenblade";
String namerust2 = "flammpfeil.slashblade.named.xblades";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
NBTTagCompound tag = new NBTTagCompound();
customblade.setTagCompound(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(300));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)13.0f);
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.TextureName.set(tag, "named/sword/whitensword");
ItemSlashBlade.ModelName.set(tag, "named/sword/sword");
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(0));
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
ItemSlashBlade.KillCount.set(tag, Integer.valueOf(1000));
ItemSlashBlade.ProudSoul.set(tag, Integer.valueOf(20000));
ItemSlashBlade.RepairCount.set(tag, Integer.valueOf(10));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(-0.2f));
ItemSlashBlade.BaseAttackModifier.set(tag, Float.valueOf(11.0f));
ItemSlashBlade.SummonedSwordColor.set(tag, Integer.valueOf(0xFFFFFF));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
customblade.addEnchantment(Enchantment.fireAspect, 1);
customblade.addEnchantment(Enchantment.looting, 1);
customblade.addEnchantment(Enchantment.sharpness, 5);
ItemStack NEWcustombladeReqired2 = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)namerust2, (int)1);
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)NEWcustombladeReqired2);
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(1000));
ItemSlashBlade.ProudSoul.set(reqTag, Integer.valueOf(20000));
ItemSlashBlade.RepairCount.set(reqTag, Integer.valueOf(10));
NEWcustombladeReqired2.addEnchantment(Enchantment.looting, 1);
ItemStack whitenblade = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(whitenblade, NEWcustombladeReqired2, new Object[]{"GEZ", "FYX", "FFK", Character.valueOf('G'), GameRegistry.findItemStack((String)"minecraft", (String)"nether_star", (int)1), Character.valueOf('E'), new ItemStack(Blocks.quartz_block), Character.valueOf('Z'), new ItemStack(Blocks.diamond_block), Character.valueOf('F'), GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"proudsoul", (int)1), Character.valueOf('X'), new ItemStack(Blocks.coal_block), Character.valueOf('K'), GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1), Character.valueOf('Y'), NEWcustombladeReqired2}));
}
}