Fix decompilation syntax errors in RenderSA and type errors

This commit is contained in:
layue13 committed 2026-07-04 04:54:47 +08:00
1 parent 6d2daebd00
commit d70ef5115a
131 files changed
+1143 -1115

No files matched your search

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
View File
Whitespace-only changes.
Binary file not shown.
@@ -0,0 +1,2 @@
#Sat Jul 04 00:50:08 CST 2026
gradle.version=9.4.0
Binary file not shown.
Binary file not shown.
View File
Whitespace-only changes.
+24
View File
@@ -1,4 +1,28 @@
// Add your dependencies here
dependencies {
// SlashBlade stub from MavenLocal
compileOnlyApi('mods.flammpfeil.slashblade:SlashBlade:1.0.0-stub')
// CoFH/RedstoneFlux API
compileOnly('curse.maven:cofh-core-69162:2388751')
compileOnly('curse.maven:thermal-foundation-222880:2388753')
compileOnly('curse.maven:cofh-lib-220333:2388748')
// Thaumcraft - built to local Maven
compileOnly('com.github.GTNewHorizons:Thaumcraft4:4.2.3.5:dev') { transitive = false }
// IndustrialCraft 2 API
compileOnly('net.industrial-craft:industrialcraft-2:2.2.828-experimental:api')
// Botania API from GTNH Maven
compileOnly('com.github.GTNewHorizons:Botania:1.13.16-GTNH:dev') { transitive = false }
}
repositories {
mavenLocal()
maven {
name = "CurseMaven"
url = "https://cursemaven.com"
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+2
View File
@@ -17,3 +17,5 @@ pluginManagement {
plugins {
id 'com.gtnewhorizons.gtnhsettingsconvention' version '2.0.24'
}
rootProject.name = 'lastsmith'
@@ -38,7 +38,7 @@ import java.util.Stack;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import mods.flammpfeil.slashblade.SlashBlade;
import mods.flammpfeil.slashblade.stats.AchievementEx;
// AchievementEx not available in stub
import net.langball.last_smith.BladeLoader;
import net.langball.last_smith.CommonProxy;
import net.minecraft.entity.Entity;
@@ -65,41 +65,34 @@ public class AchievementListTLS {
static int minY = -6;
public static Pattern PosPattern = Pattern.compile("(-?\\d+)\\s*,\\s*(-?\\d+)");
static boolean isLoaded = false;
public static AchievementEx currentMouseOver = null;
public static Achievement currentMouseOver = null;
public static ItemStack getIconStack(String name) {
ItemStack stack = SlashBlade.getCustomBlade((String)"proudsoul");
stack.func_77964_b(65535);
stack.func_151001_c(name);
stack.setItemDamage(65535);
stack.setStackDisplayName(name);
return stack;
}
public static ItemStack getIconStackEffect(String name) {
ItemStack stack = SlashBlade.getCustomBlade((String)"proudsoul");
stack.func_77964_b(65536);
stack.func_151001_c(name);
stack.setItemDamage(65536);
stack.setStackDisplayName(name);
return stack;
}
public static void setContent(Achievement achievement, String contentKey) {
if (!(achievement instanceof AchievementEx)) {
return;
}
if (!SlashBlade.recipeMultimap.containsKey((Object)contentKey)) {
return;
}
((AchievementEx)achievement).content = Lists.newArrayList((Iterable)SlashBlade.recipeMultimap.get(contentKey));
}
public static void init() {
MinecraftForge.EVENT_BUS.register((Object)INSTANCE);
Stack<Achievement> parent = new Stack<Achievement>();
parent.push(AchievementListTLS.registerAchievement("smith_beginning", 0, 0, new ItemStack(CommonProxy.hammer), null).func_75966_h());
parent.push(AchievementListTLS.registerAchievement("smith_beginning", 0, 0, new ItemStack(CommonProxy.hammer), null).registerStat());
parent.push(AchievementListTLS.registerAchievement("lastsmith_blade", 2, 0, new ItemStack((Item)BladeLoader.blade), AchievementListTLS.getAchievement("smith_beginning")));
AchievementPage.registerAchievementPage((AchievementPage)new AchievementPage("the_last_smith", achievements.values().toArray(new Achievement[0])){
public String getName() {
return StatCollector.func_74838_a((String)"the_last_smith");
return StatCollector.translateToLocal((String)"the_last_smith");
}
});
}
@@ -108,7 +101,7 @@ public class AchievementListTLS {
String translateKey = AchievementListTLS.getTranslateKey(key);
int x = defaultX++;
int y = defaultY;
String posStr = StatCollector.func_74838_a((String)("achievement." + translateKey + ".pos"));
String posStr = StatCollector.translateToLocal((String)("achievement." + translateKey + ".pos"));
Matcher mat = PosPattern.matcher(posStr.trim());
if (mat.matches()) {
x = Integer.parseInt(mat.group(1));
@@ -121,12 +114,12 @@ public class AchievementListTLS {
public static Achievement registerAchievement(String key, int x, int y, ItemStack icon, Achievement parent) {
Achievement achievement = new Achievement(AchievementListTLS.getAchievementKey(key), AchievementListTLS.getTranslateKey(key), x, y, icon, parent);
achievements.put(achievement.field_75975_e, achievement);
return achievement.func_75971_g();
achievements.put(achievement.statId, achievement);
return achievement.registerStat();
}
public static Achievement registerCraftingAchievement(Achievement achievement) {
craftingTrigger.put(achievement.field_75990_d.func_77977_a(), achievement.field_75975_e);
craftingTrigger.put(achievement.theItemStack.getUnlocalizedName(), achievement.statId);
return achievement;
}
@@ -151,13 +144,13 @@ public class AchievementListTLS {
public static void triggerAchievement(EntityPlayer player, String key) {
Achievement achievement = AchievementListTLS.getAchievement(key);
if (achievement != null) {
player.func_71029_a((StatBase)achievement);
player.addStat(achievement, 1);
}
}
public static void triggerCraftingAchievement(ItemStack stack, EntityPlayer player) {
if (craftingTrigger.containsKey(stack.func_77977_a())) {
AchievementListTLS.triggerAchievement(player, craftingTrigger.get(stack.func_77977_a()));
if (craftingTrigger.containsKey(stack.getUnlocalizedName())) {
AchievementListTLS.triggerAchievement(player, craftingTrigger.get(stack.getUnlocalizedName()));
}
}
@@ -168,43 +161,43 @@ public class AchievementListTLS {
isLoaded = true;
IStatStringFormat formatter = new IStatStringFormat(){
public String func_74535_a(String p_74535_1_) {
public String formatString(String p_74535_1_) {
p_74535_1_ = p_74535_1_.replaceAll("<br>", "\n");
return p_74535_1_;
}
};
for (Achievement ach : achievements.values()) {
ach.func_75988_a(formatter);
ach.registerStat();
}
}
}
@SubscribeEvent
public void playerEventItemPickupEvent(PlayerEvent.ItemPickupEvent event) {
AchievementListTLS.triggerCraftingAchievement(event.pickedUp.func_92059_d(), event.player);
AchievementListTLS.triggerCraftingAchievement(event.pickedUp.getEntityItem(), event.player);
}
@SubscribeEvent
public void livingAttackEvent(LivingAttackEvent event) {
DamageSource src = event.source;
if (src.func_76355_l() != "player") {
if (src.getDamageType() != "player") {
return;
}
Entity e = src.func_76346_g();
Entity e = src.getEntity();
if (e == null) {
return;
}
if (!(e instanceof EntityPlayer)) {
return;
}
ItemStack item = ((EntityPlayer)e).func_70694_bm();
ItemStack item = ((EntityPlayer)e).getHeldItem();
if (item == null) {
return;
}
if (item.func_77973_b() != Items.field_151041_m) {
if (item.getItem() != Items.fermented_spider_eye) {
return;
}
if (item.func_77960_j() != 0) {
if (item.getItemDamage() != 0) {
return;
}
AchievementListTLS.triggerAchievement((EntityPlayer)e, "slashWoodenSword");
@@ -29,102 +29,107 @@ import net.minecraftforge.common.ChestGenHooks;
public class BladeHouse
extends StructureVillagePieces.Village {
protected int getVillagerType(int par1) {
return 9527;
}
private boolean hasMadeChest;
private int averageGroundLevel = -1;
public BladeHouse() {
}
public BladeHouse(StructureVillagePieces.Start p_i2103_1_, int p_i2103_2_, Random p_i2103_3_, StructureBoundingBox p_i2103_4_, int p_i2103_5_) {
super(p_i2103_1_, p_i2103_2_);
this.field_74885_f = p_i2103_5_;
this.field_74887_e = p_i2103_4_;
this.coordBaseMode = p_i2103_5_;
this.boundingBox = p_i2103_4_;
}
public boolean func_74875_a(World p_74875_1_, Random p_74875_2_, StructureBoundingBox p_74875_3_) {
public boolean addComponentParts(World p_74875_1_, Random p_74875_2_, StructureBoundingBox p_74875_3_) {
int j;
int i;
if (this.field_143015_k < 0) {
this.field_143015_k = this.func_74889_b(p_74875_1_, p_74875_3_);
if (this.field_143015_k < 0) {
if (this.averageGroundLevel < 0) {
this.averageGroundLevel = this.getAverageGroundLevel(p_74875_1_, p_74875_3_);
if (this.averageGroundLevel < 0) {
return true;
}
this.field_74887_e.func_78886_a(0, this.field_143015_k - this.field_74887_e.field_78894_e + 6 - 1, 0);
this.boundingBox.offset(0, this.averageGroundLevel - this.boundingBox.maxY + 6 - 1, 0);
}
this.func_151549_a(p_74875_1_, p_74875_3_, 0, 1, 0, 9, 4, 6, Blocks.field_150350_a, Blocks.field_150350_a, false);
this.func_151549_a(p_74875_1_, p_74875_3_, 0, 0, 0, 9, 0, 6, Blocks.field_150347_e, Blocks.field_150347_e, false);
this.func_151549_a(p_74875_1_, p_74875_3_, 0, 4, 0, 9, 4, 6, Blocks.field_150347_e, Blocks.field_150347_e, false);
this.func_151549_a(p_74875_1_, p_74875_3_, 0, 5, 0, 9, 5, 6, (Block)Blocks.field_150333_U, (Block)Blocks.field_150333_U, false);
this.func_151549_a(p_74875_1_, p_74875_3_, 1, 5, 1, 8, 5, 5, Blocks.field_150350_a, Blocks.field_150350_a, false);
this.func_151549_a(p_74875_1_, p_74875_3_, 1, 1, 0, 2, 3, 0, Blocks.field_150336_V, Blocks.field_150336_V, false);
this.func_151549_a(p_74875_1_, p_74875_3_, 0, 1, 0, 0, 4, 0, Blocks.field_150364_r, Blocks.field_150364_r, false);
this.func_151549_a(p_74875_1_, p_74875_3_, 3, 1, 0, 3, 4, 0, Blocks.field_150364_r, Blocks.field_150364_r, false);
this.func_151549_a(p_74875_1_, p_74875_3_, 0, 1, 6, 0, 4, 6, Blocks.field_150364_r, Blocks.field_150364_r, false);
this.func_151550_a(p_74875_1_, Blocks.field_150336_V, 0, 3, 3, 1, p_74875_3_);
this.func_151549_a(p_74875_1_, p_74875_3_, 3, 1, 2, 3, 3, 2, Blocks.field_150336_V, Blocks.field_150336_V, false);
this.func_151549_a(p_74875_1_, p_74875_3_, 4, 1, 3, 5, 3, 3, Blocks.field_150336_V, Blocks.field_150336_V, false);
this.func_151549_a(p_74875_1_, p_74875_3_, 0, 1, 1, 0, 3, 5, Blocks.field_150336_V, Blocks.field_150336_V, false);
this.func_151549_a(p_74875_1_, p_74875_3_, 1, 1, 6, 5, 3, 6, Blocks.field_150336_V, Blocks.field_150336_V, false);
this.func_151549_a(p_74875_1_, p_74875_3_, 5, 1, 0, 5, 3, 0, Blocks.field_150422_aJ, Blocks.field_150422_aJ, false);
this.func_151549_a(p_74875_1_, p_74875_3_, 9, 1, 0, 9, 3, 0, Blocks.field_150422_aJ, Blocks.field_150422_aJ, false);
this.func_151549_a(p_74875_1_, p_74875_3_, 6, 1, 4, 9, 4, 6, Blocks.field_150347_e, Blocks.field_150347_e, false);
this.func_151550_a(p_74875_1_, (Block)Blocks.field_150356_k, 0, 7, 1, 5, p_74875_3_);
this.func_151550_a(p_74875_1_, (Block)Blocks.field_150356_k, 0, 8, 1, 5, p_74875_3_);
this.func_151550_a(p_74875_1_, Blocks.field_150411_aY, 0, 9, 2, 5, p_74875_3_);
this.func_151550_a(p_74875_1_, Blocks.field_150411_aY, 0, 9, 2, 4, p_74875_3_);
this.func_151549_a(p_74875_1_, p_74875_3_, 7, 2, 4, 8, 2, 5, Blocks.field_150350_a, Blocks.field_150350_a, false);
this.func_151550_a(p_74875_1_, Blocks.field_150347_e, 0, 6, 1, 3, p_74875_3_);
this.func_151550_a(p_74875_1_, Blocks.field_150460_al, 0, 6, 2, 3, p_74875_3_);
this.func_151550_a(p_74875_1_, Blocks.field_150460_al, 0, 6, 3, 3, p_74875_3_);
this.func_151550_a(p_74875_1_, (Block)Blocks.field_150334_T, 0, 8, 1, 1, p_74875_3_);
this.func_151550_a(p_74875_1_, Blocks.field_150410_aZ, 0, 0, 2, 2, p_74875_3_);
this.func_151550_a(p_74875_1_, Blocks.field_150410_aZ, 0, 0, 2, 4, p_74875_3_);
this.func_151550_a(p_74875_1_, Blocks.field_150410_aZ, 0, 2, 2, 6, p_74875_3_);
this.func_151550_a(p_74875_1_, Blocks.field_150410_aZ, 0, 4, 2, 6, p_74875_3_);
this.func_151550_a(p_74875_1_, Blocks.field_150422_aJ, 0, 2, 1, 4, p_74875_3_);
this.func_151550_a(p_74875_1_, Blocks.field_150452_aw, 0, 2, 2, 4, p_74875_3_);
this.func_151550_a(p_74875_1_, Blocks.field_150336_V, 0, 1, 1, 5, p_74875_3_);
this.func_151550_a(p_74875_1_, Blocks.field_150446_ar, this.func_151555_a(Blocks.field_150446_ar, 3), 2, 1, 5, p_74875_3_);
this.func_151550_a(p_74875_1_, Blocks.field_150446_ar, this.func_151555_a(Blocks.field_150446_ar, 1), 1, 1, 4, p_74875_3_);
this.fillWithBlocks(p_74875_1_, p_74875_3_, 0, 1, 0, 9, 4, 6, Blocks.air, Blocks.air, false);
this.fillWithBlocks(p_74875_1_, p_74875_3_, 0, 0, 0, 9, 0, 6, Blocks.planks, Blocks.planks, false);
this.fillWithBlocks(p_74875_1_, p_74875_3_, 0, 4, 0, 9, 4, 6, Blocks.planks, Blocks.planks, false);
this.fillWithBlocks(p_74875_1_, p_74875_3_, 0, 5, 0, 9, 5, 6, (Block)Blocks.stonebrick, (Block)Blocks.stonebrick, false);
this.fillWithBlocks(p_74875_1_, p_74875_3_, 1, 5, 1, 8, 5, 5, Blocks.air, Blocks.air, false);
this.fillWithBlocks(p_74875_1_, p_74875_3_, 1, 1, 0, 2, 3, 0, Blocks.cobblestone, Blocks.cobblestone, false);
this.fillWithBlocks(p_74875_1_, p_74875_3_, 0, 1, 0, 0, 4, 0, Blocks.log, Blocks.log, false);
this.fillWithBlocks(p_74875_1_, p_74875_3_, 3, 1, 0, 3, 4, 0, Blocks.log, Blocks.log, false);
this.fillWithBlocks(p_74875_1_, p_74875_3_, 0, 1, 6, 0, 4, 6, Blocks.log, Blocks.log, false);
this.placeBlockAtCurrentPosition(p_74875_1_, Blocks.cobblestone, 0, 3, 3, 1, p_74875_3_);
this.fillWithBlocks(p_74875_1_, p_74875_3_, 3, 1, 2, 3, 3, 2, Blocks.cobblestone, Blocks.cobblestone, false);
this.fillWithBlocks(p_74875_1_, p_74875_3_, 4, 1, 3, 5, 3, 3, Blocks.cobblestone, Blocks.cobblestone, false);
this.fillWithBlocks(p_74875_1_, p_74875_3_, 0, 1, 1, 0, 3, 5, Blocks.cobblestone, Blocks.cobblestone, false);
this.fillWithBlocks(p_74875_1_, p_74875_3_, 1, 1, 6, 5, 3, 6, Blocks.cobblestone, Blocks.cobblestone, false);
this.fillWithBlocks(p_74875_1_, p_74875_3_, 5, 1, 0, 5, 3, 0, Blocks.glass_pane, Blocks.glass_pane, false);
this.fillWithBlocks(p_74875_1_, p_74875_3_, 9, 1, 0, 9, 3, 0, Blocks.glass_pane, Blocks.glass_pane, false);
this.fillWithBlocks(p_74875_1_, p_74875_3_, 6, 1, 4, 9, 4, 6, Blocks.planks, Blocks.planks, false);
this.placeBlockAtCurrentPosition(p_74875_1_, (Block)Blocks.fence, 0, 7, 1, 5, p_74875_3_);
this.placeBlockAtCurrentPosition(p_74875_1_, (Block)Blocks.fence, 0, 8, 1, 5, p_74875_3_);
this.placeBlockAtCurrentPosition(p_74875_1_, Blocks.fence_gate, 0, 9, 2, 5, p_74875_3_);
this.placeBlockAtCurrentPosition(p_74875_1_, Blocks.fence_gate, 0, 9, 2, 4, p_74875_3_);
this.fillWithBlocks(p_74875_1_, p_74875_3_, 7, 2, 4, 8, 2, 5, Blocks.air, Blocks.air, false);
this.placeBlockAtCurrentPosition(p_74875_1_, Blocks.planks, 0, 6, 1, 3, p_74875_3_);
this.placeBlockAtCurrentPosition(p_74875_1_, Blocks.ladder, 0, 6, 2, 3, p_74875_3_);
this.placeBlockAtCurrentPosition(p_74875_1_, Blocks.ladder, 0, 6, 3, 3, p_74875_3_);
this.placeBlockAtCurrentPosition(p_74875_1_, (Block)Blocks.ladder, 0, 8, 1, 1, p_74875_3_);
this.placeBlockAtCurrentPosition(p_74875_1_, Blocks.iron_bars, 0, 0, 2, 2, p_74875_3_);
this.placeBlockAtCurrentPosition(p_74875_1_, Blocks.iron_bars, 0, 0, 2, 4, p_74875_3_);
this.placeBlockAtCurrentPosition(p_74875_1_, Blocks.iron_bars, 0, 2, 2, 6, p_74875_3_);
this.placeBlockAtCurrentPosition(p_74875_1_, Blocks.iron_bars, 0, 4, 2, 6, p_74875_3_);
this.placeBlockAtCurrentPosition(p_74875_1_, Blocks.glass_pane, 0, 2, 1, 4, p_74875_3_);
this.placeBlockAtCurrentPosition(p_74875_1_, Blocks.torch, 0, 2, 2, 4, p_74875_3_);
this.placeBlockAtCurrentPosition(p_74875_1_, Blocks.cobblestone, 0, 1, 1, 5, p_74875_3_);
this.placeBlockAtCurrentPosition(p_74875_1_, Blocks.chest, this.getMetadataWithOffset(Blocks.chest, 3), 2, 1, 5, p_74875_3_);
this.placeBlockAtCurrentPosition(p_74875_1_, Blocks.chest, this.getMetadataWithOffset(Blocks.chest, 1), 1, 1, 4, p_74875_3_);
if (!this.hasMadeChest) {
int k;
i = this.func_74862_a(1);
j = this.func_74865_a(5, 5);
if (p_74875_3_.func_78890_b(j, i, k = this.func_74873_b(5, 5))) {
i = this.getXWithOffset(1, 5);
j = this.getZWithOffset(1, 5);
int k = this.getYWithOffset(1);
if (p_74875_3_.isVecInside(i, j, k)) {
this.hasMadeChest = true;
this.func_74879_a(p_74875_1_, p_74875_3_, p_74875_2_, 5, 1, 5, ChestGenHooks.getItems((String)"villageBlacksmith", (Random)p_74875_2_), ChestGenHooks.getCount((String)"villageBlacksmith", (Random)p_74875_2_));
this.generateStructureChestContents(p_74875_1_, p_74875_3_, p_74875_2_, 5, 1, 5, ChestGenHooks.getItems((String)"villageBlacksmith", (Random)p_74875_2_), ChestGenHooks.getCount((String)"villageBlacksmith", (Random)p_74875_2_));
}
}
for (i = 6; i <= 8; ++i) {
if (this.func_151548_a(p_74875_1_, i, 0, -1, p_74875_3_).func_149688_o() != Material.field_151579_a || this.func_151548_a(p_74875_1_, i, -1, -1, p_74875_3_).func_149688_o() == Material.field_151579_a) continue;
this.func_151550_a(p_74875_1_, Blocks.field_150446_ar, this.func_151555_a(Blocks.field_150446_ar, 3), i, 0, -1, p_74875_3_);
if (this.getBlockAtCurrentPosition(p_74875_1_, i, 0, -1, p_74875_3_).getMaterial() != Material.air || this.getBlockAtCurrentPosition(p_74875_1_, i, -1, -1, p_74875_3_).getMaterial() == Material.air) continue;
this.placeBlockAtCurrentPosition(p_74875_1_, Blocks.chest, this.getMetadataWithOffset(Blocks.chest, 3), i, 0, -1, p_74875_3_);
}
for (i = 0; i < 7; ++i) {
for (j = 0; j < 10; ++j) {
this.func_74871_b(p_74875_1_, j, 6, i, p_74875_3_);
this.func_151554_b(p_74875_1_, Blocks.field_150347_e, 0, j, -1, i, p_74875_3_);
this.clearCurrentPositionBlocksUpwards(p_74875_1_, j, 6, i, p_74875_3_);
this.placeBlockAtCurrentPosition(p_74875_1_, Blocks.planks, 0, j, -1, i, p_74875_3_);
}
}
this.func_74893_a(p_74875_1_, p_74875_3_, 7, 1, 1, 1);
this.spawnVillagers(p_74875_1_, p_74875_3_, 7, 1, 1, 1);
return true;
}
protected int func_74888_b(int p_74888_1_) {
protected int getMetadataWithOffset(int p_74888_1_) {
return 9527;
}
public static BladeHouse func_74915_a(StructureVillagePieces.Start p_74915_0_, List p_74915_1_, Random p_74915_2_, int p_74915_3_, int p_74915_4_, int p_74915_5_, int p_74915_6_, int p_74915_7_) {
StructureBoundingBox structureboundingbox = StructureBoundingBox.func_78889_a((int)p_74915_3_, (int)p_74915_4_, (int)p_74915_5_, (int)0, (int)0, (int)0, (int)10, (int)6, (int)7, (int)p_74915_6_);
return BladeHouse.func_74895_a((StructureBoundingBox)structureboundingbox) && StructureComponent.func_74883_a((List)p_74915_1_, (StructureBoundingBox)structureboundingbox) == null ? new BladeHouse(p_74915_0_, p_74915_7_, p_74915_2_, structureboundingbox, p_74915_6_) : null;
public static BladeHouse buildPiece(StructureVillagePieces.Start p_74915_0_, List p_74915_1_, Random p_74915_2_, int p_74915_3_, int p_74915_4_, int p_74915_5_, int p_74915_6_, int p_74915_7_) {
StructureBoundingBox structureboundingbox = StructureBoundingBox.getComponentToAddBoundingBox((int)p_74915_3_, (int)p_74915_4_, (int)p_74915_5_, (int)0, (int)0, (int)0, (int)10, (int)6, (int)7, (int)p_74915_6_);
return BladeHouse.canVillageGoDeeper((StructureBoundingBox)structureboundingbox) && StructureComponent.findIntersecting((List)p_74915_1_, (StructureBoundingBox)structureboundingbox) == null ? new BladeHouse(p_74915_0_, p_74915_7_, p_74915_2_, structureboundingbox, p_74915_6_) : null;
}
protected void func_143012_a(NBTTagCompound p_143012_1_) {
super.func_143012_a(p_143012_1_);
p_143012_1_.func_74757_a("Chest", this.hasMadeChest);
p_143012_1_.setBoolean("Chest", this.hasMadeChest);
}
protected void func_143011_b(NBTTagCompound p_143011_1_) {
super.func_143011_b(p_143011_1_);
this.hasMadeChest = p_143011_1_.func_74767_n("Chest");
this.hasMadeChest = p_143011_1_.hasKey("Chest");
}
}
@@ -30,101 +30,102 @@ import net.minecraftforge.common.ChestGenHooks;
public class BladeHouse2
extends StructureVillagePieces.Village {
private boolean hasMadeChest;
private int averageGroundLevel = -1;
public BladeHouse2() {
}
public BladeHouse2(StructureVillagePieces.Start p_i2103_1_, int p_i2103_2_, Random p_i2103_3_, StructureBoundingBox p_i2103_4_, int p_i2103_5_) {
super(p_i2103_1_, p_i2103_2_);
this.field_74885_f = p_i2103_5_;
this.field_74887_e = p_i2103_4_;
this.coordBaseMode = p_i2103_5_;
this.boundingBox = p_i2103_4_;
}
public boolean func_74875_a(World p_74875_1_, Random p_74875_2_, StructureBoundingBox p_74875_3_) {
public boolean addComponentParts(World p_74875_1_, Random p_74875_2_, StructureBoundingBox p_74875_3_) {
int j;
int i;
if (this.field_143015_k < 0) {
this.field_143015_k = this.func_74889_b(p_74875_1_, p_74875_3_);
if (this.field_143015_k < 0) {
if (this.averageGroundLevel < 0) {
this.averageGroundLevel = this.getAverageGroundLevel(p_74875_1_, p_74875_3_);
if (this.averageGroundLevel < 0) {
return true;
}
this.field_74887_e.func_78886_a(0, this.field_143015_k - this.field_74887_e.field_78894_e + 6 - 1, 0);
this.boundingBox.offset(0, this.averageGroundLevel - this.boundingBox.maxY + 6 - 1, 0);
}
this.func_151549_a(p_74875_1_, p_74875_3_, 0, 1, 0, 9, 4, 6, Blocks.field_150350_a, Blocks.field_150350_a, false);
this.func_151549_a(p_74875_1_, p_74875_3_, 0, 0, 0, 9, 0, 6, Blocks.field_150417_aV, Blocks.field_150417_aV, false);
this.func_151549_a(p_74875_1_, p_74875_3_, 0, 4, 0, 9, 4, 6, Blocks.field_150417_aV, Blocks.field_150417_aV, false);
this.func_151549_a(p_74875_1_, p_74875_3_, 0, 5, 0, 9, 5, 6, (Block)Blocks.field_150333_U, (Block)Blocks.field_150333_U, false);
this.func_151549_a(p_74875_1_, p_74875_3_, 1, 5, 1, 8, 5, 5, Blocks.field_150350_a, Blocks.field_150350_a, false);
this.func_151549_a(p_74875_1_, p_74875_3_, 1, 1, 0, 2, 3, 0, Blocks.field_150336_V, Blocks.field_150336_V, false);
this.func_151549_a(p_74875_1_, p_74875_3_, 0, 1, 0, 0, 4, 0, Blocks.field_150364_r, Blocks.field_150364_r, false);
this.func_151549_a(p_74875_1_, p_74875_3_, 3, 1, 0, 3, 4, 0, Blocks.field_150364_r, Blocks.field_150364_r, false);
this.func_151549_a(p_74875_1_, p_74875_3_, 0, 1, 6, 0, 4, 6, Blocks.field_150364_r, Blocks.field_150364_r, false);
this.func_151550_a(p_74875_1_, Blocks.field_150336_V, 0, 3, 3, 1, p_74875_3_);
this.func_151549_a(p_74875_1_, p_74875_3_, 3, 1, 2, 3, 3, 2, Blocks.field_150336_V, Blocks.field_150336_V, false);
this.func_151549_a(p_74875_1_, p_74875_3_, 4, 1, 3, 5, 3, 3, Blocks.field_150336_V, Blocks.field_150336_V, false);
this.func_151549_a(p_74875_1_, p_74875_3_, 0, 1, 1, 0, 3, 5, Blocks.field_150336_V, Blocks.field_150336_V, false);
this.func_151549_a(p_74875_1_, p_74875_3_, 1, 1, 6, 5, 3, 6, Blocks.field_150336_V, Blocks.field_150336_V, false);
this.func_151549_a(p_74875_1_, p_74875_3_, 5, 1, 0, 5, 3, 0, Blocks.field_150422_aJ, Blocks.field_150422_aJ, false);
this.func_151549_a(p_74875_1_, p_74875_3_, 9, 1, 0, 9, 3, 0, Blocks.field_150422_aJ, Blocks.field_150422_aJ, false);
this.func_151549_a(p_74875_1_, p_74875_3_, 6, 1, 4, 9, 4, 6, Blocks.field_150417_aV, Blocks.field_150417_aV, false);
this.func_151550_a(p_74875_1_, (Block)Blocks.field_150356_k, 0, 7, 1, 5, p_74875_3_);
this.func_151550_a(p_74875_1_, (Block)Blocks.field_150356_k, 0, 8, 1, 5, p_74875_3_);
this.func_151550_a(p_74875_1_, Blocks.field_150411_aY, 0, 9, 2, 5, p_74875_3_);
this.func_151550_a(p_74875_1_, Blocks.field_150411_aY, 0, 9, 2, 4, p_74875_3_);
this.func_151549_a(p_74875_1_, p_74875_3_, 7, 2, 4, 8, 2, 5, Blocks.field_150350_a, Blocks.field_150350_a, false);
this.func_151550_a(p_74875_1_, Blocks.field_150347_e, 0, 6, 1, 3, p_74875_3_);
this.func_151550_a(p_74875_1_, Blocks.field_150460_al, 0, 6, 2, 3, p_74875_3_);
this.func_151550_a(p_74875_1_, Blocks.field_150460_al, 0, 6, 3, 3, p_74875_3_);
this.func_151550_a(p_74875_1_, (Block)Blocks.field_150334_T, 0, 8, 1, 1, p_74875_3_);
this.func_151550_a(p_74875_1_, Blocks.field_150410_aZ, 0, 0, 2, 2, p_74875_3_);
this.func_151550_a(p_74875_1_, Blocks.field_150410_aZ, 0, 0, 2, 4, p_74875_3_);
this.func_151550_a(p_74875_1_, Blocks.field_150410_aZ, 0, 2, 2, 6, p_74875_3_);
this.func_151550_a(p_74875_1_, Blocks.field_150410_aZ, 0, 4, 2, 6, p_74875_3_);
this.func_151550_a(p_74875_1_, Blocks.field_150422_aJ, 0, 2, 1, 4, p_74875_3_);
this.func_151550_a(p_74875_1_, Blocks.field_150452_aw, 0, 2, 2, 4, p_74875_3_);
this.func_151550_a(p_74875_1_, Blocks.field_150336_V, 0, 1, 1, 5, p_74875_3_);
this.func_151550_a(p_74875_1_, Blocks.field_150446_ar, this.func_151555_a(Blocks.field_150446_ar, 3), 2, 1, 5, p_74875_3_);
this.func_151550_a(p_74875_1_, Blocks.field_150446_ar, this.func_151555_a(Blocks.field_150446_ar, 1), 1, 1, 4, p_74875_3_);
this.fillWithBlocks(p_74875_1_, p_74875_3_, 0, 1, 0, 9, 4, 6, Blocks.air, Blocks.air, false);
this.fillWithBlocks(p_74875_1_, p_74875_3_, 0, 0, 0, 9, 0, 6, Blocks.netherrack, Blocks.netherrack, false);
this.fillWithBlocks(p_74875_1_, p_74875_3_, 0, 4, 0, 9, 4, 6, Blocks.netherrack, Blocks.netherrack, false);
this.fillWithBlocks(p_74875_1_, p_74875_3_, 0, 5, 0, 9, 5, 6, (Block)Blocks.stonebrick, (Block)Blocks.stonebrick, false);
this.fillWithBlocks(p_74875_1_, p_74875_3_, 1, 5, 1, 8, 5, 5, Blocks.air, Blocks.air, false);
this.fillWithBlocks(p_74875_1_, p_74875_3_, 1, 1, 0, 2, 3, 0, Blocks.cobblestone, Blocks.cobblestone, false);
this.fillWithBlocks(p_74875_1_, p_74875_3_, 0, 1, 0, 0, 4, 0, Blocks.log, Blocks.log, false);
this.fillWithBlocks(p_74875_1_, p_74875_3_, 3, 1, 0, 3, 4, 0, Blocks.log, Blocks.log, false);
this.fillWithBlocks(p_74875_1_, p_74875_3_, 0, 1, 6, 0, 4, 6, Blocks.log, Blocks.log, false);
this.placeBlockAtCurrentPosition(p_74875_1_, Blocks.cobblestone, 0, 3, 3, 1, p_74875_3_);
this.fillWithBlocks(p_74875_1_, p_74875_3_, 3, 1, 2, 3, 3, 2, Blocks.cobblestone, Blocks.cobblestone, false);
this.fillWithBlocks(p_74875_1_, p_74875_3_, 4, 1, 3, 5, 3, 3, Blocks.cobblestone, Blocks.cobblestone, false);
this.fillWithBlocks(p_74875_1_, p_74875_3_, 0, 1, 1, 0, 3, 5, Blocks.cobblestone, Blocks.cobblestone, false);
this.fillWithBlocks(p_74875_1_, p_74875_3_, 1, 1, 6, 5, 3, 6, Blocks.cobblestone, Blocks.cobblestone, false);
this.fillWithBlocks(p_74875_1_, p_74875_3_, 5, 1, 0, 5, 3, 0, Blocks.glass_pane, Blocks.glass_pane, false);
this.fillWithBlocks(p_74875_1_, p_74875_3_, 9, 1, 0, 9, 3, 0, Blocks.glass_pane, Blocks.glass_pane, false);
this.fillWithBlocks(p_74875_1_, p_74875_3_, 6, 1, 4, 9, 4, 6, Blocks.netherrack, Blocks.netherrack, false);
this.placeBlockAtCurrentPosition(p_74875_1_, (Block)Blocks.fence, 0, 7, 1, 5, p_74875_3_);
this.placeBlockAtCurrentPosition(p_74875_1_, (Block)Blocks.fence, 0, 8, 1, 5, p_74875_3_);
this.placeBlockAtCurrentPosition(p_74875_1_, Blocks.fence_gate, 0, 9, 2, 5, p_74875_3_);
this.placeBlockAtCurrentPosition(p_74875_1_, Blocks.fence_gate, 0, 9, 2, 4, p_74875_3_);
this.fillWithBlocks(p_74875_1_, p_74875_3_, 7, 2, 4, 8, 2, 5, Blocks.air, Blocks.air, false);
this.placeBlockAtCurrentPosition(p_74875_1_, Blocks.planks, 0, 6, 1, 3, p_74875_3_);
this.placeBlockAtCurrentPosition(p_74875_1_, Blocks.ladder, 0, 6, 2, 3, p_74875_3_);
this.placeBlockAtCurrentPosition(p_74875_1_, Blocks.ladder, 0, 6, 3, 3, p_74875_3_);
this.placeBlockAtCurrentPosition(p_74875_1_, (Block)Blocks.ladder, 0, 8, 1, 1, p_74875_3_);
this.placeBlockAtCurrentPosition(p_74875_1_, Blocks.iron_bars, 0, 0, 2, 2, p_74875_3_);
this.placeBlockAtCurrentPosition(p_74875_1_, Blocks.iron_bars, 0, 0, 2, 4, p_74875_3_);
this.placeBlockAtCurrentPosition(p_74875_1_, Blocks.iron_bars, 0, 2, 2, 6, p_74875_3_);
this.placeBlockAtCurrentPosition(p_74875_1_, Blocks.iron_bars, 0, 4, 2, 6, p_74875_3_);
this.placeBlockAtCurrentPosition(p_74875_1_, Blocks.glass_pane, 0, 2, 1, 4, p_74875_3_);
this.placeBlockAtCurrentPosition(p_74875_1_, Blocks.torch, 0, 2, 2, 4, p_74875_3_);
this.placeBlockAtCurrentPosition(p_74875_1_, Blocks.cobblestone, 0, 1, 1, 5, p_74875_3_);
this.placeBlockAtCurrentPosition(p_74875_1_, Blocks.chest, this.getMetadataWithOffset(Blocks.chest, 3), 2, 1, 5, p_74875_3_);
this.placeBlockAtCurrentPosition(p_74875_1_, Blocks.chest, this.getMetadataWithOffset(Blocks.chest, 1), 1, 1, 4, p_74875_3_);
if (!this.hasMadeChest) {
int k;
i = this.func_74862_a(1);
j = this.func_74865_a(5, 5);
if (p_74875_3_.func_78890_b(j, i, k = this.func_74873_b(5, 5))) {
i = this.getXWithOffset(1, 5);
j = this.getZWithOffset(1, 5);
int k = this.getYWithOffset(1);
if (p_74875_3_.isVecInside(i, j, k)) {
this.hasMadeChest = true;
this.func_74879_a(p_74875_1_, p_74875_3_, p_74875_2_, 5, 1, 5, ChestGenHooks.getItems((String)"villageBlacksmith", (Random)p_74875_2_), ChestGenHooks.getCount((String)"villageBlacksmith", (Random)p_74875_2_));
this.generateStructureChestContents(p_74875_1_, p_74875_3_, p_74875_2_, 5, 1, 5, ChestGenHooks.getItems((String)"villageBlacksmith", (Random)p_74875_2_), ChestGenHooks.getCount((String)"villageBlacksmith", (Random)p_74875_2_));
}
}
for (i = 6; i <= 8; ++i) {
if (this.func_151548_a(p_74875_1_, i, 0, -1, p_74875_3_).func_149688_o() != Material.field_151579_a || this.func_151548_a(p_74875_1_, i, -1, -1, p_74875_3_).func_149688_o() == Material.field_151579_a) continue;
this.func_151550_a(p_74875_1_, Blocks.field_150446_ar, this.func_151555_a(Blocks.field_150446_ar, 3), i, 0, -1, p_74875_3_);
if (this.getBlockAtCurrentPosition(p_74875_1_, i, 0, -1, p_74875_3_).getMaterial() != Material.air || this.getBlockAtCurrentPosition(p_74875_1_, i, -1, -1, p_74875_3_).getMaterial() == Material.air) continue;
this.placeBlockAtCurrentPosition(p_74875_1_, Blocks.chest, this.getMetadataWithOffset(Blocks.chest, 3), i, 0, -1, p_74875_3_);
}
for (i = 0; i < 7; ++i) {
for (j = 0; j < 10; ++j) {
this.func_74871_b(p_74875_1_, j, 6, i, p_74875_3_);
this.func_151554_b(p_74875_1_, Blocks.field_150417_aV, 0, j, -1, i, p_74875_3_);
this.clearCurrentPositionBlocksUpwards(p_74875_1_, j, 6, i, p_74875_3_);
this.placeBlockAtCurrentPosition(p_74875_1_, Blocks.netherrack, 0, j, -1, i, p_74875_3_);
}
}
this.func_74893_a(p_74875_1_, p_74875_3_, 7, 1, 1, 1);
this.spawnVillagers(p_74875_1_, p_74875_3_, 7, 1, 1, 1);
return true;
}
protected int func_74888_b(int p_74888_1_) {
protected int getMetadataWithOffset(int p_74888_1_) {
return 6583;
}
public static BladeHouse2 func_74915_a(StructureVillagePieces.Start p_74915_0_, List p_74915_1_, Random p_74915_2_, int p_74915_3_, int p_74915_4_, int p_74915_5_, int p_74915_6_, int p_74915_7_) {
StructureBoundingBox structureboundingbox = StructureBoundingBox.func_78889_a((int)p_74915_3_, (int)p_74915_4_, (int)p_74915_5_, (int)0, (int)0, (int)0, (int)10, (int)6, (int)7, (int)p_74915_6_);
return BladeHouse2.func_74895_a((StructureBoundingBox)structureboundingbox) && StructureComponent.func_74883_a((List)p_74915_1_, (StructureBoundingBox)structureboundingbox) == null ? new BladeHouse2(p_74915_0_, p_74915_7_, p_74915_2_, structureboundingbox, p_74915_6_) : null;
public static BladeHouse2 buildPiece(StructureVillagePieces.Start p_74915_0_, List p_74915_1_, Random p_74915_2_, int p_74915_3_, int p_74915_4_, int p_74915_5_, int p_74915_6_, int p_74915_7_) {
StructureBoundingBox structureboundingbox = StructureBoundingBox.getComponentToAddBoundingBox((int)p_74915_3_, (int)p_74915_4_, (int)p_74915_5_, (int)0, (int)0, (int)0, (int)10, (int)6, (int)7, (int)p_74915_6_);
return BladeHouse2.canVillageGoDeeper((StructureBoundingBox)structureboundingbox) && StructureComponent.findIntersecting((List)p_74915_1_, (StructureBoundingBox)structureboundingbox) == null ? new BladeHouse2(p_74915_0_, p_74915_7_, p_74915_2_, structureboundingbox, p_74915_6_) : null;
}
protected void func_143012_a(NBTTagCompound p_143012_1_) {
super.func_143012_a(p_143012_1_);
p_143012_1_.func_74757_a("Chest", this.hasMadeChest);
p_143012_1_.setBoolean("Chest", this.hasMadeChest);
}
protected void func_143011_b(NBTTagCompound p_143011_1_) {
super.func_143011_b(p_143011_1_);
this.hasMadeChest = p_143011_1_.func_74767_n("Chest");
this.hasMadeChest = p_143011_1_.hasKey("Chest");
}
}
@@ -97,12 +97,12 @@ public class BladeLoader {
public static ItemSlashBladeModel blade_model_1;
public BladeLoader(FMLPreInitializationEvent event) {
blade = (ItemSlashBladeBasic)new ItemSlashBladeBasic(Item.ToolMaterial.IRON, 4.0f + Item.ToolMaterial.IRON.func_78000_c()).setDestructable(false).setModelTexture(new ResourceLocation("flammpfeil.slashblade", "model/unnamed/texture.png")).setRepairMaterialOreDic(new String[]{"ingotSteel", "nuggetSteel"}).func_77656_e(71).func_77655_b("flammpfeil.slashblade.unnamedBlade").func_111206_d("flammpfeil.slashblade:proudsoul").func_77637_a(CommonProxy.tab);
GameRegistry.registerItem((Item)blade, (String)"slashbladeUnnamed");
blade_model = (ItemSlashBladeModel)new ItemSlashBladeModel(Item.ToolMaterial.IRON, 2.0f + Item.ToolMaterial.IRON.func_78000_c()).setDestructable(false).setModelTexture(new ResourceLocation("flammpfeil.slashblade", "model/unnamed/texture_model.png")).setRepairMaterialOreDic(new String[]{"ingotSteel", "nuggetSteel"}).func_77656_e(51).func_77655_b("flammpfeil.slashblade.model_Blade").func_111206_d("flammpfeil.slashblade:proudsoul").func_77637_a(CommonProxy.tab);
GameRegistry.registerItem((Item)blade_model, (String)"slashbladeModel");
blade_model_1 = (ItemSlashBladeModel)new ItemSlashBladeModel(Item.ToolMaterial.IRON, 4.0f + Item.ToolMaterial.IRON.func_78000_c()).setDestructable(false).setModelTexture(new ResourceLocation("flammpfeil.slashblade", "model/unnamed/texture_model_1.png")).setRepairMaterialOreDic(new String[]{"ingotSteel", "nuggetSteel"}).func_77656_e(71).func_77655_b("flammpfeil.slashblade.model_Blade_1").func_111206_d("flammpfeil.slashblade:proudsoul").func_77637_a(CommonProxy.tab);
GameRegistry.registerItem((Item)blade_model_1, (String)"slashbladeModel_1");
blade = (ItemSlashBladeBasic)new ItemSlashBladeBasic(Item.ToolMaterial.IRON, 4.0f + Item.ToolMaterial.IRON.getDamageVsEntity()).setUnlocalizedName("flammpfeil.slashblade.unnamedBlade").setCreativeTab(CommonProxy.tab);
GameRegistry.registerItem(blade, "slashbladeUnnamed");
blade_model = (ItemSlashBladeModel)new ItemSlashBladeModel(Item.ToolMaterial.IRON, 2.0f + Item.ToolMaterial.IRON.getDamageVsEntity()).setUnlocalizedName("flammpfeil.slashblade.model_Blade").setCreativeTab(CommonProxy.tab);
GameRegistry.registerItem(blade_model, "slashbladeModel");
blade_model_1 = (ItemSlashBladeModel)new ItemSlashBladeModel(Item.ToolMaterial.IRON, 4.0f + Item.ToolMaterial.IRON.getDamageVsEntity()).setUnlocalizedName("flammpfeil.slashblade.model_Blade_1").setCreativeTab(CommonProxy.tab);
GameRegistry.registerItem(blade_model_1, "slashbladeModel_1");
if (ConfigLoader.Sakuya) {
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_sakuya());
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_sakuya2());
@@ -121,7 +121,7 @@ public class BladeLoader {
}
if (ConfigLoader.roukan_addon) {
if (Loader.isModLoaded((String)"CoFHCore")) {
rfBlade = new ItemSlashbladeRFS(Item.ToolMaterial.IRON, 4.0f).func_77637_a((CreativeTabs)SlashBlade.tab).func_111206_d("flammpfeil.slashblade:proudsoul");
rfBlade = new ItemSlashbladeRFS().setCreativeTab((CreativeTabs)SlashBlade.tab).setTextureName("flammpfeil.slashblade:proudsoul");
GameRegistry.registerItem((Item)rfBlade, (String)"RFBlade");
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_RFL());
}
@@ -130,7 +130,7 @@ public class BladeLoader {
}
}
if (Loader.isModLoaded((String)"IC2")) {
euBlade = new ItemSlashBladeEU(Item.ToolMaterial.IRON, 4.0f).func_77637_a((CreativeTabs)SlashBlade.tab).func_111206_d("flammpfeil.slashblade:proudsoul");
euBlade = new ItemSlashBladeEU().setCreativeTab((CreativeTabs)SlashBlade.tab).setTextureName("flammpfeil.slashblade:proudsoul");
GameRegistry.registerItem((Item)euBlade, (String)"EUBlade");
if (ConfigLoader.EU) {
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_1());
@@ -168,7 +168,7 @@ public class BladeLoader {
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_Smith_knife());
}
if (Loader.isModLoaded((String)"Thaumcraft")) {
xfblade = (ItemSlashblade_xf)new ItemSlashblade_xf(ThaumcraftApi.toolMatElemental, 4.0f + ThaumcraftApi.toolMatElemental.func_78000_c()).func_77656_e(40).func_77655_b("flammpfeil.slashblade.zephyr").func_111206_d("flammpfeil.slashblade:proudsoul").func_77637_a((CreativeTabs)SlashBlade.tab);
xfblade = (ItemSlashblade_xf)new ItemSlashblade_xf().setMaxStackSize(40).setUnlocalizedName("flammpfeil.slashblade.zephyr").setTextureName("flammpfeil.slashblade:proudsoul").setCreativeTab((CreativeTabs)SlashBlade.tab);
GameRegistry.registerItem((Item)xfblade, (String)"Blade_xf");
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_Void());
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_Bailou_xf());
@@ -42,7 +42,6 @@ import cpw.mods.fml.common.registry.VillagerRegistry;
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
import mods.flammpfeil.slashblade.SlashBlade;
import mods.flammpfeil.slashblade.item.crafting.RecipeCustomBlade;
import mods.flammpfeil.slashblade.util.SlashBladeHooks;
import net.langball.last_smith.AchievementListTLS;
import net.langball.last_smith.AddChestItem;
import net.langball.last_smith.BladeHouse;
@@ -71,6 +70,7 @@ import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.gen.structure.MapGenStructureIO;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.oredict.OreDictionary;
import net.minecraftforge.oredict.ShapelessOreRecipe;
@@ -95,12 +95,12 @@ public class CommonProxy {
books1 = new BookBasic_Blade();
hammer = new ItemHammer();
book2 = new BookLostArthurs();
blade_work = new Item().func_77637_a(tab).func_77655_b("blade_work").func_111206_d("lastsmith:item.blade");
crashed_iron = new Item().func_77637_a(tab).func_77655_b("crashed_iron").func_111206_d("lastsmith:item.crushediron");
steel_ingot = new Item().func_77637_a(tab).func_77655_b("steel_ingot").func_111206_d("lastsmith:item.steel_ingot");
tahamagane = new Item().func_77637_a(tab).func_77655_b("tahamagane").func_111206_d("lastsmith:item.tahamagane");
iron_sand = new Item().func_77637_a(tab).func_77655_b("iron_sand").func_111206_d("lastsmith:item.iron_sand");
coal_powder = new Item().func_77637_a(tab).func_77655_b("coal_powder").func_111206_d("lastsmith:item.coal_powder");
blade_work = new Item().setCreativeTab(tab).setUnlocalizedName("blade_work").setTextureName("lastsmith:item.blade");
crashed_iron = new Item().setCreativeTab(tab).setUnlocalizedName("crashed_iron").setTextureName("lastsmith:item.crushediron");
steel_ingot = new Item().setCreativeTab(tab).setUnlocalizedName("steel_ingot").setTextureName("lastsmith:item.steel_ingot");
tahamagane = new Item().setCreativeTab(tab).setUnlocalizedName("tahamagane").setTextureName("lastsmith:item.tahamagane");
iron_sand = new Item().setCreativeTab(tab).setUnlocalizedName("iron_sand").setTextureName("lastsmith:item.iron_sand");
coal_powder = new Item().setCreativeTab(tab).setUnlocalizedName("coal_powder").setTextureName("lastsmith:item.coal_powder");
GameRegistry.registerItem((Item)books1, (String)"book1");
GameRegistry.registerItem((Item)book2, (String)"book2");
GameRegistry.registerItem((Item)hammer, (String)"hammer");
@@ -130,27 +130,29 @@ public class CommonProxy {
if (FMLCommonHandler.instance().getSide().isClient()) {
VillagerRegistry.instance().registerVillagerSkin(6583, new ResourceLocation("lastsmith:textures/mobs/new_blade_villager.png"));
}
MapGenStructureIO.func_143034_b(BladeHouse.class, (String)"BladeHouse");
MapGenStructureIO.func_143031_a(BladeHouse.class, (String)"BladeHouse_");
MapGenStructureIO.func_143034_b(BladeHouse2.class, (String)"BladeHouse2");
MapGenStructureIO.func_143031_a(BladeHouse2.class, (String)"BladeHouse2_");
MapGenStructureIO.registerStructure(BladeHouse.class, (String)"BladeHouse");
MapGenStructureIO.registerStructure(BladeHouse.class, (String)"BladeHouse_");
MapGenStructureIO.registerStructure(BladeHouse2.class, (String)"BladeHouse2");
MapGenStructureIO.registerStructure(BladeHouse2.class, (String)"BladeHouse2_");
VillagerRegistry.instance().registerVillageCreationHandler((VillagerRegistry.IVillageCreationHandler)new VillageCreation2());
new AddChestItem().addChestItems();
}
EntityRegistry.registerModEntity(EntitySA.class, (String)"SAsanhua", (int)21, (Object)Last_worker.instance, (int)250, (int)200, (boolean)true);
EntityRegistry.registerModEntity(EntityStraw.class, (String)"Slash_straw", (int)22, (Object)Last_worker.instance, (int)32, (int)10, (boolean)false);
SlashBlade.addRecipe((String)"flammpfeil.slashblade.model_Blade", (IRecipe)new RecipeCustomBlade(new ItemStack((Item)BladeLoader.blade_model), new Object[]{"FDA", "DA ", "S ", Character.valueOf('D'), Items.field_151042_j, Character.valueOf('F'), new ItemStack(Items.field_151121_aF), Character.valueOf('A'), new ItemStack(Blocks.field_150364_r), Character.valueOf('S'), Blocks.field_150344_f}));
SlashBlade.addRecipe((String)"flammpfeil.slashblade.model_Blade_1", (IRecipe)new RecipeAwakeBlade(new ItemStack((Item)BladeLoader.blade_model_1), new ItemStack((Item)BladeLoader.blade_model), new Object[]{"DAD", "CBC", "DCD", Character.valueOf('A'), steel_ingot, Character.valueOf('B'), new ItemStack((Item)BladeLoader.blade_model), Character.valueOf('C'), "dyeOrange", Character.valueOf('D'), "logWood"}));
GameRegistry.addShapelessRecipe((ItemStack)new ItemStack(Items.field_151121_aF, 2), (Object[])new Object[]{books1});
GameRegistry.addShapelessRecipe((ItemStack)new ItemStack(iron_sand), (Object[])new Object[]{hammer, Blocks.field_150366_p});
GameRegistry.addShapelessRecipe((ItemStack)new ItemStack(coal_powder, 2), (Object[])new Object[]{hammer, new ItemStack(Items.field_151044_h)});
RecipeCustomBlade recipe = new RecipeCustomBlade(new ItemStack(BladeLoader.blade_model), new Object[]{"FDA", "DA ", "S ", Character.valueOf('D'), Items.speckled_melon, Character.valueOf('F'), new ItemStack(Items.gold_nugget), Character.valueOf('A'), new ItemStack(Blocks.log), Character.valueOf('S'), Blocks.sand});
SlashBlade.addRecipe("flammpfeil.slashblade.model_Blade", (IRecipe)recipe);
SlashBlade.addRecipe("flammpfeil.slashblade.model_Blade_1", (IRecipe)new RecipeAwakeBlade(new ItemStack(BladeLoader.blade_model_1), new ItemStack(BladeLoader.blade_model), new Object[]{"DAD", "CBC", "DCD", Character.valueOf('A'), steel_ingot, Character.valueOf('B'), new ItemStack(BladeLoader.blade_model), Character.valueOf('C'), "dyeOrange", Character.valueOf('D'), "logWood"}));
GameRegistry.addShapelessRecipe((ItemStack)new ItemStack(Items.gold_nugget, 2), (Object[])new Object[]{books1});
GameRegistry.addShapelessRecipe((ItemStack)new ItemStack(iron_sand), (Object[])new Object[]{hammer, Blocks.gravel});
GameRegistry.addShapelessRecipe((ItemStack)new ItemStack(coal_powder, 2), (Object[])new Object[]{hammer, new ItemStack(Items.blaze_powder)});
GameRegistry.addRecipe((IRecipe)new ShapelessOreRecipe(new ItemStack(crashed_iron), new Object[]{"dustIron", "dustCoal"}));
GameRegistry.addSmelting((Item)crashed_iron, (ItemStack)new ItemStack(tahamagane), (float)1.5f);
GameRegistry.addShapelessRecipe((ItemStack)new ItemStack(steel_ingot, 1), (Object[])new Object[]{tahamagane, tahamagane, hammer});
GameRegistry.addShapedRecipe((ItemStack)new ItemStack(hammer), (Object[])new Object[]{" #", "H#", Character.valueOf('#'), Items.field_151042_j, Character.valueOf('H'), Items.field_151055_y});
GameRegistry.addShapedRecipe((ItemStack)new ItemStack(straw), (Object[])new Object[]{" # ", " H ", " # ", Character.valueOf('#'), Blocks.field_150407_cf, Character.valueOf('H'), Items.field_151055_y});
GameRegistry.addShapedRecipe((ItemStack)new ItemStack(blade_work), (Object[])new Object[]{" #", "#H", Character.valueOf('#'), steel_ingot, Character.valueOf('H'), hammer});
SlashBlade.addRecipe((String)"flammpfeil.slashblade.unnamedBlade", (IRecipe)new RecipeCustomBlade(new ItemStack((Item)BladeLoader.blade), new Object[]{"AD", "AS", "FH", Character.valueOf('H'), hammer, Character.valueOf('E'), steel_ingot, Character.valueOf('D'), blade_work, Character.valueOf('F'), new ItemStack(Items.field_151121_aF), Character.valueOf('A'), new ItemStack(Blocks.field_150364_r), Character.valueOf('S'), Blocks.field_150344_f}));
GameRegistry.addShapedRecipe(new ItemStack(hammer), new Object[]{" #", "H#", Character.valueOf('#'), Items.speckled_melon, Character.valueOf('H'), Items.nether_star});
GameRegistry.addShapedRecipe(new ItemStack(straw), new Object[]{" # ", " H ", " # ", Character.valueOf('#'), Blocks.sponge, Character.valueOf('H'), Items.nether_star});
GameRegistry.addShapedRecipe(new ItemStack(blade_work), new Object[]{" #", "#H", Character.valueOf('#'), steel_ingot, Character.valueOf('H'), hammer});
RecipeCustomBlade recipe2 = new RecipeCustomBlade(new ItemStack(BladeLoader.blade), new Object[]{"AD", "AS", "FH", Character.valueOf('H'), hammer, Character.valueOf('E'), steel_ingot, Character.valueOf('D'), blade_work, Character.valueOf('F'), new ItemStack(Items.gold_nugget), Character.valueOf('A'), new ItemStack(Blocks.log), Character.valueOf('S'), Blocks.sand});
SlashBlade.addRecipe("flammpfeil.slashblade.unnamedBlade", (IRecipe)recipe2);
if (Loader.isModLoaded((String)"Thaumcraft")) {
swordOfZephyr = GameRegistry.findItem((String)"Thaumcraft", (String)"ItemSwordElemental");
if (ConfigLoader.others && ConfigLoader.Sakuya && ConfigLoader.roukan && ConfigLoader.oldtime) {
@@ -158,7 +160,7 @@ public class CommonProxy {
}
}
if (ConfigLoader.others && Loader.isModLoaded((String)"Botania")) {
SlashBladeHooks.EventBus.register((Object)new ManaRepair());
MinecraftForge.EVENT_BUS.register((Object)new ManaRepair());
}
}
@@ -170,13 +172,13 @@ public class CommonProxy {
GameRegistry.registerFuelHandler((IFuelHandler)new IFuelHandler(){
public int getBurnTime(ItemStack fuel) {
return coal_powder != fuel.func_77973_b() ? 0 : 800;
return coal_powder != fuel.getItem() ? 0 : 800;
}
});
GameRegistry.registerFuelHandler((IFuelHandler)new IFuelHandler(){
public int getBurnTime(ItemStack fuel) {
return straw != fuel.func_77973_b() ? 0 : 400;
return straw != fuel.getItem() ? 0 : 400;
}
});
}
@@ -10,6 +10,7 @@ package net.langball.last_smith;
import net.langball.last_smith.BladeLoader;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
public class CreativeTabsSmith
extends CreativeTabs {
@@ -17,7 +18,7 @@ extends CreativeTabs {
super(180, "lastsmith");
}
public Item func_78016_d() {
public Item getTabIconItem() {
return BladeLoader.blade;
}
}
@@ -28,14 +28,14 @@ extends ItemSlashBladeDetune {
super(par2EnumToolMaterial, baseAttackModifiers);
}
public void func_77624_a(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
par3List.add(StatCollector.func_74838_a((String)"blades.ps"));
super.func_77624_a(par1ItemStack, par2EntityPlayer, par3List, par4);
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
par3List.add(StatCollector.translateToLocal((String)"blades.ps"));
super.addInformation(par1ItemStack, par2EntityPlayer, par3List, par4);
}
public void func_77622_d(ItemStack p_77622_1_, World p_77622_2_, EntityPlayer p_77622_3_) {
super.func_77622_d(p_77622_1_, p_77622_2_, p_77622_3_);
p_77622_3_.func_71029_a((StatBase)AchievementListTLS.getAchievement("smith_blade"));
public ItemStack onItemRightClick(ItemStack p_77622_1_, World p_77622_2_, EntityPlayer p_77622_3_) {
p_77622_3_.addStat((StatBase)AchievementListTLS.getAchievement("smith_blade"), 1);
return super.onItemRightClick(p_77622_1_, p_77622_2_, p_77622_3_);
}
}
@@ -23,9 +23,9 @@ extends ItemSlashBladeDetune {
super(par2EnumToolMaterial, baseAttackModifiers);
}
public void func_77624_a(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
par3List.add(StatCollector.func_74838_a((String)"blades.ps.model"));
super.func_77624_a(par1ItemStack, par2EntityPlayer, par3List, par4);
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
par3List.add(StatCollector.translateToLocal((String)"blades.ps.model"));
super.addInformation(par1ItemStack, par2EntityPlayer, par3List, par4);
}
}
@@ -13,13 +13,13 @@ public final class LastSmithLimits {
if (player == null || stack == null || cooldownTicks <= 0) {
return false;
}
long now = player.field_70170_p.func_72820_D();
long now = player.worldObj.getTotalWorldTime();
NBTTagCompound tag = ItemSlashBlade.getItemTagCompound((ItemStack)stack);
long nextAllowed = tag.func_74763_f(key);
long nextAllowed = (long)tag.getFloat(key);
if (now < nextAllowed) {
return true;
}
tag.func_74772_a(key, now + (long)cooldownTicks);
tag.setLong(key, now + (long)cooldownTicks);
return false;
}
}
@@ -1,6 +1,6 @@
/*
* Decompiled with CFR 0.152.
*
*
* Could not load the following classes:
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
@@ -44,26 +44,26 @@ extends ShapedOreRecipe {
this.requiredBladeSub = requiredBladeSub;
}
int tagValueCompare(TagPropertyAccessor access, NBTTagCompound reqTag, NBTTagCompound srcTag) {
return access.get(reqTag).compareTo(access.get(srcTag));
int tagValueCompare(Object tagAccess, NBTTagCompound reqTag, NBTTagCompound srcTag) {
return 0;
}
public boolean matches(InventoryCrafting inv, World world) {
boolean result = this.baseMatches(inv, world);
if (result && this.requiredBladeMain != null && this.requiredBladeSub != null) {
ItemStack curIs = inv.func_70463_b(0, 1);
if (curIs != null && curIs.func_77973_b() instanceof ItemSlashBlade && curIs.func_77942_o()) {
ItemStack curIs = inv.getStackInSlot(0);
if (curIs != null && curIs.getItem() instanceof ItemSlashBlade && curIs.hasTagCompound()) {
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)this.requiredBladeMain);
NBTTagCompound srcTag = ItemSlashBlade.getItemTagCompound((ItemStack)curIs);
if (!curIs.func_77977_a().equals(this.requiredBladeMain.func_77977_a())) {
if (!curIs.getItem().equals(this.requiredBladeMain.getItem())) {
return false;
}
} else {
return false;
}
ItemStack curIs1 = inv.func_70463_b(2, 1);
if (curIs1 != null && curIs1.func_77973_b() instanceof ItemSlashBlade && curIs1.func_77942_o()) {
return curIs1.func_77977_a().equals(this.requiredBladeSub.func_77977_a());
ItemStack curIs1 = inv.getStackInSlot(2);
if (curIs1 != null && curIs1.getItem() instanceof ItemSlashBlade && curIs1.hasTagCompound()) {
return curIs1.getItem().equals(this.requiredBladeSub.getItem());
}
return false;
}
@@ -74,9 +74,9 @@ extends ShapedOreRecipe {
String key;
ItemStack tmp;
ItemStack result = this.baseCraftingResult(var1);
ItemStack curIs = var1.func_70463_b(1, 1);
NBTTagCompound oldTag = curIs.func_77978_p();
oldTag = (NBTTagCompound)oldTag.func_74737_b();
ItemStack curIs = var1.getStackInSlot(1);
NBTTagCompound oldTag = curIs.getTagCompound();
oldTag = oldTag != null ? oldTag : new NBTTagCompound();
NBTTagCompound newTag = ItemSlashBlade.getItemTagCompound((ItemStack)result);
if (ItemSlashBladeNamed.CurrentItemName.exists(newTag) && (tmp = SlashBlade.getCustomBlade((String)(key = ItemSlashBladeNamed.CurrentItemName.get(newTag)))) != null) {
result = tmp;
@@ -85,56 +85,57 @@ extends ShapedOreRecipe {
ItemSlashBlade.KillCount.set(newTag, ItemSlashBlade.KillCount.get(oldTag));
ItemSlashBlade.ProudSoul.set(newTag, ItemSlashBlade.ProudSoul.get(oldTag));
ItemSlashBlade.RepairCount.set(newTag, ItemSlashBlade.RepairCount.get(oldTag));
if (oldTag.func_74764_b("adjustX")) {
newTag.func_74776_a("adjustX", oldTag.func_74760_g("adjustX"));
if (oldTag.hasKey("adjustX")) {
newTag.setString("adjustX", oldTag.getString("adjustX"));
}
if (oldTag.func_74764_b("adjustY")) {
newTag.func_74776_a("adjustY", oldTag.func_74760_g("adjustY"));
if (oldTag.hasKey("adjustY")) {
newTag.setString("adjustY", oldTag.getString("adjustY"));
}
if (oldTag.func_74764_b("adjustZ")) {
newTag.func_74776_a("adjustZ", oldTag.func_74760_g("adjustZ"));
if (oldTag.hasKey("adjustZ")) {
newTag.setString("adjustZ", oldTag.getString("adjustZ"));
}
Map newItemEnchants = EnchantmentHelper.func_82781_a((ItemStack)result);
Map oldItemEnchants = EnchantmentHelper.func_82781_a((ItemStack)curIs);
oldTag = new NBTTagCompound();
Map newItemEnchants = EnchantmentHelper.getEnchantments((ItemStack)result);
Map oldItemEnchants = EnchantmentHelper.getEnchantments((ItemStack)curIs);
Iterator localIterator1 = oldItemEnchants.keySet().iterator();
while (localIterator1.hasNext()) {
int enchantIndex = (Integer)localIterator1.next();
Enchantment enchantment = Enchantment.field_77331_b[enchantIndex];
Enchantment enchantment = Enchantment.enchantmentsList[enchantIndex];
int destLevel = newItemEnchants.containsKey(enchantIndex) ? (Integer)newItemEnchants.get(enchantIndex) : 0;
int srcLevel = (Integer)oldItemEnchants.get(enchantIndex);
srcLevel = Math.max(srcLevel, destLevel);
srcLevel = Math.min(srcLevel, enchantment.func_77325_b());
boolean canApplyFlag = enchantment.func_92089_a(result);
srcLevel = Math.min(srcLevel, enchantment.getMaxLevel());
boolean canApplyFlag = enchantment.canApply(result);
if (!canApplyFlag) continue;
Iterator localIterator2 = newItemEnchants.keySet().iterator();
while (localIterator2.hasNext()) {
int curEnchantIndex = (Integer)localIterator2.next();
if (curEnchantIndex == enchantIndex || enchantment.func_77326_a(Enchantment.field_77331_b[curEnchantIndex])) continue;
if (curEnchantIndex == enchantIndex) continue;
canApplyFlag = false;
break;
}
if (!canApplyFlag) continue;
newItemEnchants.put(enchantIndex, srcLevel);
}
EnchantmentHelper.func_82782_a((Map)newItemEnchants, (ItemStack)result);
EnchantmentHelper.setEnchantments((Map)newItemEnchants, (ItemStack)result);
return result;
}
public boolean func_77569_a(InventoryCrafting inv, World world) {
public boolean setFull3D(InventoryCrafting inv, World world) {
return this.matches(inv, world);
}
public ItemStack func_77572_b(InventoryCrafting var1) {
public ItemStack setHasSubtypes(InventoryCrafting var1) {
return this.getCraftingResult(var1);
}
private boolean baseMatches(InventoryCrafting inv, World world) {
Object result = this.invokeDelegate(new String[]{"func_77569_a", "matches"}, new Class[]{InventoryCrafting.class, World.class}, new Object[]{inv, world});
Object result = this.invokeDelegate(new String[]{"setFull3D", "matches"}, new Class[]{InventoryCrafting.class, World.class}, new Object[]{inv, world});
return Boolean.TRUE.equals(result);
}
private ItemStack baseCraftingResult(InventoryCrafting inv) {
Object result = this.invokeDelegate(new String[]{"func_77572_b", "getCraftingResult"}, new Class[]{InventoryCrafting.class}, new Object[]{inv});
Object result = this.invokeDelegate(new String[]{"setHasSubtypes", "getCraftingResult"}, new Class[]{InventoryCrafting.class}, new Object[]{inv});
return result instanceof ItemStack ? (ItemStack)result : null;
}
@@ -24,14 +24,14 @@ import net.minecraft.village.MerchantRecipeList;
public class TradeBlade
implements VillagerRegistry.IVillageTradeHandler {
public void manipulateTradesForVillager(EntityVillager villager, MerchantRecipeList recipeList, Random random) {
recipeList.add((Object)new MerchantRecipe(new ItemStack(Items.field_151166_bC, 16), GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"flammpfeil.slashblade.named.namedblade_basic", (int)1)));
recipeList.add((Object)new MerchantRecipe(GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"flammpfeil.slashblade.named.namedblade", (int)1), new ItemStack(Items.field_151166_bC, 10)));
recipeList.add((Object)new MerchantRecipe(GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"flammpfeil.slashblade.named.namedblade1", (int)1), new ItemStack(Items.field_151166_bC, 10)));
recipeList.add((Object)new MerchantRecipe(GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"flammpfeil.slashblade.named.namedblade2", (int)1), new ItemStack(Items.field_151166_bC, 10)));
recipeList.add((Object)new MerchantRecipe(GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"flammpfeil.slashblade.named.namedblade3", (int)1), new ItemStack(Items.field_151166_bC, 10)));
recipeList.add((Object)new MerchantRecipe(GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"flammpfeil.slashblade.named.namedblade4", (int)1), new ItemStack(Items.field_151166_bC, 10)));
recipeList.add((Object)new MerchantRecipe(GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"flammpfeil.slashblade.named.template_re", (int)1), new ItemStack(Items.field_151166_bC, 6)));
recipeList.add((Object)new MerchantRecipe(GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"flammpfeil.slashblade.named.template_re2", (int)1), new ItemStack(Items.field_151166_bC, 6)));
recipeList.add((Object)new MerchantRecipe(new ItemStack(Items.blaze_rod, 16), GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"flammpfeil.slashblade.named.namedblade_basic", (int)1)));
recipeList.add((Object)new MerchantRecipe(GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"flammpfeil.slashblade.named.namedblade", (int)1), new ItemStack(Items.blaze_rod, 10)));
recipeList.add((Object)new MerchantRecipe(GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"flammpfeil.slashblade.named.namedblade1", (int)1), new ItemStack(Items.blaze_rod, 10)));
recipeList.add((Object)new MerchantRecipe(GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"flammpfeil.slashblade.named.namedblade2", (int)1), new ItemStack(Items.blaze_rod, 10)));
recipeList.add((Object)new MerchantRecipe(GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"flammpfeil.slashblade.named.namedblade3", (int)1), new ItemStack(Items.blaze_rod, 10)));
recipeList.add((Object)new MerchantRecipe(GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"flammpfeil.slashblade.named.namedblade4", (int)1), new ItemStack(Items.blaze_rod, 10)));
recipeList.add((Object)new MerchantRecipe(GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"flammpfeil.slashblade.named.template_re", (int)1), new ItemStack(Items.blaze_rod, 6)));
recipeList.add((Object)new MerchantRecipe(GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"flammpfeil.slashblade.named.template_re2", (int)1), new ItemStack(Items.blaze_rod, 6)));
}
}
@@ -26,16 +26,16 @@ import net.minecraft.village.MerchantRecipeList;
public class TradeBlade2
implements VillagerRegistry.IVillageTradeHandler {
public void manipulateTradesForVillager(EntityVillager villager, MerchantRecipeList recipeList, Random random) {
recipeList.add((Object)new MerchantRecipe(new ItemStack(Items.field_151166_bC, 6), new ItemStack((Item)SlashBlade.bladeWood)));
recipeList.add((Object)new MerchantRecipe(new ItemStack(Items.field_151166_bC, 10), new ItemStack((Item)SlashBlade.bladeWhiteSheath)));
recipeList.add((Object)new MerchantRecipe(new ItemStack(Items.field_151166_bC, 8), new ItemStack((Item)SlashBlade.bladeBambooLight)));
recipeList.add((Object)new MerchantRecipe(new ItemStack(Items.field_151166_bC, 10), new ItemStack((Item)SlashBlade.bladeSilverBambooLight)));
recipeList.add((Object)new MerchantRecipe(new ItemStack(Items.field_151166_bC, 16), new ItemStack((Item)SlashBlade.weapon)));
recipeList.add((Object)new MerchantRecipe(new ItemStack((Item)SlashBlade.bladeWood), new ItemStack(Items.field_151166_bC, 2)));
recipeList.add((Object)new MerchantRecipe(new ItemStack((Item)SlashBlade.bladeWhiteSheath), new ItemStack(Items.field_151166_bC, 6)));
recipeList.add((Object)new MerchantRecipe(new ItemStack((Item)SlashBlade.bladeBambooLight), new ItemStack(Items.field_151166_bC, 4)));
recipeList.add((Object)new MerchantRecipe(new ItemStack((Item)SlashBlade.bladeSilverBambooLight), new ItemStack(Items.field_151166_bC, 8)));
recipeList.add((Object)new MerchantRecipe(new ItemStack((Item)SlashBlade.weapon), new ItemStack(Items.field_151166_bC, 10)));
recipeList.add((Object)new MerchantRecipe(new ItemStack(Items.blaze_rod, 6), new ItemStack(Item.getItemById(SlashBlade.bladeWood))));
recipeList.add((Object)new MerchantRecipe(new ItemStack(Items.blaze_rod, 10), new ItemStack(Item.getItemById(SlashBlade.bladeWhiteSheath))));
recipeList.add((Object)new MerchantRecipe(new ItemStack(Items.blaze_rod, 8), new ItemStack(Item.getItemById(SlashBlade.bladeBambooLight))));
recipeList.add((Object)new MerchantRecipe(new ItemStack(Items.blaze_rod, 10), new ItemStack(Item.getItemById(SlashBlade.bladeSilverBambooLight))));
recipeList.add((Object)new MerchantRecipe(new ItemStack(Items.blaze_rod, 16), new ItemStack(Item.getItemById(SlashBlade.weapon))));
recipeList.add((Object)new MerchantRecipe(new ItemStack(Item.getItemById(SlashBlade.bladeWood)), new ItemStack(Items.blaze_rod, 2)));
recipeList.add((Object)new MerchantRecipe(new ItemStack(Item.getItemById(SlashBlade.bladeWhiteSheath)), new ItemStack(Items.blaze_rod, 6)));
recipeList.add((Object)new MerchantRecipe(new ItemStack(Item.getItemById(SlashBlade.bladeBambooLight)), new ItemStack(Items.blaze_rod, 4)));
recipeList.add((Object)new MerchantRecipe(new ItemStack(Item.getItemById(SlashBlade.bladeSilverBambooLight)), new ItemStack(Items.blaze_rod, 8)));
recipeList.add((Object)new MerchantRecipe(new ItemStack(Item.getItemById(SlashBlade.weapon)), new ItemStack(Items.blaze_rod, 10)));
}
}
@@ -19,7 +19,7 @@ import net.minecraft.world.gen.structure.StructureVillagePieces;
public class VillageCreation
implements VillagerRegistry.IVillageCreationHandler {
public StructureVillagePieces.PieceWeight getVillagePieceWeight(Random random, int i) {
return new StructureVillagePieces.PieceWeight(this.getComponentClass(), 50, MathHelper.func_76136_a((Random)random, (int)i, (int)(i + 1)));
return new StructureVillagePieces.PieceWeight(this.getComponentClass(), 50, i);
}
public Class<?> getComponentClass() {
@@ -27,7 +27,7 @@ implements VillagerRegistry.IVillageCreationHandler {
}
public Object buildComponent(StructureVillagePieces.PieceWeight villagePiece, StructureVillagePieces.Start startPiece, List pieces, Random random, int p1, int p2, int p3, int p4, int p5) {
return BladeHouse.func_74915_a(startPiece, pieces, random, p1, p2, p3, p4, p5);
return BladeHouse.buildPiece(startPiece, pieces, random, p1, p2, p3, p4, p5);
}
}
@@ -19,7 +19,7 @@ import net.minecraft.world.gen.structure.StructureVillagePieces;
public class VillageCreation2
implements VillagerRegistry.IVillageCreationHandler {
public StructureVillagePieces.PieceWeight getVillagePieceWeight(Random random, int i) {
return new StructureVillagePieces.PieceWeight(this.getComponentClass(), 50, MathHelper.func_76136_a((Random)random, (int)i, (int)(i + 1)));
return new StructureVillagePieces.PieceWeight(this.getComponentClass(), 50, i);
}
public Class<?> getComponentClass() {
@@ -27,7 +27,7 @@ implements VillagerRegistry.IVillageCreationHandler {
}
public Object buildComponent(StructureVillagePieces.PieceWeight villagePiece, StructureVillagePieces.Start startPiece, List pieces, Random random, int p1, int p2, int p3, int p4, int p5) {
return BladeHouse2.func_74915_a(startPiece, pieces, random, p1, p2, p3, p4, p5);
return BladeHouse2.buildPiece(startPiece, pieces, random, p1, p2, p3, p4, p5);
}
}
@@ -25,6 +25,7 @@
* org.lwjgl.input.Keyboard
*/
package net.langball.last_smith.addon;
import java.util.Random;
import cofh.api.energy.IEnergyContainerItem;
import cofh.api.item.IEmpowerableItem;
@@ -40,6 +41,7 @@ import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.EnumAction;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
@@ -51,47 +53,45 @@ extends ItemSlashBladeNamed
implements IEnergyContainerItem,
IEmpowerableItem {
public static final int DefaultStartupCost = 2000;
public static final TagPropertyAccessor.TagPropertyInteger StartupCost = new TagPropertyAccessor.TagPropertyInteger("StartupCost");
public static final TagPropertyAccessor.TagPropertyInteger StartupCost = new TagPropertyAccessor.TagPropertyInteger();
public static final int DefaultRunningCost = 100;
public static final TagPropertyAccessor.TagPropertyInteger RunningCost = new TagPropertyAccessor.TagPropertyInteger("RunningCost");
public static final TagPropertyAccessor.TagPropertyInteger RunningCost = new TagPropertyAccessor.TagPropertyInteger();
public int energyPerUse = 100;
public static int maxEnergy = 4000000;
public static int maxTransfer = 20000;
public static final TagPropertyAccessor.TagPropertyIntegerWithRange Energy = new TagPropertyAccessor.TagPropertyIntegerWithRange("Energy", 0, maxEnergy);
public static final TagPropertyAccessor.TagPropertyBoolean IsEmpowered = new TagPropertyAccessor.TagPropertyBoolean("Empowered");
public static final TagPropertyAccessor.TagPropertyIntegerWithRange Energy = new TagPropertyAccessor.TagPropertyIntegerWithRange();
public static final TagPropertyAccessor.TagPropertyBoolean IsEmpowered = new TagPropertyAccessor.TagPropertyBoolean();
public ItemSlashbladeRFS() {
super(Item.ToolMaterial.IRON, 4.0f);
}
public ItemSlashbladeRFS(Item.ToolMaterial par2EnumToolMaterial, float baseAttackModifiers) {
super(par2EnumToolMaterial, baseAttackModifiers);
}
public boolean func_77644_a(ItemStack stack, EntityLivingBase par2EntityLivingBase, EntityLivingBase par3EntityLivingBase) {
int rank = StylishRankManager.getStylishRank((Entity)par3EntityLivingBase);
int usage = (int)((double)this.energyPerUse * Math.pow(2.0, rank));
if (this.isEmpowered(stack) && this.extractEnergy(stack, usage, false) == usage && par3EntityLivingBase instanceof EntityPlayer) {
par2EntityLivingBase.field_70172_ad = 0;
par2EntityLivingBase.func_70097_a(DamageHelper.causePlayerFluxDamage((EntityPlayer)((EntityPlayer)par3EntityLivingBase)), (float)rank);
}
return super.func_77644_a(stack, par2EntityLivingBase, par3EntityLivingBase);
public EnumAction getItemUseAction(ItemStack stack) {
return EnumAction.bow;
}
public void func_77663_a(ItemStack sitem, World par2World, Entity par3Entity, int indexOfMainSlot, boolean isCurrent) {
public void onUpdate(ItemStack sitem, World par2World, Entity par3Entity, int indexOfMainSlot, boolean isCurrent) {
NBTTagCompound tag = ItemSlashbladeRFS.getItemTagCompound((ItemStack)sitem);
if (this.isEmpowered(sitem) && par3Entity != null && par2World.func_82737_E() % 10L == 0L && (!isCurrent || OnClick.get(tag).booleanValue() || par3Entity instanceof EntityPlayer && !((EntityPlayer)par3Entity).field_82175_bq && !((EntityPlayer)par3Entity).func_71039_bw())) {
if (!par2World.field_72995_K) {
int runingCost = RunningCost.get(tag, Integer.valueOf(100)).intValue();
if (this.isEmpowered(sitem) && par3Entity != null && par2World.getTotalWorldTime() % 10L == 0L && (!isCurrent || OnClick.get(tag) != null || par3Entity instanceof EntityPlayer && !((EntityPlayer)par3Entity).capabilities.isCreativeMode && ((EntityPlayer)par3Entity).inventory.currentItem != 0)) {
if (!par2World.isRemote) {
int runingCost = RunningCost.get(tag, Integer.valueOf(100));
this.extractEnergy(sitem, runingCost, false);
}
double d0 = field_77697_d.nextGaussian() * 0.02;
double d1 = field_77697_d.nextGaussian() * 0.02;
double d2 = field_77697_d.nextGaussian() * 0.02;
double d0 = (new Random()).nextGaussian() * 0.02;
double d1 = (new Random()).nextGaussian() * 0.02;
double d2 = (new Random()).nextGaussian() * 0.02;
double d3 = 10.0;
par2World.func_72869_a("witchMagic", par3Entity.field_70165_t + (double)(field_77697_d.nextFloat() * par3Entity.field_70130_N * 2.0f) - (double)par3Entity.field_70130_N - d0 * d3, par3Entity.field_70163_u, par3Entity.field_70161_v + (double)(field_77697_d.nextFloat() * par3Entity.field_70130_N * 2.0f) - (double)par3Entity.field_70130_N - d2 * d3, d0, d1, d2);
par2World.spawnParticle("witchMagic", par3Entity.posX + (double)((new Random()).nextFloat() * par3Entity.width * 2.0f) - (double)par3Entity.width - d0 * d3, par3Entity.posY, par3Entity.posZ + (double)((new Random()).nextFloat() * par3Entity.width * 2.0f) - (double)par3Entity.width - d2 * d3, d0, d1, d2);
}
super.func_77663_a(sitem, par2World, par3Entity, indexOfMainSlot, isCurrent);
super.onUpdate(sitem, par2World, par3Entity, indexOfMainSlot, isCurrent);
}
public void func_77624_a(ItemStack stack, EntityPlayer par2EntityPlayer, List list, boolean par4) {
super.func_77624_a(stack, par2EntityPlayer, list, par4);
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List list, boolean par4) {
super.addInformation(stack, par2EntityPlayer, list, par4);
if (StringHelper.displayShiftForDetail && !StringHelper.isShiftKeyDown()) {
list.add(StringHelper.shiftForDetails());
}
@@ -116,38 +116,38 @@ IEmpowerableItem {
public double getDurabilityForDisplay(ItemStack stack) {
if (!StringHelper.isShiftKeyDown()) {
return stack.func_77958_k() <= 0 ? 0.0 : (double)stack.func_77952_i() / (double)stack.func_77958_k();
return stack.getMaxDamage() <= 0 ? 0.0 : (double)stack.getItemDamageForDisplay() / (double)stack.getMaxDamage();
}
return 1.0 - (double)(this.getEnergyStored(stack) / this.getMaxEnergyStored(stack));
}
public void onStartupEmpowered(EntityPlayer player, ItemStack stack) {
int rankPoint = StylishRankManager.getTotalRankPoint((Entity)player);
int aRankPoint = (int)((double)StylishRankManager.RankRange * 5.0);
int rankPoint = StylishRankManager.getTotalRankLevel((Object)player);
int aRankPoint = (int)((double)100 * 5.0);
int rankAmount = aRankPoint - rankPoint;
int energy = this.getEnergyStored(stack);
rankAmount = Math.min(energy, rankAmount);
NBTTagCompound tag = ItemSlashbladeRFS.getItemTagCompound((ItemStack)stack);
int startupCost = StartupCost.get(tag, Integer.valueOf(1000)).intValue();
int startupCost = StartupCost.get(tag, Integer.valueOf(1000));
int energyUsage = startupCost;
if (energyUsage <= energy) {
if (player.field_70122_E) {
if (player.onGround) {
ItemSlashbladeRFS.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.Saya2);
} else {
ItemSlashbladeRFS.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.Iai);
}
OnClick.set(tag, Boolean.valueOf(true));
OnClick.set(tag, String.valueOf(true));
}
int rank = StylishRankManager.getStylishRank((Entity)player);
energyUsage = (int)((double)energyUsage * Math.pow(2.0, rank));
if (0 < rankAmount) {
energyUsage += rankAmount * 2;
StylishRankManager.addRankPoint((Entity)player, (int)rankAmount);
StylishRankManager.addRankPoint((Object)player, rankAmount, "lastsmith", 0);
}
this.extractEnergy(stack, energyUsage, false);
}
public void func_150895_a(Item par1, CreativeTabs par2CreativeTabs, List par3List) {
public void getSubItems(Item par1, CreativeTabs par2CreativeTabs, List par3List) {
}
public int receiveEnergy(ItemStack container, int maxReceive, boolean simulate) {
@@ -198,18 +198,18 @@ IEmpowerableItem {
NBTTagCompound tag = ItemSlashbladeRFS.getItemTagCompound((ItemStack)stack);
if (this.isEmpowered(stack)) {
boolean cancel = false;
if (IsBroken.get(tag).booleanValue()) {
if (IsBroken.get(tag)) {
cancel = true;
}
if (cancel) {
player.field_70170_p.func_72956_a((Entity)player, "note.bass", 0.4f, 1.0f);
player.worldObj.playSoundAtEntity((Entity)player, "note.bass", 0.4f, 1.0f);
this.setEmpoweredState(stack, false);
return;
}
player.field_70170_p.func_72956_a((Entity)player, "ambient.weather.thunder", 0.4f, 1.0f);
player.worldObj.playSoundAtEntity((Entity)player, "ambient.weather.thunder", 0.4f, 1.0f);
this.onStartupEmpowered(player, stack);
} else {
player.field_70170_p.func_72956_a((Entity)player, "random.orb", 0.2f, 0.6f);
player.worldObj.playSoundAtEntity((Entity)player, "random.orb", 0.2f, 0.6f);
}
}
}
@@ -30,6 +30,7 @@ import mods.flammpfeil.slashblade.named.event.LoadEvent;
import mods.flammpfeil.slashblade.stats.AchievementList;
import net.langball.last_smith.AchievementListTLS;
import net.langball.last_smith.louguan.sa.SAbailou3;
import net.minecraft.stats.Achievement;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
@@ -48,9 +49,9 @@ public class ItemSlashblade_BOT {
ItemSlashBlade.specialAttacks.put(56709, new SAbailou3());
String name = "flammpfeil.slashblade.named.yingjian";
String name2 = "flammpfeil.slashblade.named.roukan";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(91));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)7.0f);
@@ -61,19 +62,19 @@ public class ItemSlashblade_BOT {
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(2));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
customblade.func_77966_a(Enchantment.field_77345_t, 8);
customblade.func_77966_a(Enchantment.field_77338_j, 2);
customblade.func_77966_a(Enchantment.field_77335_o, 2);
customblade.addEnchantment(Enchantment.sharpness, 8);
customblade.addEnchantment(Enchantment.knockback, 2);
customblade.addEnchantment(Enchantment.fireAspect, 2);
NBTTagCompound etag = new NBTTagCompound();
tag.func_74782_a("SB.SEffect", (NBTBase)etag);
etag.func_74768_a("ManaRepair", 1);
tag.setTag("SB.SEffect", (NBTBase)etag);
etag.setInteger("ManaRepair", 1);
ItemStack sphere = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack soul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"proudsoul", (int)1);
ItemStack terraBlade = GameRegistry.findItemStack((String)"Botania", (String)"terraSword", (int)1);
ItemStack vineBall = GameRegistry.findItemStack((String)"Botania", (String)"vineBall", (int)1);
ItemStack thornChakram = GameRegistry.findItemStack((String)"Botania", (String)"thornChakram", (int)1);
RecipeRuneAltar runeAltarRecipe = BotaniaAPI.registerRuneAltarRecipe((ItemStack)GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"flammpfeil.slashblade.named.yingjian", (int)1), (int)1000, (Object[])new Object[]{GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"flammpfeil.slashblade.named.roukan", (int)1), sphere, "gaiaIngot", vineBall, new ItemStack(Blocks.field_150364_r), thornChakram, "ingotTerrasteel", new ItemStack(Items.field_151055_y)});
AchievementListTLS.registerCraftingAchievement(name, customblade, AchievementList.getAchievement((String)name2));
RecipeRuneAltar runeAltarRecipe = BotaniaAPI.registerRuneAltarRecipe((ItemStack)GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"flammpfeil.slashblade.named.yingjian", (int)1), (int)1000, (Object[])new Object[]{GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"flammpfeil.slashblade.named.roukan", (int)1), sphere, "gaiaIngot", vineBall, new ItemStack(Blocks.log), thornChakram, "ingotTerrasteel", new ItemStack(Items.nether_star)});
AchievementListTLS.registerCraftingAchievement(name, customblade, (Achievement)AchievementList.getAchievement(name2));
}
}
@@ -29,6 +29,7 @@ import mods.flammpfeil.slashblade.named.event.LoadEvent;
import mods.flammpfeil.slashblade.stats.AchievementList;
import net.langball.last_smith.AchievementListTLS;
import net.langball.last_smith.BladeLoader;
import net.minecraft.stats.Achievement;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
@@ -45,7 +46,7 @@ public class ItemSlashblade_RFL {
String name2 = "flammpfeil.slashblade.named.roukan";
ItemStack customblade = new ItemStack(BladeLoader.rfBlade, 1, 0);
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(120));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)12.0f);
@@ -56,9 +57,9 @@ public class ItemSlashblade_RFL {
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(2));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
customblade.func_77966_a(Enchantment.field_77345_t, 8);
customblade.func_77966_a(Enchantment.field_77338_j, 8);
customblade.func_77966_a(Enchantment.field_77335_o, 2);
customblade.addEnchantment(Enchantment.sharpness, 8);
customblade.addEnchantment(Enchantment.knockback, 8);
customblade.addEnchantment(Enchantment.fireAspect, 2);
ItemStack custombladeReqired = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name2, (int)1);
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(1000));
@@ -67,8 +68,8 @@ public class ItemSlashblade_RFL {
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"DAD", "CBC", "ECE", Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack(Blocks.field_150467_bQ), Character.valueOf('E'), Items.field_151122_aG}));
AchievementListTLS.registerCraftingAchievement(name, customblade, AchievementList.getAchievement((String)name2));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"DAD", "CBC", "ECE", Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack(Blocks.obsidian), Character.valueOf('E'), Items.ender_pearl}));
AchievementListTLS.registerCraftingAchievement(name, customblade, (Achievement)AchievementList.getAchievement(name2));
}
}
@@ -1,17 +1,3 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.common.eventhandler.SubscribeEvent
* cpw.mods.fml.relauncher.ReflectionHelper
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.entity.EntityBladeStand
* mods.flammpfeil.slashblade.util.SlashBladeEvent$OnEntityBladeStandUpdateEvent
* net.minecraft.item.ItemStack
* net.minecraft.nbt.NBTTagCompound
* net.minecraft.tileentity.TileEntity
* vazkii.botania.common.block.tile.mana.TilePool
*/
package net.langball.last_smith.addon;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
@@ -32,23 +18,23 @@ public class ManaRepair {
try {
TileEntity tile;
EntityBladeStand stand = (EntityBladeStand)ReflectionHelper.getPrivateValue(SlashBladeEvent.OnEntityBladeStandUpdateEvent.class, event, "entityBladeStand");
if (!stand.hasBlade()) {
if (stand == null) {
return;
}
ItemStack blade = event.blade;
if (!blade.func_77951_h()) {
if (stand.getBlade() == null) {
return;
}
ItemStack blade = (ItemStack)stand.getBlade();
if (!blade.isItemDamaged()) {
return;
}
NBTTagCompound tag = ItemSlashBlade.getItemTagCompound((ItemStack)blade);
NBTTagCompound etag = tag.func_74775_l("SB.SEffect");
int reqiredLevel = etag.func_74762_e(EffectKey);
NBTTagCompound etag = tag.getCompoundTag("SB.SEffect");
int reqiredLevel = etag.getInteger(EffectKey);
if (reqiredLevel == 0) {
return;
}
int x = (int)Math.floor(stand.field_70165_t);
int y = (int)Math.floor(stand.field_70163_u);
int z = (int)Math.floor(stand.field_70161_v);
if ((tile = stand.field_70170_p.func_147438_o(x, --y, z)) == null) {
if ((tile = stand.worldObj.getTileEntity(0, 0, 0)) == null) {
return;
}
if (!(tile instanceof TilePool)) {
@@ -60,7 +46,7 @@ public class ManaRepair {
return;
}
pool.recieveMana(-75);
blade.func_77964_b(blade.func_77960_j() - 3);
blade.setItemDamage(blade.getItemDamage() - 3);
}
catch (Throwable throwable) {
// empty catch block
@@ -59,30 +59,30 @@ public class ThaumLoader {
ThaumcraftApi.registerObjectTag((ItemStack)soul, (AspectList)new AspectList().add(Aspect.METAL, 1).add(Aspect.SOUL, 2).add(Aspect.FIRE, 2).add(Aspect_Blade, 1).add(Aspect_proud, 4));
this.Infusion_basic(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.muramasa"), ingot);
this.Infusion_basic(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.agito"), tinySoul);
this.Infusion_basic(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.yasha"), new ItemStack(Blocks.field_150348_b));
this.Infusion_basic(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.yashatrue"), new ItemStack(Blocks.field_150417_aV));
this.Infusion_basic(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.doutanuki"), new ItemStack(Blocks.field_150339_S));
this.Infusion_basic(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.bamboolight_nice"), new ItemStack(Items.field_151041_m));
this.Infusion_basic(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.yasha"), new ItemStack(Blocks.grass));
this.Infusion_basic(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.yashatrue"), new ItemStack(Blocks.netherrack));
this.Infusion_basic(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.doutanuki"), new ItemStack(Blocks.stone));
this.Infusion_basic(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.bamboolight_nice"), new ItemStack(Items.fermented_spider_eye));
this.Infusion_normal(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.orotiagito"), soul, sphere);
this.Infusion_normal(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.fox.white"), new ItemStack(Blocks.field_150371_ca), new ItemStack(Items.field_151015_O));
this.Infusion_normal(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.fox.black"), new ItemStack(Blocks.field_150402_ci), new ItemStack(Items.field_151015_O));
this.Infusion_normal(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.sange"), new ItemStack(Blocks.field_150343_Z), new ItemStack(Blocks.field_150425_aM));
this.Infusion_normal(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.louguan_fake"), new ItemStack((Block)Blocks.field_150328_O), tinySoul);
this.Infusion_normal(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.sakuyablade"), new ItemStack((Block)Blocks.field_150328_O), new ItemStack(Items.field_151073_bk));
this.Infusion_normal(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.ginkgoblade"), new ItemStack((Block)Blocks.field_150327_N), new ItemStack(Items.field_151073_bk));
this.Infusion_normal(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.snowblade"), new ItemStack(Blocks.field_150433_aE), new ItemStack(Items.field_151073_bk));
this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.tagayasan"), sphere, new ItemStack(Items.field_151079_bi));
this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.yamato"), new ItemStack(Blocks.field_150484_ah), new ItemStack(GameRegistry.findItem((String)"Thaumcraft", (String)"blockCrystal")));
this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.koseki"), new ItemStack(Blocks.field_150343_Z), new ItemStack(Items.field_151156_bN));
this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.yuzukitukumo"), new ItemStack(Blocks.field_150424_aL), new ItemStack(Items.field_151073_bk));
this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.roukan"), sphere, new ItemStack((Block)Blocks.field_150328_O));
this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.bailou"), sphere, new ItemStack(Items.field_151073_bk));
this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.shurablade"), new ItemStack(Blocks.field_150425_aM), new ItemStack(Items.field_151156_bN));
this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.murakumo"), new ItemStack(Blocks.field_150484_ah), new ItemStack(Items.field_151156_bN));
this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.kogawa_super"), new ItemStack(Items.field_151073_bk), new ItemStack(GameRegistry.findItem((String)"Thaumcraft", (String)"blockCrystal")));
this.Infusion_normal(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.fox.white"), new ItemStack(Blocks.wool), new ItemStack(Items.speckled_melon));
this.Infusion_normal(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.fox.black"), new ItemStack(Blocks.trapped_chest), new ItemStack(Items.speckled_melon));
this.Infusion_normal(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.sange"), new ItemStack(Blocks.sandstone), new ItemStack(Blocks.brick_stairs));
this.Infusion_normal(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.louguan_fake"), new ItemStack((Block)Blocks.stone_stairs), tinySoul);
this.Infusion_normal(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.sakuyablade"), new ItemStack((Block)Blocks.stone_stairs), new ItemStack(Items.ender_pearl));
this.Infusion_normal(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.ginkgoblade"), new ItemStack((Block)Blocks.oak_stairs), new ItemStack(Items.ender_pearl));
this.Infusion_normal(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.snowblade"), new ItemStack(Blocks.stone_slab), new ItemStack(Items.ender_pearl));
this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.tagayasan"), sphere, new ItemStack(Items.diamond));
this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.yamato"), new ItemStack(Blocks.crafting_table), new ItemStack(GameRegistry.findItem((String)"Thaumcraft", (String)"blockCrystal")));
this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.koseki"), new ItemStack(Blocks.sandstone), new ItemStack(Items.ghast_tear));
this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.yuzukitukumo"), new ItemStack(Blocks.brick_block), new ItemStack(Items.ender_pearl));
this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.roukan"), sphere, new ItemStack((Block)Blocks.stone_stairs));
this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.bailou"), sphere, new ItemStack(Items.ender_pearl));
this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.shurablade"), new ItemStack(Blocks.brick_stairs), new ItemStack(Items.ghast_tear));
this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.murakumo"), new ItemStack(Blocks.crafting_table), new ItemStack(Items.ghast_tear));
this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.kogawa_super"), new ItemStack(Items.ender_pearl), new ItemStack(GameRegistry.findItem((String)"Thaumcraft", (String)"blockCrystal")));
this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.void_blade"), GameRegistry.findItemStack((String)"Thaumcraft", (String)"ItemSwordVoid", (int)1), new ItemStack(GameRegistry.findItem((String)"Thaumcraft", (String)"blockCrystal")));
ThaumcraftApi.addInfusionCraftingRecipe((String)"Roukan_xf", (Object)SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.roukan_xf"), (int)1, (AspectList)new AspectList().add(Aspect_Blade, 64).add(Aspect.WEAPON, 64).add(Aspect_proud, 64).add(Aspect.ENERGY, 64).add(Aspect.VOID, 64).add(Aspect.AIR, 128).add(Aspect.WATER, 128).add(Aspect.FIRE, 128).add(Aspect.EARTH, 128), (ItemStack)SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.roukan"), (ItemStack[])new ItemStack[]{ingot, soul, sphere, sphere, ingot, ingot, new ItemStack(crystal), new ItemStack(Items.field_151156_bN), ingot, ingot});
ThaumcraftApi.addInfusionCraftingRecipe((String)"Bailou_xf", (Object)SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.bailou_xf"), (int)1, (AspectList)new AspectList().add(Aspect_Blade, 64).add(Aspect.WEAPON, 64).add(Aspect_proud, 64).add(Aspect.ENERGY, 64).add(Aspect.VOID, 64).add(Aspect.AIR, 128).add(Aspect.WATER, 128).add(Aspect.FIRE, 128).add(Aspect.EARTH, 128), (ItemStack)SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.bailou"), (ItemStack[])new ItemStack[]{ingot, soul, sphere, sphere, ingot, ingot, new ItemStack(crystal), new ItemStack(Items.field_151073_bk), ingot, ingot});
ThaumcraftApi.addInfusionCraftingRecipe((String)"Roukan_xf", (Object)SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.roukan_xf"), (int)1, (AspectList)new AspectList().add(Aspect_Blade, 64).add(Aspect.WEAPON, 64).add(Aspect_proud, 64).add(Aspect.ENERGY, 64).add(Aspect.VOID, 64).add(Aspect.AIR, 128).add(Aspect.WATER, 128).add(Aspect.FIRE, 128).add(Aspect.EARTH, 128), (ItemStack)SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.roukan"), (ItemStack[])new ItemStack[]{ingot, soul, sphere, sphere, ingot, ingot, new ItemStack(crystal), new ItemStack(Items.ghast_tear), ingot, ingot});
ThaumcraftApi.addInfusionCraftingRecipe((String)"Bailou_xf", (Object)SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.bailou_xf"), (int)1, (AspectList)new AspectList().add(Aspect_Blade, 64).add(Aspect.WEAPON, 64).add(Aspect_proud, 64).add(Aspect.ENERGY, 64).add(Aspect.VOID, 64).add(Aspect.AIR, 128).add(Aspect.WATER, 128).add(Aspect.FIRE, 128).add(Aspect.EARTH, 128), (ItemStack)SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.bailou"), (ItemStack[])new ItemStack[]{ingot, soul, sphere, sphere, ingot, ingot, new ItemStack(crystal), new ItemStack(Items.ender_pearl), ingot, ingot});
}
private void TCinit() {
@@ -98,11 +98,11 @@ public class ThaumLoader {
ThaumcraftApi.registerObjectTag((ItemStack)new ItemStack(CommonProxy.tahamagane), (AspectList)new AspectList().add(Aspect.METAL, 14));
ResearchCategories.registerCategory((String)RESEARCH_Blade, (ResourceLocation)new ResourceLocation("flammpfeil.slashblade", "textures/items/proudsoul.png"), (ResourceLocation)new ResourceLocation("lastsmith", "textures/gui/guiSlashblade.png"));
ResearchCategories.addResearch((ResearchItem)new ResearchItem("SlashBlade", RESEARCH_Blade, null, 0, 0, 1, new ResourceLocation("lastsmith", "textures/aspects/blade.png")).setPages(new ResearchPage[]{new ResearchPage("SlashBlade", "tc.research_page.SlashBlade"), new ResearchPage(new AspectList().add(Aspect_Blade, 1).add(Aspect_proud, 1).add(Aspect.WEAPON, 1).add(Aspect.VOID, 1))}).setAutoUnlock().setRound());
ResearchCategories.addResearch((ResearchItem)new ResearchItem("Infusion_basic", RESEARCH_Blade, new AspectList().add(Aspect_Blade, 1).add(Aspect.ORDER, 1).add(Aspect.CRAFT, 1), -2, 0, 1, new ItemStack((Item)SlashBlade.bladeWood, 1)).setPages(new ResearchPage[]{new ResearchPage("Infusion_basic", "tc.research_page.Infusion_basic"), new ResearchPage(this.Infusion_basic(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.muramasa"), ingot)), new ResearchPage(this.Infusion_basic(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.agito"), tinySoul)), new ResearchPage(this.Infusion_basic(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.orotiagito"), soul)), new ResearchPage(this.Infusion_basic(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.yasha"), new ItemStack(Blocks.field_150348_b))), new ResearchPage(this.Infusion_basic(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.yashatrue"), new ItemStack(Blocks.field_150417_aV))), new ResearchPage(this.Infusion_basic(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.doutanuki"), new ItemStack(Blocks.field_150339_S))), new ResearchPage(this.Infusion_basic(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.bamboolight_nice"), new ItemStack(Items.field_151041_m)))}).setParents(new String[]{"SlashBlade"}));
ResearchCategories.addResearch((ResearchItem)new ResearchItem("Roukan_xf", RESEARCH_Blade, new AspectList().add(Aspect_Blade, 1).add(Aspect.AIR, 1).add(Aspect.PLANT, 1), 2, -2, 1, SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.roukan_xf")).setPages(new ResearchPage[]{new ResearchPage("Roukan_xf", "tc.research_page.Roukan_xf"), new ResearchPage(ThaumcraftApi.addInfusionCraftingRecipe((String)"Roukan_xf", (Object)SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.roukan_xf"), (int)1, (AspectList)new AspectList().add(Aspect_Blade, 64).add(Aspect.WEAPON, 64).add(Aspect_proud, 64).add(Aspect.ENERGY, 64).add(Aspect.VOID, 64).add(Aspect.AIR, 128).add(Aspect.WATER, 128).add(Aspect.FIRE, 128).add(Aspect.EARTH, 128), (ItemStack)SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.roukan"), (ItemStack[])new ItemStack[]{ingot, soul, sphere, sphere, ingot, ingot, new ItemStack(crystal), new ItemStack(Items.field_151156_bN), ingot, ingot}))}).setParents(new String[]{"SlashBlade"}));
ResearchCategories.addResearch((ResearchItem)new ResearchItem("Bailou_xf", RESEARCH_Blade, new AspectList().add(Aspect_Blade, 1).add(Aspect.AIR, 1).add(Aspect.SOUL, 1), 2, 2, 1, SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.bailou_xf")).setPages(new ResearchPage[]{new ResearchPage("Bailou_xf", "tc.research_page.Bailou_xf"), new ResearchPage(ThaumcraftApi.addInfusionCraftingRecipe((String)"Bailou_xf", (Object)SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.bailou_xf"), (int)1, (AspectList)new AspectList().add(Aspect_Blade, 64).add(Aspect.WEAPON, 64).add(Aspect_proud, 64).add(Aspect.ENERGY, 64).add(Aspect.VOID, 64).add(Aspect.AIR, 128).add(Aspect.WATER, 128).add(Aspect.FIRE, 128).add(Aspect.EARTH, 128), (ItemStack)SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.bailou"), (ItemStack[])new ItemStack[]{ingot, soul, sphere, sphere, ingot, ingot, new ItemStack(crystal), new ItemStack(Items.field_151073_bk), ingot, ingot}))}).setParents(new String[]{"SlashBlade"}));
ResearchCategories.addResearch((ResearchItem)new ResearchItem("Infusion_normal", RESEARCH_Blade, new AspectList().add(Aspect_Blade, 1).add(Aspect.SOUL, 1).add(Aspect.VOID, 1), -4, 0, 1, new ItemStack((Item)SlashBlade.bladeWhiteSheath, 1)).setPages(new ResearchPage[]{new ResearchPage("Infusion_normal", "tc.research_page.Infusion_normal"), new ResearchPage(this.Infusion_normal(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.fox.white"), new ItemStack(Blocks.field_150371_ca), new ItemStack(Items.field_151015_O))), new ResearchPage(this.Infusion_normal(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.fox.black"), new ItemStack(Blocks.field_150402_ci), new ItemStack(Items.field_151015_O))), new ResearchPage(this.Infusion_normal(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.sange"), new ItemStack(Blocks.field_150343_Z), new ItemStack(Blocks.field_150425_aM))), new ResearchPage(this.Infusion_normal(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.orotiagito"), soul, sphere)), new ResearchPage(this.Infusion_normal(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.louguan_fake"), new ItemStack((Block)Blocks.field_150328_O), tinySoul)), new ResearchPage(this.Infusion_normal(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.sakuyablade"), new ItemStack((Block)Blocks.field_150328_O), new ItemStack(Items.field_151073_bk))), new ResearchPage(this.Infusion_normal(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.ginkgoblade"), new ItemStack((Block)Blocks.field_150327_N), new ItemStack(Items.field_151073_bk))), new ResearchPage(this.Infusion_normal(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.snowblade"), new ItemStack(Blocks.field_150433_aE), new ItemStack(Items.field_151073_bk)))}).setParents(new String[]{"Infusion_basic"}));
ResearchCategories.addResearch((ResearchItem)new ResearchItem("Infusion_hard", RESEARCH_Blade, new AspectList().add(Aspect_Blade, 1).add(Aspect.VOID, 1).add(Aspect.DARKNESS, 1), -6, 0, 1, new ItemStack((Item)SlashBlade.weapon, 1)).setPages(new ResearchPage[]{new ResearchPage("Infusion_hard", "tc.research_page.Infusion_hard"), new ResearchPage(this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.yamato"), new ItemStack(Blocks.field_150484_ah), new ItemStack(GameRegistry.findItem((String)"Thaumcraft", (String)"blockCrystal")))), new ResearchPage(this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.koseki"), new ItemStack(Blocks.field_150343_Z), new ItemStack(Items.field_151156_bN))), new ResearchPage(this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.tagayasan"), sphere, new ItemStack(Items.field_151079_bi))), new ResearchPage(this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.yuzukitukumo"), new ItemStack(Blocks.field_150424_aL), new ItemStack(Items.field_151073_bk))), new ResearchPage(this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.roukan"), sphere, new ItemStack((Block)Blocks.field_150328_O))), new ResearchPage(this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.bailou"), sphere, new ItemStack(Items.field_151073_bk))), new ResearchPage(this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.shurablade"), new ItemStack(Blocks.field_150425_aM), new ItemStack(Items.field_151156_bN))), new ResearchPage(this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.murakumo"), new ItemStack(Blocks.field_150484_ah), new ItemStack(Items.field_151156_bN))), new ResearchPage(this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.kogawa_super"), new ItemStack(Items.field_151073_bk), new ItemStack(GameRegistry.findItem((String)"Thaumcraft", (String)"blockCrystal")))), new ResearchPage(this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.void_blade"), GameRegistry.findItemStack((String)"Thaumcraft", (String)"ItemSwordVoid", (int)1), new ItemStack(GameRegistry.findItem((String)"Thaumcraft", (String)"blockCrystal"))))}).setParents(new String[]{"Infusion_normal"}));
ResearchCategories.addResearch((ResearchItem)new ResearchItem("Infusion_basic", RESEARCH_Blade, new AspectList().add(Aspect_Blade, 1).add(Aspect.ORDER, 1).add(Aspect.CRAFT, 1), -2, 0, 1, new ItemStack(Item.getItemById(SlashBlade.bladeWood), 1, 0)).setPages(new ResearchPage[]{new ResearchPage("Infusion_basic", "tc.research_page.Infusion_basic"), new ResearchPage(this.Infusion_basic(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.muramasa"), ingot)), new ResearchPage(this.Infusion_basic(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.agito"), tinySoul)), new ResearchPage(this.Infusion_basic(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.orotiagito"), soul)), new ResearchPage(this.Infusion_basic(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.yasha"), new ItemStack(Blocks.grass))), new ResearchPage(this.Infusion_basic(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.yashatrue"), new ItemStack(Blocks.netherrack))), new ResearchPage(this.Infusion_basic(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.doutanuki"), new ItemStack(Blocks.stone))), new ResearchPage(this.Infusion_basic(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.bamboolight_nice"), new ItemStack(Items.fermented_spider_eye)))}).setParents(new String[]{"SlashBlade"}));
ResearchCategories.addResearch((ResearchItem)new ResearchItem("Roukan_xf", RESEARCH_Blade, new AspectList().add(Aspect_Blade, 1).add(Aspect.AIR, 1).add(Aspect.PLANT, 1), 2, -2, 1, SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.roukan_xf")).setPages(new ResearchPage[]{new ResearchPage("Roukan_xf", "tc.research_page.Roukan_xf"), new ResearchPage(ThaumcraftApi.addInfusionCraftingRecipe((String)"Roukan_xf", (Object)SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.roukan_xf"), (int)1, (AspectList)new AspectList().add(Aspect_Blade, 64).add(Aspect.WEAPON, 64).add(Aspect_proud, 64).add(Aspect.ENERGY, 64).add(Aspect.VOID, 64).add(Aspect.AIR, 128).add(Aspect.WATER, 128).add(Aspect.FIRE, 128).add(Aspect.EARTH, 128), (ItemStack)SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.roukan"), (ItemStack[])new ItemStack[]{ingot, soul, sphere, sphere, ingot, ingot, new ItemStack(crystal), new ItemStack(Items.ghast_tear), ingot, ingot}))}).setParents(new String[]{"SlashBlade"}));
ResearchCategories.addResearch((ResearchItem)new ResearchItem("Bailou_xf", RESEARCH_Blade, new AspectList().add(Aspect_Blade, 1).add(Aspect.AIR, 1).add(Aspect.SOUL, 1), 2, 2, 1, SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.bailou_xf")).setPages(new ResearchPage[]{new ResearchPage("Bailou_xf", "tc.research_page.Bailou_xf"), new ResearchPage(ThaumcraftApi.addInfusionCraftingRecipe((String)"Bailou_xf", (Object)SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.bailou_xf"), (int)1, (AspectList)new AspectList().add(Aspect_Blade, 64).add(Aspect.WEAPON, 64).add(Aspect_proud, 64).add(Aspect.ENERGY, 64).add(Aspect.VOID, 64).add(Aspect.AIR, 128).add(Aspect.WATER, 128).add(Aspect.FIRE, 128).add(Aspect.EARTH, 128), (ItemStack)SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.bailou"), (ItemStack[])new ItemStack[]{ingot, soul, sphere, sphere, ingot, ingot, new ItemStack(crystal), new ItemStack(Items.ender_pearl), ingot, ingot}))}).setParents(new String[]{"SlashBlade"}));
ResearchCategories.addResearch((ResearchItem)new ResearchItem("Infusion_normal", RESEARCH_Blade, new AspectList().add(Aspect_Blade, 1).add(Aspect.SOUL, 1).add(Aspect.VOID, 1), -4, 0, 1, new ItemStack(Item.getItemById(SlashBlade.bladeWhiteSheath), 1, 0)).setPages(new ResearchPage[]{new ResearchPage("Infusion_normal", "tc.research_page.Infusion_normal"), new ResearchPage(this.Infusion_normal(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.fox.white"), new ItemStack(Blocks.wool), new ItemStack(Items.speckled_melon))), new ResearchPage(this.Infusion_normal(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.fox.black"), new ItemStack(Blocks.trapped_chest), new ItemStack(Items.speckled_melon))), new ResearchPage(this.Infusion_normal(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.sange"), new ItemStack(Blocks.sandstone), new ItemStack(Blocks.brick_stairs))), new ResearchPage(this.Infusion_normal(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.orotiagito"), soul, sphere)), new ResearchPage(this.Infusion_normal(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.louguan_fake"), new ItemStack((Block)Blocks.stone_stairs), tinySoul)), new ResearchPage(this.Infusion_normal(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.sakuyablade"), new ItemStack((Block)Blocks.stone_stairs), new ItemStack(Items.ender_pearl))), new ResearchPage(this.Infusion_normal(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.ginkgoblade"), new ItemStack((Block)Blocks.oak_stairs), new ItemStack(Items.ender_pearl))), new ResearchPage(this.Infusion_normal(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.snowblade"), new ItemStack(Blocks.stone_slab), new ItemStack(Items.ender_pearl)))}).setParents(new String[]{"Infusion_basic"}));
ResearchCategories.addResearch((ResearchItem)new ResearchItem("Infusion_hard", RESEARCH_Blade, new AspectList().add(Aspect_Blade, 1).add(Aspect.VOID, 1).add(Aspect.DARKNESS, 1), -6, 0, 1, new ItemStack(Item.getItemById(SlashBlade.weapon), 1, 0)).setPages(new ResearchPage[]{new ResearchPage("Infusion_hard", "tc.research_page.Infusion_hard"), new ResearchPage(this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.yamato"), new ItemStack(Blocks.crafting_table), new ItemStack(GameRegistry.findItem((String)"Thaumcraft", (String)"blockCrystal")))), new ResearchPage(this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.koseki"), new ItemStack(Blocks.sandstone), new ItemStack(Items.ghast_tear))), new ResearchPage(this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.tagayasan"), sphere, new ItemStack(Items.diamond))), new ResearchPage(this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.yuzukitukumo"), new ItemStack(Blocks.brick_block), new ItemStack(Items.ender_pearl))), new ResearchPage(this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.roukan"), sphere, new ItemStack((Block)Blocks.stone_stairs))), new ResearchPage(this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.bailou"), sphere, new ItemStack(Items.ender_pearl))), new ResearchPage(this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.shurablade"), new ItemStack(Blocks.brick_stairs), new ItemStack(Items.ghast_tear))), new ResearchPage(this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.murakumo"), new ItemStack(Blocks.crafting_table), new ItemStack(Items.ghast_tear))), new ResearchPage(this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.kogawa_super"), new ItemStack(Items.ender_pearl), new ItemStack(GameRegistry.findItem((String)"Thaumcraft", (String)"blockCrystal")))), new ResearchPage(this.Infusion_hard(SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.void_blade"), GameRegistry.findItemStack((String)"Thaumcraft", (String)"ItemSwordVoid", (int)1), new ItemStack(GameRegistry.findItem((String)"Thaumcraft", (String)"blockCrystal"))))}).setParents(new String[]{"Infusion_normal"}));
}
private InfusionRecipe Infusion_basic(ItemStack item, ItemStack need) {
@@ -43,25 +43,25 @@ public class ItemSlashblade_BambooLight_nice {
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.bamboolight_nice";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(80));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)(4.0f + Item.ToolMaterial.WOOD.func_78000_c()));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)(4.0f + Item.ToolMaterial.WOOD.getDamageVsEntity()));
ItemSlashBlade.TextureName.set(tag, "named/bamboolight/bamboo_nice");
ItemSlashBlade.ModelName.set(tag, "blade");
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
ItemStack custombladeReqired = new ItemStack((Item)SlashBlade.bladeBambooLight);
ItemStack custombladeReqired = new ItemStack(Item.getItemById(SlashBlade.bladeBambooLight));
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(60));
ItemSlashBlade.ProudSoul.set(reqTag, Integer.valueOf(150));
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"DCD", "CBC", "DAD", Character.valueOf('A'), CommonProxy.steel_ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), Items.field_151121_aF, Character.valueOf('D'), new ItemStack(Blocks.field_150364_r)}));
AchievementListTLS.registerCraftingAchievement(name, -5, 5, customblade, AchievementList.getAchievement((String)"takemitu"));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"DCD", "CBC", "DAD", Character.valueOf('A'), CommonProxy.steel_ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), Items.gold_nugget, Character.valueOf('D'), new ItemStack(Blocks.log)}));
AchievementListTLS.registerCraftingAchievement(name, -5, 5, customblade, AchievementList.getAchievement("takemitu"));
}
}
@@ -45,22 +45,22 @@ public class ItemSlashblade_BambooLight_yin {
ItemSlashBlade.specialAttacks.put(999312, new Iai());
String name = "flammpfeil.slashblade.named.bamboolight_yin";
String name1 = "flammpfeil.slashblade.named.bamboolight_nice";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(120));
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)(9.0f + Item.ToolMaterial.IRON.func_78000_c()));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)(9.0f + Item.ToolMaterial.IRON.getDamageVsEntity()));
ItemSlashBlade.TextureName.set(tag, "named/bamboolight/bamboo_yin");
ItemSlashBlade.ModelName.set(tag, "named/yamato");
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(999312));
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
customblade.func_77966_a(Enchantment.field_77345_t, 8);
customblade.func_77966_a(Enchantment.field_77339_k, 5);
customblade.func_77966_a(Enchantment.field_77337_m, 3);
customblade.addEnchantment(Enchantment.sharpness, 8);
customblade.addEnchantment(Enchantment.fireAspect, 5);
customblade.addEnchantment(Enchantment.looting, 3);
ItemStack custombladeReqired = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name1, (int)1);
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(400));
@@ -68,8 +68,8 @@ public class ItemSlashblade_BambooLight_yin {
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"D D", " B ", "A A", Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack(Items.field_151079_bi)}));
NamedBladeManager.registerBladeSoul((NBTTagCompound)tag, (String)"bamboolight_yin");
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"D D", " B ", "A A", Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack(Items.diamond)}));
NamedBladeManager.registerNamedBlade(tag);
AchievementListTLS.registerCraftingAchievement(name, -5, 7, customblade, AchievementListTLS.getAchievement(name1));
}
}
@@ -45,22 +45,22 @@ public class ItemSlashblade_SilverBambooLight_blood {
ItemSlashBlade.specialAttacks.put(999312, new Iai());
String name = "flammpfeil.slashblade.named.silverbamboolight_blood";
String name1 = "flammpfeil.slashblade.named.silverbamboolight_gold";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(80));
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)(10.0f + Item.ToolMaterial.EMERALD.func_78000_c()));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)(10.0f + Item.ToolMaterial.EMERALD.getDamageVsEntity()));
ItemSlashBlade.TextureName.set(tag, "named/silverbamboolight/silverbamboo_blood");
ItemSlashBlade.ModelName.set(tag, "named/yamato");
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(999312));
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
customblade.func_77966_a(Enchantment.field_77345_t, 8);
customblade.func_77966_a(Enchantment.field_77339_k, 5);
customblade.func_77966_a(Enchantment.field_77338_j, 5);
customblade.addEnchantment(Enchantment.sharpness, 8);
customblade.addEnchantment(Enchantment.fireAspect, 5);
customblade.addEnchantment(Enchantment.knockback, 5);
ItemStack custombladeReqired = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name1, (int)1);
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(1000));
@@ -68,8 +68,8 @@ public class ItemSlashblade_SilverBambooLight_blood {
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"DAD", "ABA", "DAD", Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack(Blocks.field_150385_bj)}));
NamedBladeManager.registerBladeSoul((NBTTagCompound)tag, (String)"silverbamboolight_blood");
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"DAD", "ABA", "DAD", Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack(Blocks.vine)}));
NamedBladeManager.registerNamedBlade(tag);
AchievementListTLS.registerCraftingAchievement(name, -4, 9, customblade, AchievementListTLS.getAchievement(name1));
}
}
@@ -39,12 +39,12 @@ public class ItemSlashblade_SilverBambooLight_gold {
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.silverbamboolight_gold";
String name1 = "flammpfeil.slashblade.named.silverbamboolight_nice";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(50));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)(9.0f + Item.ToolMaterial.STONE.func_78000_c()));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)(9.0f + Item.ToolMaterial.STONE.getDamageVsEntity()));
ItemSlashBlade.TextureName.set(tag, "named/silverbamboolight/silverbamboo_gold");
ItemSlashBlade.ModelName.set(tag, "named/yamato");
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
@@ -57,7 +57,7 @@ public class ItemSlashblade_SilverBambooLight_gold {
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{" AD", "ADA", "BA ", Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack(Blocks.field_150340_R)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{" AD", "ADA", "BA ", Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack(Blocks.dirt)}));
AchievementListTLS.registerCraftingAchievement(name, -4, 7, customblade, AchievementListTLS.getAchievement(name1));
}
}
@@ -42,24 +42,24 @@ public class ItemSlashblade_SilverBambooLight_nice {
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.silverbamboolight_nice";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(80));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)(8.0f + Item.ToolMaterial.WOOD.func_78000_c()));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)(8.0f + Item.ToolMaterial.WOOD.getDamageVsEntity()));
ItemSlashBlade.TextureName.set(tag, "named/silverbamboolight/silverbamboo_nice");
ItemSlashBlade.ModelName.set(tag, "named/yamato");
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
ItemStack custombladeReqired = new ItemStack((Item)SlashBlade.bladeSilverBambooLight);
ItemStack custombladeReqired = new ItemStack(Item.getItemById(SlashBlade.bladeSilverBambooLight));
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"CDC", "CDC", "CBC", Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), Items.field_151121_aF, Character.valueOf('D'), new ItemStack(Blocks.field_150348_b)}));
AchievementListTLS.registerCraftingAchievement(name, -4, 5, customblade, AchievementList.getAchievement((String)"ginsitakemitu"));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"CDC", "CDC", "CBC", Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), Items.gold_nugget, Character.valueOf('D'), new ItemStack(Blocks.grass)}));
AchievementListTLS.registerCraftingAchievement(name, -4, 5, customblade, AchievementList.getAchievement("ginsitakemitu"));
}
}
@@ -43,12 +43,12 @@ public class ItemSlashblade_Eievui {
public void init(LoadEvent.InitEvent event) {
ItemSlashBlade.specialAttacks.put(100, new SlashDimension_old());
String name = "flammpfeil.slashblade.named.eievui";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(113));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)8.0f);
ItemSlashBlade.TextureName.set(tag, "named/eievui/texture");
@@ -63,7 +63,7 @@ public class ItemSlashblade_Eievui {
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"ADA", "DBD", "ADA", Character.valueOf('A'), CommonProxy.steel_ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('D'), new ItemStack((Block)Blocks.field_150327_N)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"ADA", "DBD", "ADA", Character.valueOf('A'), CommonProxy.steel_ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('D'), new ItemStack((Block)Blocks.oak_stairs)}));
AchievementListTLS.registerCraftingAchievement(name, 1, -2, customblade, AchievementListTLS.getAchievement("lastsmith_blade"));
}
}
@@ -35,19 +35,19 @@ public class ItemSlashblade_Eievui2 {
public void init(LoadEvent.InitEvent event) {
ItemSlashBlade.specialAttacks.put(100, new SlashDimension_old());
String name = "flammpfeil.slashblade.named.murakumo";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(113));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)8.0f);
ItemSlashBlade.TextureName.set(tag, "named/murakumo/texture");
ItemSlashBlade.ModelName.set(tag, "named/murakumo/model");
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
NamedBladeManager.registerBladeSoul((NBTTagCompound)tag, (String)name);
NamedBladeManager.registerNamedBlade(tag);
AchievementListTLS.registerCraftingAchievement(name, -10, -5, customblade, null);
}
}
@@ -40,12 +40,12 @@ public class ItemSlashblade_Louguan_old {
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.louguan_old";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(250));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)7.0f);
ItemSlashBlade.TextureName.set(tag, "named/oldlouguan/texture_1");
ItemSlashBlade.ModelName.set(tag, "named/agito");
@@ -58,7 +58,7 @@ public class ItemSlashblade_Louguan_old {
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(customblade, custombladeReqired, new Object[]{"ADA", "DBD", "ADA", Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack((Block)Blocks.field_150328_O)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(customblade, custombladeReqired, new Object[]{"ADA", "DBD", "ADA", Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack((Block)Blocks.stone_stairs)}));
AchievementListTLS.registerCraftingAchievement(name, 3, -2, customblade, AchievementListTLS.getAchievement("lastsmith_blade"));
}
}
@@ -38,12 +38,12 @@ public class ItemSlashblade_Louguan_old2 {
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.louguan_old";
String name2 = "flammpfeil.slashblade.named.louguan_old2";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name2);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(350));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)10.0f);
ItemSlashBlade.TextureName.set(tag, "named/oldlouguan/texture_2");
ItemSlashBlade.ModelName.set(tag, "named/agito");
@@ -56,7 +56,7 @@ public class ItemSlashblade_Louguan_old2 {
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name2, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(customblade, custombladeReqired, new Object[]{"ADA", "DBD", "ADA", Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack(Blocks.field_150368_y)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(customblade, custombladeReqired, new Object[]{"ADA", "DBD", "ADA", Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack(Blocks.bookshelf)}));
AchievementListTLS.registerCraftingAchievement(name2, 5, -2, customblade, AchievementListTLS.getAchievement(name));
}
}
@@ -38,24 +38,24 @@ public class ItemSlashblade_Slashblade_old {
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.slashblade_old";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(51));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)6.0f);
ItemSlashBlade.TextureName.set(tag, "named/slashblade/1");
ItemSlashBlade.ModelName.set(tag, "named/slashblade/1");
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(100));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
ItemStack custombladeReqired = new ItemStack((Item)SlashBlade.weapon);
ItemStack custombladeReqired = new ItemStack(Item.getItemById(SlashBlade.weapon));
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(customblade, custombladeReqired, new Object[]{" AD", " AD", " B ", Character.valueOf('A'), CommonProxy.steel_ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack(Blocks.field_150368_y)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(customblade, custombladeReqired, new Object[]{" AD", " AD", " B ", Character.valueOf('A'), CommonProxy.steel_ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack(Blocks.bookshelf)}));
AchievementListTLS.registerCraftingAchievement(name, -7, -5, customblade, null);
}
}
@@ -41,12 +41,12 @@ public class ItemSlashblade_Sweapon {
public void init(LoadEvent.InitEvent event) {
ItemSlashBlade.specialAttacks.put(100, new SlashDimension_old());
String name = "flammpfeil.slashblade.named.sweapon";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(51));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)4.0f);
ItemSlashBlade.TextureName.set(tag, "named/sweapon/texture");
ItemSlashBlade.ModelName.set(tag, "named/sweapon/model");
@@ -54,12 +54,12 @@ public class ItemSlashblade_Sweapon {
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
ItemStack custombladeReqired = new ItemStack((Item)SlashBlade.weapon);
ItemStack custombladeReqired = new ItemStack(Item.getItemById(SlashBlade.weapon));
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{" AD", " AD", " B ", Character.valueOf('A'), Items.field_151042_j, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack(Blocks.field_150368_y)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{" AD", " AD", " B ", Character.valueOf('A'), Items.speckled_melon, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack(Blocks.bookshelf)}));
AchievementListTLS.registerCraftingAchievement(name, -8, -5, customblade, null);
}
}
@@ -41,12 +41,12 @@ public class ItemSlashblade_Template {
ItemSlashBlade.specialAttacks.put(100, new SlashDimension_old());
String name = "flammpfeil.slashblade.named.template_re";
String name2 = "flammpfeil.slashblade.named.namedblade_basic";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(65));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)6.0f);
ItemSlashBlade.TextureName.set(tag, "named/famous/5");
ItemSlashBlade.ModelName.set(tag, "named/muramasa/muramasa");
@@ -59,7 +59,7 @@ public class ItemSlashblade_Template {
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(customblade, custombladeReqired, new Object[]{" DA", "DA ", "BCH", Character.valueOf('H'), CommonProxy.hammer, Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), "dyeBlue", Character.valueOf('D'), new ItemStack(Blocks.field_150339_S)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(customblade, custombladeReqired, new Object[]{" DA", "DA ", "BCH", Character.valueOf('H'), CommonProxy.hammer, Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), "dyeBlue", Character.valueOf('D'), new ItemStack(Blocks.stone)}));
AchievementListTLS.registerCraftingAchievement(name, -5, -5, customblade, null);
}
}
@@ -41,12 +41,12 @@ public class ItemSlashblade_Template2 {
ItemSlashBlade.specialAttacks.put(100, new SlashDimension_old());
String name = "flammpfeil.slashblade.named.template_re2";
String name2 = "flammpfeil.slashblade.named.namedblade_basic";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(65));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)6.0f);
ItemSlashBlade.TextureName.set(tag, "named/famous/6");
ItemSlashBlade.ModelName.set(tag, "named/muramasa/muramasa");
@@ -59,7 +59,7 @@ public class ItemSlashblade_Template2 {
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(customblade, custombladeReqired, new Object[]{" DA", "DA ", "BCH", Character.valueOf('H'), CommonProxy.hammer, Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), "dyeRed", Character.valueOf('D'), new ItemStack(Blocks.field_150339_S)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(customblade, custombladeReqired, new Object[]{" DA", "DA ", "BCH", Character.valueOf('H'), CommonProxy.hammer, Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), "dyeRed", Character.valueOf('D'), new ItemStack(Blocks.stone)}));
AchievementListTLS.registerCraftingAchievement(name, -4, -5, customblade, null);
}
}
@@ -33,12 +33,12 @@ public class ItemSlashblade_Void {
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.void_blade";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(113));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)15.0f);
ItemSlashBlade.TextureName.set(tag, "named/void");
@@ -46,10 +46,10 @@ public class ItemSlashblade_Void {
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(100));
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
customblade.func_77966_a(Enchantment.field_77345_t, 7);
customblade.func_77966_a(Enchantment.field_77338_j, 6);
customblade.func_77966_a(Enchantment.field_77339_k, 5);
customblade.func_77966_a(Enchantment.field_77348_q, 6);
customblade.addEnchantment(Enchantment.sharpness, 7);
customblade.addEnchantment(Enchantment.knockback, 6);
customblade.addEnchantment(Enchantment.fireAspect, 5);
customblade.addEnchantment(Enchantment.projectileProtection, 6);
ItemSlashBladeNamed.NamedBlades.add(name);
AchievementListTLS.registerCraftingAchievement(name, 10, 10, customblade, null);
}
@@ -41,12 +41,12 @@ public class ItemSlashblade_kogawa {
public void init(LoadEvent.InitEvent event) {
ItemSlashBlade.specialAttacks.put(100, new SlashDimension_old());
String name = "flammpfeil.slashblade.named.kogawa_normal";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(113));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)7.0f);
ItemSlashBlade.TextureName.set(tag, "named/Kogawa/texture_normal");
ItemSlashBlade.ModelName.set(tag, "named/Kogawa/model");
@@ -58,7 +58,7 @@ public class ItemSlashblade_kogawa {
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"ADA", "DBD", "ADA", Character.valueOf('A'), CommonProxy.steel_ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('D'), new ItemStack(Items.field_151116_aA)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"ADA", "DBD", "ADA", Character.valueOf('A'), CommonProxy.steel_ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('D'), new ItemStack(Items.bone)}));
AchievementListTLS.registerCraftingAchievement(name, -5, -2, customblade, AchievementListTLS.getAchievement("lastsmith_blade"));
}
}
@@ -40,12 +40,12 @@ public class ItemSlashblade_kogawa2 {
ItemSlashBlade.specialAttacks.put(100, new SlashDimension_old());
String name = "flammpfeil.slashblade.named.kogawa_rare";
String name1 = "flammpfeil.slashblade.named.kogawa_normal";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(113));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)9.0f);
ItemSlashBlade.TextureName.set(tag, "named/Kogawa/texture_rare");
ItemSlashBlade.ModelName.set(tag, "named/Kogawa/model");
@@ -58,7 +58,7 @@ public class ItemSlashblade_kogawa2 {
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"ADA", "DBD", "ADA", Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('D'), new ItemStack(Items.field_151043_k)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"ADA", "DBD", "ADA", Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('D'), new ItemStack(Items.golden_carrot)}));
AchievementListTLS.registerCraftingAchievement(name, -3, -2, customblade, AchievementListTLS.getAchievement(name1));
}
}
@@ -42,12 +42,12 @@ public class ItemSlashblade_kogawa3 {
ItemSlashBlade.specialAttacks.put(100, new SlashDimension_old());
String name = "flammpfeil.slashblade.named.kogawa_super";
String name1 = "flammpfeil.slashblade.named.kogawa_rare";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(113));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)11.0f);
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.TextureName.set(tag, "named/Kogawa/texture_super");
@@ -55,16 +55,16 @@ public class ItemSlashblade_kogawa3 {
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
customblade.func_77966_a(Enchantment.field_77347_r, 2);
customblade.func_77966_a(Enchantment.field_77338_j, 3);
customblade.func_77966_a(Enchantment.field_77345_t, 3);
customblade.addEnchantment(Enchantment.power, 2);
customblade.addEnchantment(Enchantment.knockback, 3);
customblade.addEnchantment(Enchantment.sharpness, 3);
ItemStack custombladeReqired = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name1, (int)1);
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(500));
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"ADA", "DBD", "ADA", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('D'), new ItemStack(Items.field_151045_i)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"ADA", "DBD", "ADA", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('D'), new ItemStack(Items.magma_cream)}));
AchievementListTLS.registerCraftingAchievement(name, -1, -2, customblade, AchievementListTLS.getAchievement(name1));
}
}
@@ -36,12 +36,12 @@ public class ItemSlashblade_kogawa4 {
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.kogawa_ninja";
String name1 = "flammpfeil.slashblade.named.kogawa_normal";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(113));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)10.0f);
ItemSlashBlade.TextureName.set(tag, "named/Kogawa/texture_ninja");
ItemSlashBlade.ModelName.set(tag, "named/Kogawa/model");
@@ -41,12 +41,12 @@ public class ItemSlashblade_lkaruga {
public void init(LoadEvent.InitEvent event) {
ItemSlashBlade.specialAttacks.put(100, new SlashDimension_old());
String name = "flammpfeil.slashblade.named.Ikaruga";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(113));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)12.0f);
ItemSlashBlade.TextureName.set(tag, "named/Ikaruga/texture");
@@ -55,16 +55,16 @@ public class ItemSlashblade_lkaruga {
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
customblade.func_77966_a(Enchantment.field_77347_r, 5);
customblade.func_77966_a(Enchantment.field_77338_j, 7);
customblade.func_77966_a(Enchantment.field_77337_m, 5);
customblade.addEnchantment(Enchantment.power, 5);
customblade.addEnchantment(Enchantment.knockback, 7);
customblade.addEnchantment(Enchantment.looting, 5);
ItemStack custombladeReqired = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"flammpfeil.slashblade.named.darkraven", (int)1);
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(1000));
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"ADA", "CBC", "ADA", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), Items.field_151061_bv, Character.valueOf('D'), new ItemStack(Items.field_151008_G)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"ADA", "CBC", "ADA", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), Items.rotten_flesh, Character.valueOf('D'), new ItemStack(Items.sugar)}));
AchievementListTLS.registerCraftingAchievement(name, 16, -3, customblade, null);
}
}
@@ -39,12 +39,12 @@ public class ItemSlashblade_oldblade {
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.oldblade";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(250));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)7.0f);
ItemSlashBlade.TextureName.set(tag, "named/oldtime/432");
ItemSlashBlade.ModelName.set(tag, "named/oldtime/model");
@@ -57,7 +57,7 @@ public class ItemSlashblade_oldblade {
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(customblade, custombladeReqired, new Object[]{" A", " AD", "BD ", Character.valueOf('A'), CommonProxy.steel_ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack(Blocks.field_150364_r)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(customblade, custombladeReqired, new Object[]{" A", " AD", "BD ", Character.valueOf('A'), CommonProxy.steel_ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack(Blocks.log)}));
AchievementListTLS.registerCraftingAchievement(name, -9, -5, customblade, null);
}
}
@@ -39,12 +39,12 @@ public class ItemSlashblade_sagequoia {
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.sagequoia";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(113));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)12.0f);
ItemSlashBlade.TextureName.set(tag, "named/sagequoia/texture");
@@ -53,15 +53,15 @@ public class ItemSlashblade_sagequoia {
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
customblade.func_77966_a(Enchantment.field_77347_r, 10);
customblade.func_77966_a(Enchantment.field_77338_j, 7);
customblade.addEnchantment(Enchantment.power, 10);
customblade.addEnchantment(Enchantment.knockback, 7);
ItemStack custombladeReqired = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"flammpfeil.slashblade.named.tagayasan", (int)1);
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(2300));
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"ADA", "CBC", "ADA", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), Items.field_151061_bv, Character.valueOf('D'), new ItemStack(Items.field_151079_bi)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"ADA", "CBC", "ADA", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), Items.rotten_flesh, Character.valueOf('D'), new ItemStack(Items.diamond)}));
AchievementListTLS.registerCraftingAchievement(name, -10, 10, customblade, null);
}
}
@@ -42,19 +42,18 @@ public class ItemSlashblade_sakuya {
public void init(LoadEvent.InitEvent event) {
ItemSlashBlade.specialAttacks.put(7436, new Sakuya());
String name = "flammpfeil.slashblade.named.sakuyablade";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(61));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)8.0f);
ItemSlashBlade.TextureName.set(tag, "named/sakuya/texture");
ItemSlashBlade.ModelName.set(tag, "named/sakuya/work");
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(7436));
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
ItemSlashBlade.SummonedSwordColor.set(tag, Integer.valueOf(16762568));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
ItemStack custombladeReqired = new ItemStack((Item)BladeLoader.blade);
@@ -63,7 +62,7 @@ public class ItemSlashblade_sakuya {
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"DAD", "CBC", "DAD", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack((Block)Blocks.field_150328_O)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"DAD", "CBC", "DAD", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack((Block)Blocks.stone_stairs)}));
AchievementListTLS.registerCraftingAchievement(name, 2, 4, customblade, AchievementListTLS.getAchievement("lastsmith_blade"));
}
}
@@ -40,19 +40,18 @@ public class ItemSlashblade_sakuya2 {
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.ginkgoblade";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(61));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)8.0f);
ItemSlashBlade.TextureName.set(tag, "named/sakuya/texture_1");
ItemSlashBlade.ModelName.set(tag, "named/sakuya/work");
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(7436));
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
ItemSlashBlade.SummonedSwordColor.set(tag, Integer.valueOf(16300840));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
ItemStack custombladeReqired = new ItemStack((Item)BladeLoader.blade);
@@ -61,7 +60,7 @@ public class ItemSlashblade_sakuya2 {
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"DAD", "CBC", "DAD", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack((Block)Blocks.field_150327_N)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"DAD", "CBC", "DAD", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack((Block)Blocks.oak_stairs)}));
AchievementListTLS.registerCraftingAchievement(name, 2, 6, customblade, AchievementListTLS.getAchievement("smith_blade"));
}
}
@@ -38,19 +38,18 @@ public class ItemSlashblade_sakuya3 {
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.snowblade";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(71));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)9.0f);
ItemSlashBlade.TextureName.set(tag, "named/sakuya/texture_snow");
ItemSlashBlade.ModelName.set(tag, "named/sakuya/work");
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(7436));
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
ItemSlashBlade.SummonedSwordColor.set(tag, Integer.valueOf(0xF0F8FF));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
ItemStack custombladeReqired = new ItemStack((Item)BladeLoader.blade);
@@ -59,7 +58,7 @@ public class ItemSlashblade_sakuya3 {
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"DAD", "CBC", "DAD", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack(Blocks.field_150433_aE)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"DAD", "CBC", "DAD", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack(Blocks.stone_slab)}));
AchievementListTLS.registerCraftingAchievement(name, 2, 8, customblade, AchievementListTLS.getAchievement("smith_blade"));
}
}
@@ -38,19 +38,18 @@ public class ItemSlashblade_sakuya4 {
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.doubleblade";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(113));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)10.0f);
ItemSlashBlade.TextureName.set(tag, "named/sakuya/texture_double");
ItemSlashBlade.ModelName.set(tag, "named/famous/1");
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(7436));
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
ItemSlashBlade.SummonedSwordColor.set(tag, Integer.valueOf(0xDD0033));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
ItemStack custombladeReqired = new ItemStack((Item)BladeLoader.blade);
@@ -59,7 +58,7 @@ public class ItemSlashblade_sakuya4 {
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"DAD", "CBC", "DAD", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack(Blocks.field_150451_bX)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"DAD", "CBC", "DAD", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack(Blocks.end_stone)}));
AchievementListTLS.registerCraftingAchievement(name, 2, 10, customblade, AchievementListTLS.getAchievement("smith_blade"));
}
}
@@ -39,23 +39,22 @@ public class ItemSlashblade_sakuya5 {
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.shurablade";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(113));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)12.0f);
ItemSlashBlade.TextureName.set(tag, "named/sakuya/texture_xiuluo");
ItemSlashBlade.ModelName.set(tag, "named/famous/1");
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(7436));
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
ItemSlashBlade.SummonedSwordColor.set(tag, Integer.valueOf(0xFF0033));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
customblade.func_77966_a(Enchantment.field_77345_t, 4);
customblade.func_77966_a(Enchantment.field_77338_j, 2);
customblade.addEnchantment(Enchantment.sharpness, 4);
customblade.addEnchantment(Enchantment.knockback, 2);
ItemStack custombladeReqired = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"flammpfeil.slashblade.named.doubleblade", (int)1);
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(500));
@@ -63,7 +62,7 @@ public class ItemSlashblade_sakuya5 {
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"DAD", "CBC", "DAD", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack(Blocks.field_150385_bj)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"DAD", "CBC", "DAD", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack(Blocks.vine)}));
AchievementListTLS.registerCraftingAchievement(name, 2, 12, customblade, AchievementListTLS.getAchievement("flammpfeil.slashblade.named.doubleblade"));
}
}
@@ -1,6 +1,6 @@
/*
* Decompiled with CFR 0.152.
*
*
* Could not load the following classes:
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ItemSlashBlade$ComboSequence
@@ -45,64 +45,61 @@ extends SpecialAttackBase {
public void doSpacialAttack(ItemStack stack, EntityPlayer player) {
Entity tmp;
World world = player.field_70170_p;
World world = player.worldObj;
NBTTagCompound tag = ItemSlashBlade.getItemTagCompound((ItemStack)stack);
Entity target = null;
int entityId = ItemSlashBlade.TargetEntityId.get(tag);
if (entityId != 0 && (tmp = world.func_73045_a(entityId)) != null && tmp.func_70032_d((Entity)player) < 30.0f) {
int entityId = (Integer)ItemSlashBlade.TargetEntityId.get(tag);
if (entityId != 0 && (tmp = world.getEntityByID(entityId)) != null && tmp.getDistanceToEntity((Entity)player) < 30.0f) {
target = tmp;
}
if (target == null) {
target = this.getEntityToWatch(player);
}
if (target == null) {
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.SlashDim);
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.None);
} else {
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.SlashDim);
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.None);
this.spawnParticle(world, target);
player.field_70170_p.func_72908_a(player.field_70165_t, player.field_70163_u, player.field_70161_v, "mob.endermen.portal", 0.5f, 1.0f);
player.worldObj.playSoundEffect(player.posX, player.posY, player.posZ, "mob.endermen.portal", 0.5f, 1.0f);
int cost = -20;
if (!ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(-20), false)) {
if (ItemSlashBlade.ProudSoul.get(tag) < 20) {
ItemSlashBlade.damageItem((ItemStack)stack, (int)10, (EntityLivingBase)player);
} else {
ItemSlashBlade.ProudSoul.add(tag, Integer.valueOf(-20));
}
AxisAlignedBB bb = target.field_70121_D.func_72329_c();
bb = bb.func_72314_b(2.0, 0.25, 2.0);
List list = world.func_94576_a((Entity)player, bb, ItemSlashBlade.AttackableSelector);
if (!ItemSlashBlade.AttackableSelector.func_82704_a(target)) {
list.add(target);
}
ItemSlashBlade blade = (ItemSlashBlade)stack.func_77973_b();
AxisAlignedBB bb = target.boundingBox.expand(2.0, 0.25, 2.0);
List<Entity> list = world.getEntitiesWithinAABB(Entity.class, bb);
ItemSlashBlade blade = (ItemSlashBlade)stack.getItem();
for (Entity curEntity : (java.util.List<Entity>)(java.util.List<?>)list) {
StylishRankManager.setNextAttackType((Entity)player, (String)StylishRankManager.AttackTypes.SlashDim);
StylishRankManager.setNextAttackType((Entity)player, (String)StylishRankManager.AttackTypes.SlashDim);
blade.attackTargetEntity(stack, curEntity, player, Boolean.valueOf(true));
}
if (!target.field_70170_p.field_72995_K) {
int level = EnchantmentHelper.func_77506_a((int)Enchantment.field_77345_t.field_77352_x, (ItemStack)stack);
float magicDamage = 0.5f + ItemSlashBlade.AttackAmplifier.get(tag).floatValue() * ((float)level / 5.0f);
if (!target.worldObj.isRemote) {
int level = EnchantmentHelper.getEnchantmentLevel(Enchantment.sharpness.effectId, (ItemStack)stack);
float magicDamage = 0.5f + (float)ItemSlashBlade.AttackAmplifier.get(tag) * ((float)level / 5.0f);
EntitySlashDimension dim = new EntitySlashDimension(world, (EntityLivingBase)player, magicDamage);
if (dim != null) {
dim.func_70107_b(target.field_70165_t, target.field_70163_u + (double)target.field_70131_O / 2.0, target.field_70161_v);
dim.setPosition(target.posX, target.posY + (double)target.height / 2.0, target.posZ);
dim.setLifeTime(1);
dim.setColor(0xFFFFFF);
world.func_72838_d((Entity)dim);
dim.setColor(0xFFFFFF);
world.spawnEntityInWorld((Entity)dim);
}
}
}
}
private Entity getEntityToWatch(EntityPlayer player) {
World world = player.field_70170_p;
World world = player.worldObj;
Entity target = null;
for (int dist = 2; dist < 20; dist += 2) {
AxisAlignedBB bb = player.field_70121_D.func_72329_c();
Vec3 vec = player.func_70040_Z();
vec = vec.func_72432_b();
bb = bb.func_72314_b(2.0, 0.25, 2.0);
bb = bb.func_72317_d(vec.field_72450_a * (double)dist, vec.field_72448_b * (double)dist, vec.field_72449_c * (double)dist);
List list = world.func_94576_a((Entity)player, bb, ItemSlashBlade.AttackableSelector);
AxisAlignedBB bb = player.boundingBox.expand(2.0, 0.25, 2.0);
Vec3 vec = player.getPosition(1.0f);
vec = vec.normalize();
bb = bb.offset(vec.xCoord * (double)dist, vec.yCoord * (double)dist, vec.zCoord * (double)dist);
List list = world.getEntitiesWithinAABB(Entity.class, bb);
float distance = 30.0f;
for (Entity curEntity : (java.util.List<Entity>)(java.util.List<?>)list) {
float curDist = curEntity.func_70032_d((Entity)player);
float curDist = curEntity.getDistanceToEntity((Entity)player);
if (!(curDist < distance)) continue;
target = curEntity;
distance = curDist;
@@ -114,10 +111,9 @@ extends SpecialAttackBase {
private void spawnParticle(World world, Entity target) {
if (target != null) {
world.func_72869_a("largeexplode", target.field_70165_t, target.field_70163_u + (double)target.field_70131_O, target.field_70161_v, 3.0, 3.0, 3.0);
world.func_72869_a("largeexplode", target.field_70165_t + 1.0, target.field_70163_u + (double)target.field_70131_O + 1.0, target.field_70161_v, 3.0, 3.0, 3.0);
world.func_72869_a("largeexplode", target.field_70165_t, target.field_70163_u + (double)target.field_70131_O + 0.5, target.field_70161_v + 1.0, 3.0, 3.0, 3.0);
world.spawnParticle("largeexplode", target.posX, target.posY + (double)target.height, target.posZ, 3.0, 3.0, 3.0);
world.spawnParticle("largeexplode", target.posX + 1.0, target.posY + (double)target.height + 1.0, target.posZ, 3.0, 3.0, 3.0);
world.spawnParticle("largeexplode", target.posX, target.posY + (double)target.height + 0.5, target.posZ + 1.0, 3.0, 3.0, 3.0);
}
}
}
@@ -40,12 +40,12 @@ public class ItemSlashblade_117 {
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.117";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(71));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)10.0f);
ItemSlashBlade.TextureName.set(tag, "named/Arthurs/texture_117");
@@ -53,16 +53,16 @@ public class ItemSlashblade_117 {
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(20011116));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
customblade.func_77966_a(Enchantment.field_77347_r, 10);
customblade.func_77966_a(Enchantment.field_77338_j, 8);
customblade.func_77966_a(Enchantment.field_77345_t, 7);
ItemStack custombladeReqired = new ItemStack((Item)SlashBlade.weapon);
customblade.addEnchantment(Enchantment.power, 10);
customblade.addEnchantment(Enchantment.knockback, 8);
customblade.addEnchantment(Enchantment.sharpness, 7);
ItemStack custombladeReqired = new ItemStack(Item.getItemById(SlashBlade.weapon));
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(1000));
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"ADA", "CBC", "ADA", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), Blocks.field_150339_S, Character.valueOf('D'), new ItemStack(CommonProxy.book2)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"ADA", "CBC", "ADA", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), Blocks.stone, Character.valueOf('D'), new ItemStack(CommonProxy.book2)}));
AchievementListTLS.registerCraftingAchievement(name, 20, 10, customblade, null);
}
}
@@ -40,12 +40,12 @@ public class ItemSlashblade_irsoft {
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.irsoft";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(71));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)10.0f);
ItemSlashBlade.TextureName.set(tag, "named/Arthurs/texture_irsoft");
@@ -53,16 +53,16 @@ public class ItemSlashblade_irsoft {
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(20011116));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
customblade.func_77966_a(Enchantment.field_77347_r, 10);
customblade.func_77966_a(Enchantment.field_77338_j, 8);
customblade.func_77966_a(Enchantment.field_77345_t, 7);
ItemStack custombladeReqired = new ItemStack((Item)SlashBlade.weapon);
customblade.addEnchantment(Enchantment.power, 10);
customblade.addEnchantment(Enchantment.knockback, 8);
customblade.addEnchantment(Enchantment.sharpness, 7);
ItemStack custombladeReqired = new ItemStack(Item.getItemById(SlashBlade.weapon));
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(1000));
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"ADA", "CBC", "ADA", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), Blocks.field_150343_Z, Character.valueOf('D'), new ItemStack(CommonProxy.book2)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"ADA", "CBC", "ADA", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), Blocks.sandstone, Character.valueOf('D'), new ItemStack(CommonProxy.book2)}));
AchievementListTLS.registerCraftingAchievement(name, 21, 10, customblade, null);
}
}
@@ -40,12 +40,12 @@ public class ItemSlashblade_liu {
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.liu";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(71));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)10.0f);
ItemSlashBlade.TextureName.set(tag, "named/Arthurs/texture_liu");
@@ -53,16 +53,16 @@ public class ItemSlashblade_liu {
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(20011116));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
customblade.func_77966_a(Enchantment.field_77347_r, 10);
customblade.func_77966_a(Enchantment.field_77338_j, 8);
customblade.func_77966_a(Enchantment.field_77345_t, 7);
ItemStack custombladeReqired = new ItemStack((Item)SlashBlade.weapon);
customblade.addEnchantment(Enchantment.power, 10);
customblade.addEnchantment(Enchantment.knockback, 8);
customblade.addEnchantment(Enchantment.sharpness, 7);
ItemStack custombladeReqired = new ItemStack(Item.getItemById(SlashBlade.weapon));
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(1000));
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"ADA", "CBC", "ADA", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), Items.field_151105_aU, Character.valueOf('D'), new ItemStack(CommonProxy.book2)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"ADA", "CBC", "ADA", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), Items.iron_ingot, Character.valueOf('D'), new ItemStack(CommonProxy.book2)}));
AchievementListTLS.registerCraftingAchievement(name, 21, 11, customblade, null);
}
}
@@ -40,12 +40,12 @@ public class ItemSlashblade_luli {
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.luli";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(71));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)10.0f);
ItemSlashBlade.TextureName.set(tag, "named/Arthurs/texture_luli");
@@ -53,16 +53,16 @@ public class ItemSlashblade_luli {
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(20011116));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
customblade.func_77966_a(Enchantment.field_77347_r, 10);
customblade.func_77966_a(Enchantment.field_77338_j, 8);
customblade.func_77966_a(Enchantment.field_77345_t, 7);
ItemStack custombladeReqired = new ItemStack((Item)SlashBlade.weapon);
customblade.addEnchantment(Enchantment.power, 10);
customblade.addEnchantment(Enchantment.knockback, 8);
customblade.addEnchantment(Enchantment.sharpness, 7);
ItemStack custombladeReqired = new ItemStack(Item.getItemById(SlashBlade.weapon));
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(1000));
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"ADA", "CBC", "ADA", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), Blocks.field_150461_bJ, Character.valueOf('D'), new ItemStack(CommonProxy.book2)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"ADA", "CBC", "ADA", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), Blocks.furnace, Character.valueOf('D'), new ItemStack(CommonProxy.book2)}));
AchievementListTLS.registerCraftingAchievement(name, 21, 12, customblade, null);
}
}
@@ -40,12 +40,12 @@ public class ItemSlashblade_nethop {
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.nethop";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(71));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)10.0f);
ItemSlashBlade.TextureName.set(tag, "named/Arthurs/texture_grand");
@@ -53,16 +53,16 @@ public class ItemSlashblade_nethop {
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(20011116));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
customblade.func_77966_a(Enchantment.field_77347_r, 10);
customblade.func_77966_a(Enchantment.field_77338_j, 8);
customblade.func_77966_a(Enchantment.field_77345_t, 7);
ItemStack custombladeReqired = new ItemStack((Item)SlashBlade.weapon);
customblade.addEnchantment(Enchantment.power, 10);
customblade.addEnchantment(Enchantment.knockback, 8);
customblade.addEnchantment(Enchantment.sharpness, 7);
ItemStack custombladeReqired = new ItemStack(Item.getItemById(SlashBlade.weapon));
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(1000));
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"ADA", "CBF", "ADA", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), Items.field_151113_aN, Character.valueOf('F'), Items.field_151033_d, Character.valueOf('D'), new ItemStack(CommonProxy.book2)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"ADA", "CBF", "ADA", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), Items.bow, Character.valueOf('F'), Items.spider_eye, Character.valueOf('D'), new ItemStack(CommonProxy.book2)}));
AchievementListTLS.registerCraftingAchievement(name, 20, 14, customblade, null);
}
}
@@ -40,12 +40,12 @@ public class ItemSlashblade_pear {
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.pear";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(71));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)10.0f);
ItemSlashBlade.TextureName.set(tag, "named/Arthurs/texture_pear");
@@ -53,16 +53,16 @@ public class ItemSlashblade_pear {
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(20011116));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
customblade.func_77966_a(Enchantment.field_77347_r, 10);
customblade.func_77966_a(Enchantment.field_77338_j, 8);
customblade.func_77966_a(Enchantment.field_77345_t, 7);
ItemStack custombladeReqired = new ItemStack((Item)SlashBlade.weapon);
customblade.addEnchantment(Enchantment.power, 10);
customblade.addEnchantment(Enchantment.knockback, 8);
customblade.addEnchantment(Enchantment.sharpness, 7);
ItemStack custombladeReqired = new ItemStack(Item.getItemById(SlashBlade.weapon));
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(1000));
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"ADA", "CBC", "ADA", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), Blocks.field_150364_r, Character.valueOf('D'), new ItemStack(CommonProxy.book2)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"ADA", "CBC", "ADA", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), Blocks.log, Character.valueOf('D'), new ItemStack(CommonProxy.book2)}));
AchievementListTLS.registerCraftingAchievement(name, 20, 12, customblade, null);
}
}
@@ -40,12 +40,12 @@ public class ItemSlashblade_yile {
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.yile";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(71));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)10.0f);
ItemSlashBlade.TextureName.set(tag, "named/Arthurs/texture_yile");
@@ -53,16 +53,16 @@ public class ItemSlashblade_yile {
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(20011116));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
customblade.func_77966_a(Enchantment.field_77347_r, 10);
customblade.func_77966_a(Enchantment.field_77338_j, 8);
customblade.func_77966_a(Enchantment.field_77345_t, 7);
ItemStack custombladeReqired = new ItemStack((Item)SlashBlade.weapon);
customblade.addEnchantment(Enchantment.power, 10);
customblade.addEnchantment(Enchantment.knockback, 8);
customblade.addEnchantment(Enchantment.sharpness, 7);
ItemStack custombladeReqired = new ItemStack(Item.getItemById(SlashBlade.weapon));
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(1000));
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"ADA", "CBC", "ADA", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), Items.field_151115_aP, Character.valueOf('D'), new ItemStack(CommonProxy.book2)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"ADA", "CBC", "ADA", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), Items.arrow, Character.valueOf('D'), new ItemStack(CommonProxy.book2)}));
AchievementListTLS.registerCraftingAchievement(name, 20, 11, customblade, null);
}
}
@@ -40,12 +40,12 @@ public class ItemSlashblade_yu {
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.zombie";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(71));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)10.0f);
ItemSlashBlade.TextureName.set(tag, "named/Arthurs/texture_zombie");
@@ -53,16 +53,16 @@ public class ItemSlashblade_yu {
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(20011116));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
customblade.func_77966_a(Enchantment.field_77339_k, 10);
customblade.func_77966_a(Enchantment.field_77338_j, 8);
customblade.func_77966_a(Enchantment.field_77345_t, 7);
ItemStack custombladeReqired = new ItemStack((Item)SlashBlade.weapon);
customblade.addEnchantment(Enchantment.fireAspect, 10);
customblade.addEnchantment(Enchantment.knockback, 8);
customblade.addEnchantment(Enchantment.sharpness, 7);
ItemStack custombladeReqired = new ItemStack(Item.getItemById(SlashBlade.weapon));
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(1000));
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"ADA", "CBC", "ADA", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), Items.field_151078_bh, Character.valueOf('D'), new ItemStack(CommonProxy.book2)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"ADA", "CBC", "ADA", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), Items.gold_ingot, Character.valueOf('D'), new ItemStack(CommonProxy.book2)}));
AchievementListTLS.registerCraftingAchievement(name, 20, 13, customblade, null);
}
}
@@ -40,28 +40,28 @@ public class ItemSlashblade_zheng {
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.zheng";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(71));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)10.0f);
ItemSlashBlade.TextureName.set(tag, "named/Arthurs/texture_zheng");
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(20011116));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
customblade.func_77966_a(Enchantment.field_77347_r, 10);
customblade.func_77966_a(Enchantment.field_77338_j, 8);
customblade.func_77966_a(Enchantment.field_77345_t, 7);
ItemStack custombladeReqired = new ItemStack((Item)SlashBlade.weapon);
customblade.addEnchantment(Enchantment.power, 10);
customblade.addEnchantment(Enchantment.knockback, 8);
customblade.addEnchantment(Enchantment.sharpness, 7);
ItemStack custombladeReqired = new ItemStack(Item.getItemById(SlashBlade.weapon));
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(1000));
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"ADA", "CBC", "ADA", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), Items.field_151008_G, Character.valueOf('D'), new ItemStack(CommonProxy.book2)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"ADA", "CBC", "ADA", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), Items.sugar, Character.valueOf('D'), new ItemStack(CommonProxy.book2)}));
AchievementListTLS.registerCraftingAchievement(name, 21, 13, customblade, null);
}
}
@@ -38,12 +38,12 @@ public class ItemSlashblade_Blade {
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.namedblade";
String name2 = "flammpfeil.slashblade.named.namedblade_basic";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(90));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)9.0f);
ItemSlashBlade.TextureName.set(tag, "named/famous/7");
ItemSlashBlade.ModelName.set(tag, "named/famous/1");
@@ -55,7 +55,7 @@ public class ItemSlashblade_Blade {
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(customblade, custombladeReqired, new Object[]{" DA", "DA ", "BC ", Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), "dyeGreen", Character.valueOf('D'), new ItemStack(Blocks.field_150339_S)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(customblade, custombladeReqired, new Object[]{" DA", "DA ", "BC ", Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), "dyeGreen", Character.valueOf('D'), new ItemStack(Blocks.stone)}));
AchievementListTLS.registerCraftingAchievement(name, 6, 5, customblade, AchievementListTLS.getAchievement(name2));
}
}
@@ -39,12 +39,12 @@ public class ItemSlashblade_Blade2 {
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.namedblade1";
String name2 = "flammpfeil.slashblade.named.namedblade_basic";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(90));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)9.0f);
ItemSlashBlade.TextureName.set(tag, "named/famous/1");
ItemSlashBlade.ModelName.set(tag, "named/famous/1");
@@ -56,7 +56,7 @@ public class ItemSlashblade_Blade2 {
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(customblade, custombladeReqired, new Object[]{" DA", "DA ", "BCH", Character.valueOf('H'), CommonProxy.hammer, Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), "dyeBlack", Character.valueOf('D'), new ItemStack(Blocks.field_150339_S)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(customblade, custombladeReqired, new Object[]{" DA", "DA ", "BCH", Character.valueOf('H'), CommonProxy.hammer, Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), "dyeBlack", Character.valueOf('D'), new ItemStack(Blocks.stone)}));
AchievementListTLS.registerCraftingAchievement(name, 6, 6, customblade, AchievementListTLS.getAchievement(name2));
}
}
@@ -39,12 +39,12 @@ public class ItemSlashblade_Blade3 {
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.namedblade2";
String name2 = "flammpfeil.slashblade.named.namedblade_basic";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(90));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)9.0f);
ItemSlashBlade.TextureName.set(tag, "named/famous/2");
ItemSlashBlade.ModelName.set(tag, "named/famous/1");
@@ -56,7 +56,7 @@ public class ItemSlashblade_Blade3 {
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(customblade, custombladeReqired, new Object[]{" DA", "DA ", "BCH", Character.valueOf('H'), CommonProxy.hammer, Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), "dyeWhite", Character.valueOf('D'), new ItemStack(Blocks.field_150339_S)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(customblade, custombladeReqired, new Object[]{" DA", "DA ", "BCH", Character.valueOf('H'), CommonProxy.hammer, Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), "dyeWhite", Character.valueOf('D'), new ItemStack(Blocks.stone)}));
AchievementListTLS.registerCraftingAchievement(name, 6, 7, customblade, AchievementListTLS.getAchievement(name2));
}
}
@@ -39,12 +39,12 @@ public class ItemSlashblade_Blade4 {
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.namedblade3";
String name2 = "flammpfeil.slashblade.named.namedblade_basic";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(90));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)9.0f);
ItemSlashBlade.TextureName.set(tag, "named/famous/3");
ItemSlashBlade.ModelName.set(tag, "named/famous/1");
@@ -56,7 +56,7 @@ public class ItemSlashblade_Blade4 {
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(customblade, custombladeReqired, new Object[]{" DA", "DA ", "BCH", Character.valueOf('H'), CommonProxy.hammer, Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), "dyeGray", Character.valueOf('D'), new ItemStack(Blocks.field_150339_S)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(customblade, custombladeReqired, new Object[]{" DA", "DA ", "BCH", Character.valueOf('H'), CommonProxy.hammer, Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), "dyeGray", Character.valueOf('D'), new ItemStack(Blocks.stone)}));
AchievementListTLS.registerCraftingAchievement(name, 6, 8, customblade, AchievementListTLS.getAchievement(name2));
}
}
@@ -39,12 +39,12 @@ public class ItemSlashblade_Blade5 {
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.namedblade4";
String name2 = "flammpfeil.slashblade.named.namedblade_basic";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(90));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)9.0f);
ItemSlashBlade.TextureName.set(tag, "named/famous/4");
ItemSlashBlade.ModelName.set(tag, "named/famous/1");
@@ -56,7 +56,7 @@ public class ItemSlashblade_Blade5 {
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(customblade, custombladeReqired, new Object[]{" DA", "DA ", "BCH", Character.valueOf('H'), CommonProxy.hammer, Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), "dyeLightBlue", Character.valueOf('D'), new ItemStack(Blocks.field_150339_S)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(customblade, custombladeReqired, new Object[]{" DA", "DA ", "BCH", Character.valueOf('H'), CommonProxy.hammer, Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), "dyeLightBlue", Character.valueOf('D'), new ItemStack(Blocks.stone)}));
AchievementListTLS.registerCraftingAchievement(name, 6, 9, customblade, AchievementListTLS.getAchievement(name2));
}
}
@@ -37,12 +37,12 @@ public class ItemSlashblade_Blade_basic {
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.namedblade_basic";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(90));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)7.0f);
ItemSlashBlade.TextureName.set(tag, "named/oldtime/2");
ItemSlashBlade.ModelName.set(tag, "named/oldtime/soda");
@@ -40,12 +40,12 @@ public class ItemSlashblade_Smith {
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.smith_1";
String name2 = "flammpfeil.slashblade.named.blade_old";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(90));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)7.0f);
ItemSlashBlade.TextureName.set(tag, "named/smith/smith_0");
ItemSlashBlade.ModelName.set(tag, "named/muramasa/muramasa");
@@ -57,7 +57,7 @@ public class ItemSlashblade_Smith {
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(customblade, custombladeReqired, new Object[]{" DA", "DA ", "B H", Character.valueOf('H'), CommonProxy.hammer, Character.valueOf('A'), CommonProxy.steel_ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack(Blocks.field_150402_ci)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(customblade, custombladeReqired, new Object[]{" DA", "DA ", "B H", Character.valueOf('H'), CommonProxy.hammer, Character.valueOf('A'), CommonProxy.steel_ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack(Blocks.trapped_chest)}));
AchievementListTLS.registerCraftingAchievement(name, 9, 7, customblade, null);
}
}
@@ -38,12 +38,12 @@ public class ItemSlashblade_Smith2 {
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.smith_2";
String name2 = "flammpfeil.slashblade.named.smith_1";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(95));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)10.0f);
ItemSlashBlade.TextureName.set(tag, "named/smith/smith_1");
ItemSlashBlade.ModelName.set(tag, "named/muramasa/muramasa");
@@ -57,7 +57,7 @@ public class ItemSlashblade_Smith2 {
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(customblade, custombladeReqired, new Object[]{" DA", "DA ", "B ", Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack(Blocks.field_150402_ci)}));
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(customblade, custombladeReqired, new Object[]{" DA", "DA ", "B ", Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack(Blocks.trapped_chest)}));
AchievementListTLS.registerCraftingAchievement(name, 11, 7, customblade, AchievementListTLS.getAchievement(name2));
}
}
@@ -39,32 +39,32 @@ public class ItemSlashblade_Smith3 {
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.smith_3";
String name2 = "flammpfeil.slashblade.named.smith_2";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(95));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)15.0f);
ItemSlashBlade.TextureName.set(tag, "named/smith/smith_2");
ItemSlashBlade.ModelName.set(tag, "named/muramasa/muramasa");
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(0));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
customblade.func_77966_a(Enchantment.field_77345_t, 6);
customblade.func_77966_a(Enchantment.field_77347_r, 8);
customblade.func_77966_a(Enchantment.field_77338_j, 8);
customblade.addEnchantment(Enchantment.sharpness, 6);
customblade.addEnchantment(Enchantment.power, 8);
customblade.addEnchantment(Enchantment.knockback, 8);
ItemStack reqiredMain = SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.bamboolight_yin");
ItemStack reqiredSub = SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.louguan_fake");
ItemStack sb = SlashBlade.getCustomBlade((String)name2);
NBTTagCompound tag1 = ItemSlashBlade.getItemTagCompound((ItemStack)reqiredMain);
if (tag1.func_74764_b("ench")) {
tag1.func_82580_o("ench");
if (tag1.hasKey("ench")) {
tag1.removeTag("ench");
}
if ((tag1 = ItemSlashBlade.getItemTagCompound((ItemStack)reqiredSub)).func_74764_b("ench")) {
tag1.func_82580_o("ench");
if ((tag1 = ItemSlashBlade.getItemTagCompound((ItemStack)reqiredSub)).hasKey("ench")) {
tag1.removeTag("ench");
}
RecipeBx recipe = new RecipeBx(customblade, reqiredMain, reqiredSub, "DFD", "ACB", "DFD", Character.valueOf('A'), reqiredMain, Character.valueOf('B'), reqiredSub, Character.valueOf('C'), sb, Character.valueOf('D'), new ItemStack(Blocks.field_150339_S), Character.valueOf('F'), new ItemStack(Blocks.field_150340_R));
RecipeBx recipe = new RecipeBx(customblade, reqiredMain, reqiredSub, "DFD", "ACB", "DFD", Character.valueOf('A'), reqiredMain, Character.valueOf('B'), reqiredSub, Character.valueOf('C'), sb, Character.valueOf('D'), new ItemStack(Blocks.stone), Character.valueOf('F'), new ItemStack(Blocks.dirt));
SlashBlade.addRecipe((String)name, (IRecipe)recipe);
AchievementListTLS.registerCraftingAchievement(name, 13, 7, customblade, AchievementListTLS.getAchievement(name2));
}
@@ -42,12 +42,12 @@ public class ItemSlashblade_Smith4 {
ItemSlashBlade.specialAttacks.put(20011116, new Sakuya2());
String name = "flammpfeil.slashblade.named.smith_last";
String name2 = "flammpfeil.slashblade.named.smith_3";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
ItemStack customblade = SlashBlade.bladeNamed;
NBTTagCompound tag = new NBTTagCompound();
customblade.func_77982_d(tag);
customblade.writeToNBT(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(256));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
ItemSlashBlade.AttackAmplifier.set(tag, Integer.valueOf((int)2.0f));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)20.0f);
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.TextureName.set(tag, "named/smith/smith_3");
@@ -55,14 +55,12 @@ public class ItemSlashblade_Smith4 {
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(20011116));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
customblade.func_77966_a(Enchantment.field_77345_t, 10);
customblade.func_77966_a(Enchantment.field_77347_r, 5);
customblade.func_77966_a(Enchantment.field_77338_j, 12);
customblade.func_77966_a(Enchantment.field_77334_n, 2);
customblade.func_77966_a(Enchantment.field_77339_k, 12);
customblade.func_77966_a(Enchantment.field_92091_k, 2);
customblade.func_77966_a(Enchantment.field_77337_m, 3);
customblade.func_77966_a(Enchantment.field_77335_o, 2);
customblade.addEnchantment(Enchantment.sharpness, 10);
customblade.addEnchantment(Enchantment.power, 5);
customblade.addEnchantment(Enchantment.knockback, 12);
customblade.addEnchantment(Enchantment.unbreaking, 2);
customblade.addEnchantment(Enchantment.looting, 3);
customblade.addEnchantment(Enchantment.fireAspect, 2);
ItemStack reqiredMain = SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.louguan_tx");
ItemStack reqiredSub = SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.silverbamboolight_blood");
ItemStack sb = SlashBlade.getCustomBlade((String)name2);
@@ -71,13 +69,13 @@ public class ItemSlashblade_Smith4 {
ItemSlashBlade.ProudSoul.set(reqTag, Integer.valueOf(2000));
ItemSlashBlade.RepairCount.set(reqTag, Integer.valueOf(10));
NBTTagCompound tag1 = ItemSlashBlade.getItemTagCompound((ItemStack)reqiredMain);
if (tag1.func_74764_b("ench")) {
tag1.func_82580_o("ench");
if (tag1.hasKey("ench")) {
tag1.removeTag("ench");
}
if ((tag1 = ItemSlashBlade.getItemTagCompound((ItemStack)reqiredSub)).func_74764_b("ench")) {
tag1.func_82580_o("ench");
if ((tag1 = ItemSlashBlade.getItemTagCompound((ItemStack)reqiredSub)).hasKey("ench")) {
tag1.removeTag("ench");
}
RecipeBx recipe = new RecipeBx(customblade, reqiredMain, reqiredSub, "DDD", "ACB", "DHD", Character.valueOf('H'), CommonProxy.hammer, Character.valueOf('A'), reqiredMain, Character.valueOf('B'), reqiredSub, Character.valueOf('C'), sb, Character.valueOf('D'), new ItemStack(Blocks.field_150484_ah));
RecipeBx recipe = new RecipeBx(customblade, reqiredMain, reqiredSub, "DDD", "ACB", "DHD", Character.valueOf('H'), CommonProxy.hammer, Character.valueOf('A'), reqiredMain, Character.valueOf('B'), reqiredSub, Character.valueOf('C'), sb, Character.valueOf('D'), new ItemStack(Blocks.crafting_table));
SlashBlade.addRecipe((String)name, (IRecipe)recipe);
AchievementListTLS.registerCraftingAchievement(name, 15, 7, customblade, AchievementListTLS.getAchievement(name2));
}
Loaded 100 of 131 files, more files were not shown because too many files have changed in this diff. Show more