Archived
初始化反编译源码
This commit is contained in:
259 files changed
+305055
No files matched your search
@@ -0,0 +1 @@
|
||||
5fu/mods/[BD] 最后的太刀匠人 lastsmith_V1.0.9_MC1.7.10.jar
|
||||
@@ -0,0 +1,13 @@
|
||||
# lastsmith_V1.0.9_MC1.7.10-decompiled
|
||||
|
||||
Fallback decompile of `5fu/mods/[BD] 最后的太刀匠人 lastsmith_V1.0.9_MC1.7.10.jar`.
|
||||
|
||||
- Detected modid(s): `unknown`
|
||||
- Original jar: `original/[BD] 最后的太刀匠人 lastsmith_V1.0.9_MC1.7.10.jar`
|
||||
- Decompiled Java: `src/main/java`
|
||||
- Extracted resources: `src/main/resources`
|
||||
|
||||
Build entries:
|
||||
|
||||
- `./build.sh` reliably recreates `build/libs/[BD] 最后的太刀匠人 lastsmith_V1.0.9_MC1.7.10.jar` from the preserved original jar.
|
||||
- `./compile-decompiled.sh` attempts to compile the CFR output with Java 8 using jars from `../5fu/mods` and `../_downloaded-deps` as classpath. CFR output for old obfuscated/private mods may require manual cleanup before this succeeds.
|
||||
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
if [[ ! -x ./compile-decompiled.sh ]]; then
|
||||
echo "Missing full-source build entry: ./compile-decompiled.sh" >&2
|
||||
exit 2
|
||||
fi
|
||||
|
||||
exec ./compile-decompiled.sh "$@"
|
||||
Executable
+43
@@ -0,0 +1,43 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")"
|
||||
mkdir -p build/classes build/logs build/libs
|
||||
ROOT="$(pwd)"
|
||||
TDLM_ROOT="$(cd "$ROOT/../.." && pwd)"
|
||||
CP="${CP:-}"
|
||||
if [ -z "$CP" ]; then
|
||||
CP_ENTRIES=()
|
||||
for jar in \
|
||||
"$TDLM_ROOT/modsource/IndustrialCraft2/build/rfg/srg_patched_minecraft-classes.jar" \
|
||||
"$TDLM_ROOT/Uranium/eclipse/cauldron/build/libs/cauldron.jar" \
|
||||
"$TDLM_ROOT/Uranium/build/tmp/deobfuscateJar/deobfed.jar" \
|
||||
"$TDLM_ROOT/modsource/CodeChickenCore/build/rfg/srg_merged_minecraft.jar"; do
|
||||
[ -f "$jar" ] && CP_ENTRIES+=("$jar")
|
||||
done
|
||||
for dir in "$TDLM_ROOT/Uranium/build/bundle/libraries" "$TDLM_ROOT/Uranium-server-run/mods" "$TDLM_ROOT/client/mods" "$TDLM_ROOT/_downloaded-deps" "$TDLM_ROOT/modsource/ImmersiveEngineering/externalLibs" "$TDLM_ROOT/modsource/CodeChickenCore/run/client/mods" "$TDLM_ROOT/modsource/CodeChickenCore/run/mods" "$TDLM_ROOT/modsource/Mekanism-Community-Edition/libs" "$TDLM_ROOT/modsource/ExtraBotany/libs"; do
|
||||
if [ -d "$dir" ]; then
|
||||
while IFS= read -r jar; do
|
||||
case "$jar" in
|
||||
*-deobf.jar) continue ;;
|
||||
esac
|
||||
CP_ENTRIES+=("$jar")
|
||||
done < <(find "$dir" -name '*.jar' -type f | sort)
|
||||
fi
|
||||
done
|
||||
if [ ${#CP_ENTRIES[@]} -eq 0 ]; then
|
||||
echo "no dependency jars found for decompiled build" >&2
|
||||
exit 1
|
||||
fi
|
||||
CP="$(IFS=:; echo "${CP_ENTRIES[*]}")"
|
||||
fi
|
||||
find src/main/java -name '*.java' > build/sources.list
|
||||
if [ ! -s build/sources.list ]; then
|
||||
echo "no decompiled java sources found" >&2
|
||||
exit 1
|
||||
fi
|
||||
javac -source 8 -target 8 -encoding UTF-8 -cp "$CP" -d build/classes @build/sources.list 2>&1 | tee build/logs/javac.log
|
||||
if [ -d src/main/resources ]; then
|
||||
( cd src/main/resources && tar cf - . ) | ( cd build/classes && tar xf - )
|
||||
fi
|
||||
jar cf "build/libs/[BD] 最后的太刀匠人 lastsmith_V1.0.9_MC1.7.10.jar" -C build/classes .
|
||||
echo "compiled build/libs/[BD] 最后的太刀匠人 lastsmith_V1.0.9_MC1.7.10.jar"
|
||||
Whitespace-only changes.
Binary file not shown.
@@ -0,0 +1,220 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* com.google.common.collect.Lists
|
||||
* com.google.common.collect.Maps
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.gameevent.PlayerEvent$ItemPickupEvent
|
||||
* cpw.mods.fml.relauncher.Side
|
||||
* cpw.mods.fml.relauncher.SideOnly
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.stats.AchievementEx
|
||||
* net.minecraft.entity.Entity
|
||||
* net.minecraft.entity.player.EntityPlayer
|
||||
* net.minecraft.init.Items
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.stats.Achievement
|
||||
* net.minecraft.stats.IStatStringFormat
|
||||
* net.minecraft.stats.StatBase
|
||||
* net.minecraft.util.DamageSource
|
||||
* net.minecraft.util.StatCollector
|
||||
* net.minecraftforge.common.AchievementPage
|
||||
* net.minecraftforge.common.MinecraftForge
|
||||
* net.minecraftforge.event.entity.living.LivingAttackEvent
|
||||
* net.minecraftforge.event.world.WorldEvent$Load
|
||||
*/
|
||||
package net.langball.last_smith;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
import com.google.common.collect.Maps;
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.gameevent.PlayerEvent;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import java.util.Map;
|
||||
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;
|
||||
import net.langball.last_smith.BladeLoader;
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.stats.Achievement;
|
||||
import net.minecraft.stats.IStatStringFormat;
|
||||
import net.minecraft.stats.StatBase;
|
||||
import net.minecraft.util.DamageSource;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import net.minecraftforge.common.AchievementPage;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
import net.minecraftforge.event.entity.living.LivingAttackEvent;
|
||||
import net.minecraftforge.event.world.WorldEvent;
|
||||
|
||||
public class AchievementListTLS {
|
||||
public static final AchievementListTLS INSTANCE = new AchievementListTLS();
|
||||
public static Map<String, String> craftingTrigger = Maps.newHashMap();
|
||||
public static Map<String, Achievement> achievements = Maps.newHashMap();
|
||||
static int defaultX = 20;
|
||||
static int defaultY = 5;
|
||||
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 ItemStack getIconStack(String name) {
|
||||
ItemStack stack = SlashBlade.getCustomBlade((String)"proudsoul");
|
||||
stack.func_77964_b(65535);
|
||||
stack.func_151001_c(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);
|
||||
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("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");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public static Achievement registerAchievement(String key, ItemStack icon, Achievement parent) {
|
||||
String translateKey = AchievementListTLS.getTranslateKey(key);
|
||||
int x = defaultX++;
|
||||
int y = defaultY;
|
||||
String posStr = StatCollector.func_74838_a((String)("achievement." + translateKey + ".pos"));
|
||||
Matcher mat = PosPattern.matcher(posStr.trim());
|
||||
if (mat.matches()) {
|
||||
x = Integer.parseInt(mat.group(1));
|
||||
y = Integer.parseInt(mat.group(2));
|
||||
y = Math.max(minY, y);
|
||||
}
|
||||
Achievement achievement = AchievementListTLS.registerAchievement(key, x, y, icon, parent);
|
||||
return achievement;
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
public static Achievement registerCraftingAchievement(Achievement achievement) {
|
||||
craftingTrigger.put(achievement.field_75990_d.func_77977_a(), achievement.field_75975_e);
|
||||
return achievement;
|
||||
}
|
||||
|
||||
public static Achievement registerCraftingAchievement(String key, ItemStack icon, Achievement parent) {
|
||||
Achievement achievement = AchievementListTLS.registerAchievement(key, icon, parent);
|
||||
return AchievementListTLS.registerCraftingAchievement(achievement);
|
||||
}
|
||||
|
||||
public static Achievement registerCraftingAchievement(String key, int x, int y, ItemStack icon, Achievement parent) {
|
||||
Achievement achievement = AchievementListTLS.registerAchievement(key, x, y, icon, parent);
|
||||
return AchievementListTLS.registerCraftingAchievement(achievement);
|
||||
}
|
||||
|
||||
public static Achievement getAchievement(String key) {
|
||||
if (key.indexOf(":") < 0) {
|
||||
key = AchievementListTLS.getAchievementKey(key);
|
||||
}
|
||||
Achievement achievement = achievements.get(key);
|
||||
return achievement;
|
||||
}
|
||||
|
||||
public static void triggerAchievement(EntityPlayer player, String key) {
|
||||
Achievement achievement = AchievementListTLS.getAchievement(key);
|
||||
if (achievement != null) {
|
||||
player.func_71029_a((StatBase)achievement);
|
||||
}
|
||||
}
|
||||
|
||||
public static void triggerCraftingAchievement(ItemStack stack, EntityPlayer player) {
|
||||
if (craftingTrigger.containsKey(stack.func_77977_a())) {
|
||||
AchievementListTLS.triggerAchievement(player, craftingTrigger.get(stack.func_77977_a()));
|
||||
}
|
||||
}
|
||||
|
||||
@SideOnly(value=Side.CLIENT)
|
||||
@SubscribeEvent
|
||||
public void worldLoadEvent(WorldEvent.Load event) {
|
||||
if (!isLoaded) {
|
||||
isLoaded = true;
|
||||
IStatStringFormat formatter = new IStatStringFormat(){
|
||||
|
||||
public String func_74535_a(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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void playerEventItemPickupEvent(PlayerEvent.ItemPickupEvent event) {
|
||||
AchievementListTLS.triggerCraftingAchievement(event.pickedUp.func_92059_d(), event.player);
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void livingAttackEvent(LivingAttackEvent event) {
|
||||
DamageSource src = event.source;
|
||||
if (src.func_76355_l() != "player") {
|
||||
return;
|
||||
}
|
||||
Entity e = src.func_76346_g();
|
||||
if (e == null) {
|
||||
return;
|
||||
}
|
||||
if (!(e instanceof EntityPlayer)) {
|
||||
return;
|
||||
}
|
||||
ItemStack item = ((EntityPlayer)e).func_70694_bm();
|
||||
if (item == null) {
|
||||
return;
|
||||
}
|
||||
if (item.func_77973_b() != Items.field_151041_m) {
|
||||
return;
|
||||
}
|
||||
if (item.func_77960_j() != 0) {
|
||||
return;
|
||||
}
|
||||
AchievementListTLS.triggerAchievement((EntityPlayer)e, "slashWoodenSword");
|
||||
}
|
||||
|
||||
public static String getAchievementKey(String key) {
|
||||
return "lastsmith:achievement." + key;
|
||||
}
|
||||
|
||||
public static String getTranslateKey(String key) {
|
||||
return "lastsmith." + key;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.util.WeightedRandomChestContent
|
||||
* net.minecraftforge.common.ChestGenHooks
|
||||
*/
|
||||
package net.langball.last_smith;
|
||||
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.WeightedRandomChestContent;
|
||||
import net.minecraftforge.common.ChestGenHooks;
|
||||
|
||||
public class AddChestItem {
|
||||
public void addChestItems() {
|
||||
String[] categoryA = new String[]{"villageBlacksmith", "pyramidJungleChest"};
|
||||
String[] categoryB = new String[]{"strongholdCorridor", "strongholdCrossing"};
|
||||
for (String category : categoryA) {
|
||||
ChestGenHooks dungeon = ChestGenHooks.getInfo((String)category);
|
||||
dungeon.addItem(new WeightedRandomChestContent(new ItemStack(CommonProxy.books1), 1, 1, 10));
|
||||
dungeon.addItem(new WeightedRandomChestContent(new ItemStack(CommonProxy.book2), 1, 1, 4));
|
||||
}
|
||||
for (String category : categoryB) {
|
||||
ChestGenHooks dungeon2 = ChestGenHooks.getInfo((String)category);
|
||||
dungeon2.addItem(new WeightedRandomChestContent(new ItemStack(CommonProxy.books1), 1, 1, 16));
|
||||
dungeon2.addItem(new WeightedRandomChestContent(new ItemStack(CommonProxy.book2), 1, 1, 4));
|
||||
}
|
||||
ChestGenHooks dungeon3 = ChestGenHooks.getInfo((String)"dungeonChest");
|
||||
dungeon3.addItem(new WeightedRandomChestContent(new ItemStack(CommonProxy.books1), 1, 1, 16));
|
||||
dungeon3.addItem(new WeightedRandomChestContent(new ItemStack(CommonProxy.book2), 1, 1, 10));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,130 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* net.minecraft.block.Block
|
||||
* net.minecraft.block.material.Material
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
* net.minecraft.world.World
|
||||
* net.minecraft.world.gen.structure.StructureBoundingBox
|
||||
* net.minecraft.world.gen.structure.StructureComponent
|
||||
* net.minecraft.world.gen.structure.StructureVillagePieces$Start
|
||||
* net.minecraft.world.gen.structure.StructureVillagePieces$Village
|
||||
* net.minecraftforge.common.ChestGenHooks
|
||||
*/
|
||||
package net.langball.last_smith;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.gen.structure.StructureBoundingBox;
|
||||
import net.minecraft.world.gen.structure.StructureComponent;
|
||||
import net.minecraft.world.gen.structure.StructureVillagePieces;
|
||||
import net.minecraftforge.common.ChestGenHooks;
|
||||
|
||||
public class BladeHouse
|
||||
extends StructureVillagePieces.Village {
|
||||
private boolean hasMadeChest;
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
public boolean func_74875_a(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) {
|
||||
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.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_);
|
||||
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))) {
|
||||
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_));
|
||||
}
|
||||
}
|
||||
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_);
|
||||
}
|
||||
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.func_74893_a(p_74875_1_, p_74875_3_, 7, 1, 1, 1);
|
||||
return true;
|
||||
}
|
||||
|
||||
protected int func_74888_b(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;
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,130 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* net.minecraft.block.Block
|
||||
* net.minecraft.block.material.Material
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
* net.minecraft.world.World
|
||||
* net.minecraft.world.gen.structure.StructureBoundingBox
|
||||
* net.minecraft.world.gen.structure.StructureComponent
|
||||
* net.minecraft.world.gen.structure.StructureVillagePieces$Start
|
||||
* net.minecraft.world.gen.structure.StructureVillagePieces$Village
|
||||
* net.minecraftforge.common.ChestGenHooks
|
||||
*/
|
||||
package net.langball.last_smith;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.gen.structure.StructureBoundingBox;
|
||||
import net.minecraft.world.gen.structure.StructureComponent;
|
||||
import net.minecraft.world.gen.structure.StructureVillagePieces;
|
||||
import net.minecraftforge.common.ChestGenHooks;
|
||||
|
||||
public class BladeHouse2
|
||||
extends StructureVillagePieces.Village {
|
||||
private boolean hasMadeChest;
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
public boolean func_74875_a(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) {
|
||||
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.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_);
|
||||
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))) {
|
||||
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_));
|
||||
}
|
||||
}
|
||||
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_);
|
||||
}
|
||||
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.func_74893_a(p_74875_1_, p_74875_3_, 7, 1, 1, 1);
|
||||
return true;
|
||||
}
|
||||
|
||||
protected int func_74888_b(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;
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,200 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.Loader
|
||||
* cpw.mods.fml.common.event.FMLPreInitializationEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* net.minecraft.creativetab.CreativeTabs
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.Item$ToolMaterial
|
||||
* net.minecraft.util.ResourceLocation
|
||||
* thaumcraft.api.ThaumcraftApi
|
||||
*/
|
||||
package net.langball.last_smith;
|
||||
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
import net.langball.last_smith.ConfigLoader;
|
||||
import net.langball.last_smith.ItemSlashBladeBasic;
|
||||
import net.langball.last_smith.ItemSlashBladeModel;
|
||||
import net.langball.last_smith.addon.ItemSlashbladeRFS;
|
||||
import net.langball.last_smith.addon.ItemSlashblade_BOT;
|
||||
import net.langball.last_smith.addon.ItemSlashblade_RFL;
|
||||
import net.langball.last_smith.addon.ex.ItemSlashblade_exparmory1;
|
||||
import net.langball.last_smith.bamboolightplus.blade.ItemSlashblade_BambooLight_nice;
|
||||
import net.langball.last_smith.bamboolightplus.blade.ItemSlashblade_BambooLight_yin;
|
||||
import net.langball.last_smith.bamboolightplus.blade.ItemSlashblade_SilverBambooLight_blood;
|
||||
import net.langball.last_smith.bamboolightplus.blade.ItemSlashblade_SilverBambooLight_gold;
|
||||
import net.langball.last_smith.bamboolightplus.blade.ItemSlashblade_SilverBambooLight_nice;
|
||||
import net.langball.last_smith.blade.ItemSlashblade_Eievui;
|
||||
import net.langball.last_smith.blade.ItemSlashblade_Eievui2;
|
||||
import net.langball.last_smith.blade.ItemSlashblade_Louguan_old;
|
||||
import net.langball.last_smith.blade.ItemSlashblade_Louguan_old2;
|
||||
import net.langball.last_smith.blade.ItemSlashblade_Slashblade_old;
|
||||
import net.langball.last_smith.blade.ItemSlashblade_Sweapon;
|
||||
import net.langball.last_smith.blade.ItemSlashblade_Template;
|
||||
import net.langball.last_smith.blade.ItemSlashblade_Template2;
|
||||
import net.langball.last_smith.blade.ItemSlashblade_Void;
|
||||
import net.langball.last_smith.blade.ItemSlashblade_kogawa;
|
||||
import net.langball.last_smith.blade.ItemSlashblade_kogawa2;
|
||||
import net.langball.last_smith.blade.ItemSlashblade_kogawa3;
|
||||
import net.langball.last_smith.blade.ItemSlashblade_kogawa4;
|
||||
import net.langball.last_smith.blade.ItemSlashblade_lkaruga;
|
||||
import net.langball.last_smith.blade.ItemSlashblade_oldblade;
|
||||
import net.langball.last_smith.blade.ItemSlashblade_sagequoia;
|
||||
import net.langball.last_smith.blade.ItemSlashblade_sakuya;
|
||||
import net.langball.last_smith.blade.ItemSlashblade_sakuya2;
|
||||
import net.langball.last_smith.blade.ItemSlashblade_sakuya3;
|
||||
import net.langball.last_smith.blade.ItemSlashblade_sakuya4;
|
||||
import net.langball.last_smith.blade.ItemSlashblade_sakuya5;
|
||||
import net.langball.last_smith.blade.arthurs.ItemSlashblade_117;
|
||||
import net.langball.last_smith.blade.arthurs.ItemSlashblade_irsoft;
|
||||
import net.langball.last_smith.blade.arthurs.ItemSlashblade_liu;
|
||||
import net.langball.last_smith.blade.arthurs.ItemSlashblade_luli;
|
||||
import net.langball.last_smith.blade.arthurs.ItemSlashblade_nethop;
|
||||
import net.langball.last_smith.blade.arthurs.ItemSlashblade_pear;
|
||||
import net.langball.last_smith.blade.arthurs.ItemSlashblade_yile;
|
||||
import net.langball.last_smith.blade.arthurs.ItemSlashblade_yu;
|
||||
import net.langball.last_smith.blade.arthurs.ItemSlashblade_zheng;
|
||||
import net.langball.last_smith.blade.famous.ItemSlashblade_Blade;
|
||||
import net.langball.last_smith.blade.famous.ItemSlashblade_Blade2;
|
||||
import net.langball.last_smith.blade.famous.ItemSlashblade_Blade3;
|
||||
import net.langball.last_smith.blade.famous.ItemSlashblade_Blade4;
|
||||
import net.langball.last_smith.blade.famous.ItemSlashblade_Blade5;
|
||||
import net.langball.last_smith.blade.famous.ItemSlashblade_Blade_basic;
|
||||
import net.langball.last_smith.blade.smith.ItemSlashblade_Smith;
|
||||
import net.langball.last_smith.blade.smith.ItemSlashblade_Smith2;
|
||||
import net.langball.last_smith.blade.smith.ItemSlashblade_Smith3;
|
||||
import net.langball.last_smith.blade.smith.ItemSlashblade_Smith4;
|
||||
import net.langball.last_smith.blade.smith.ItemSlashblade_Smith_knife;
|
||||
import net.langball.last_smith.eusaber.ItemSlashBladeEU;
|
||||
import net.langball.last_smith.eusaber.ItemSlashblade_1;
|
||||
import net.langball.last_smith.eusaber.ItemSlashblade_2;
|
||||
import net.langball.last_smith.louguan.blade.ItemSlashblade_Bailou;
|
||||
import net.langball.last_smith.louguan.blade.ItemSlashblade_Bailou_tx;
|
||||
import net.langball.last_smith.louguan.blade.ItemSlashblade_Bailou_xf;
|
||||
import net.langball.last_smith.louguan.blade.ItemSlashblade_Louguan;
|
||||
import net.langball.last_smith.louguan.blade.ItemSlashblade_Louguan_fake;
|
||||
import net.langball.last_smith.louguan.blade.ItemSlashblade_Louguan_tx;
|
||||
import net.langball.last_smith.louguan.blade.ItemSlashblade_Louguan_xf;
|
||||
import net.langball.last_smith.louguan.blade.ItemSlashblade_xf;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import thaumcraft.api.ThaumcraftApi;
|
||||
|
||||
public class BladeLoader {
|
||||
public static ItemSlashBladeBasic blade;
|
||||
public static Item euBlade;
|
||||
public static Item rfBlade;
|
||||
public static Item xfblade;
|
||||
public static ItemSlashBladeModel blade_model;
|
||||
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");
|
||||
if (ConfigLoader.Sakuya) {
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_sakuya());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_sakuya2());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_sakuya3());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_sakuya4());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_sakuya5());
|
||||
}
|
||||
if (ConfigLoader.roukan) {
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_Louguan_old());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_Louguan_old2());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_Louguan_fake());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_Louguan());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_Bailou());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_Louguan_tx());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_Bailou_tx());
|
||||
}
|
||||
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");
|
||||
GameRegistry.registerItem((Item)rfBlade, (String)"RFBlade");
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_RFL());
|
||||
}
|
||||
if (Loader.isModLoaded((String)"Botania")) {
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_BOT());
|
||||
}
|
||||
}
|
||||
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");
|
||||
GameRegistry.registerItem((Item)euBlade, (String)"EUBlade");
|
||||
if (ConfigLoader.EU) {
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_1());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_2());
|
||||
}
|
||||
}
|
||||
if (ConfigLoader.bamboo) {
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_BambooLight_nice());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_BambooLight_yin());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_SilverBambooLight_nice());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_SilverBambooLight_gold());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_SilverBambooLight_blood());
|
||||
}
|
||||
if (ConfigLoader.others) {
|
||||
if (Loader.isModLoaded((String)"exparmory")) {
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_exparmory1());
|
||||
}
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_Eievui());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_sagequoia());
|
||||
if (Loader.isModLoaded((String)"flammpfeil.darkraven")) {
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_lkaruga());
|
||||
}
|
||||
}
|
||||
if (ConfigLoader.oldtime) {
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_Sweapon());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_oldblade());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_Slashblade_old());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_Eievui2());
|
||||
}
|
||||
if (ConfigLoader.smith) {
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_Smith());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_Smith2());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_Smith3());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_Smith4());
|
||||
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);
|
||||
GameRegistry.registerItem((Item)xfblade, (String)"Blade_xf");
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_Void());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_Bailou_xf());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_Louguan_xf());
|
||||
}
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_Blade_basic());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_Blade());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_Blade2());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_Blade3());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_Blade4());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_Blade5());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_Template());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_Template2());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_zheng());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_pear());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_yu());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_luli());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_liu());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_117());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_yile());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_nethop());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_irsoft());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_kogawa());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_kogawa2());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_kogawa3());
|
||||
SlashBlade.InitEventBus.register((Object)new ItemSlashblade_kogawa4());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.client.registry.RenderingRegistry
|
||||
* cpw.mods.fml.common.Loader
|
||||
* cpw.mods.fml.common.event.FMLInitializationEvent
|
||||
* cpw.mods.fml.common.event.FMLPostInitializationEvent
|
||||
* cpw.mods.fml.common.event.FMLPreInitializationEvent
|
||||
* mods.flammpfeil.slashblade.ItemRendererBaseWeapon
|
||||
* net.minecraft.client.renderer.entity.Render
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraftforge.client.IItemRenderer
|
||||
* net.minecraftforge.client.MinecraftForgeClient
|
||||
*/
|
||||
package net.langball.last_smith;
|
||||
|
||||
import cpw.mods.fml.client.registry.RenderingRegistry;
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import cpw.mods.fml.common.event.FMLInitializationEvent;
|
||||
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
|
||||
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
||||
import mods.flammpfeil.slashblade.ItemRendererBaseWeapon;
|
||||
import net.langball.last_smith.BladeLoader;
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
import net.langball.last_smith.entityliving.EntityStraw;
|
||||
import net.langball.last_smith.entityliving.RenderStraw;
|
||||
import net.langball.last_smith.louguan.sa.EntitySA;
|
||||
import net.langball.last_smith.louguan.sa.RenderSA;
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraftforge.client.IItemRenderer;
|
||||
import net.minecraftforge.client.MinecraftForgeClient;
|
||||
|
||||
public class ClientProxy
|
||||
extends CommonProxy {
|
||||
@Override
|
||||
public void preInit(FMLPreInitializationEvent event) {
|
||||
super.preInit(event);
|
||||
this.initializeItemRenderer();
|
||||
}
|
||||
|
||||
public void initializeItemRenderer() {
|
||||
ItemRendererBaseWeapon renderer = new ItemRendererBaseWeapon();
|
||||
if (Loader.isModLoaded((String)"IC2")) {
|
||||
MinecraftForgeClient.registerItemRenderer((Item)BladeLoader.euBlade, (IItemRenderer)renderer);
|
||||
}
|
||||
if (Loader.isModLoaded((String)"CoFHCore")) {
|
||||
MinecraftForgeClient.registerItemRenderer((Item)BladeLoader.rfBlade, (IItemRenderer)renderer);
|
||||
}
|
||||
if (Loader.isModLoaded((String)"Thaumcraft")) {
|
||||
MinecraftForgeClient.registerItemRenderer((Item)BladeLoader.xfblade, (IItemRenderer)renderer);
|
||||
}
|
||||
MinecraftForgeClient.registerItemRenderer((Item)BladeLoader.blade, (IItemRenderer)renderer);
|
||||
MinecraftForgeClient.registerItemRenderer((Item)BladeLoader.blade_model, (IItemRenderer)renderer);
|
||||
MinecraftForgeClient.registerItemRenderer((Item)BladeLoader.blade_model_1, (IItemRenderer)renderer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init(FMLInitializationEvent event) {
|
||||
super.init(event);
|
||||
RenderingRegistry.registerEntityRenderingHandler(EntitySA.class, (Render)new RenderSA());
|
||||
RenderingRegistry.registerEntityRenderingHandler(EntityStraw.class, (Render)new RenderStraw());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void postInit(FMLPostInitializationEvent event) {
|
||||
super.postInit(event);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,187 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.FMLCommonHandler
|
||||
* cpw.mods.fml.common.IFuelHandler
|
||||
* cpw.mods.fml.common.Loader
|
||||
* cpw.mods.fml.common.event.FMLInitializationEvent
|
||||
* cpw.mods.fml.common.event.FMLPostInitializationEvent
|
||||
* cpw.mods.fml.common.event.FMLPreInitializationEvent
|
||||
* cpw.mods.fml.common.registry.EntityRegistry
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* cpw.mods.fml.common.registry.VillagerRegistry
|
||||
* cpw.mods.fml.common.registry.VillagerRegistry$IVillageCreationHandler
|
||||
* cpw.mods.fml.common.registry.VillagerRegistry$IVillageTradeHandler
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.item.crafting.RecipeCustomBlade
|
||||
* mods.flammpfeil.slashblade.util.SlashBladeHooks
|
||||
* net.minecraft.creativetab.CreativeTabs
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.init.Items
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.util.ResourceLocation
|
||||
* net.minecraft.world.gen.structure.MapGenStructureIO
|
||||
* net.minecraftforge.oredict.OreDictionary
|
||||
* net.minecraftforge.oredict.ShapelessOreRecipe
|
||||
*/
|
||||
package net.langball.last_smith;
|
||||
|
||||
import cpw.mods.fml.common.FMLCommonHandler;
|
||||
import cpw.mods.fml.common.IFuelHandler;
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import cpw.mods.fml.common.event.FMLInitializationEvent;
|
||||
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
|
||||
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
||||
import cpw.mods.fml.common.registry.EntityRegistry;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
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;
|
||||
import net.langball.last_smith.BladeHouse2;
|
||||
import net.langball.last_smith.BladeLoader;
|
||||
import net.langball.last_smith.ConfigLoader;
|
||||
import net.langball.last_smith.CreativeTabsSmith;
|
||||
import net.langball.last_smith.Last_worker;
|
||||
import net.langball.last_smith.TradeBlade;
|
||||
import net.langball.last_smith.TradeBlade2;
|
||||
import net.langball.last_smith.VillageCreation;
|
||||
import net.langball.last_smith.VillageCreation2;
|
||||
import net.langball.last_smith.addon.ManaRepair;
|
||||
import net.langball.last_smith.addon.ThaumLoader;
|
||||
import net.langball.last_smith.entityliving.EntityStraw;
|
||||
import net.langball.last_smith.entityliving.ItemStraw_Slash;
|
||||
import net.langball.last_smith.items.BookBasic_Blade;
|
||||
import net.langball.last_smith.items.BookLostArthurs;
|
||||
import net.langball.last_smith.items.ItemHammer;
|
||||
import net.langball.last_smith.louguan.sa.EntitySA;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
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.oredict.OreDictionary;
|
||||
import net.minecraftforge.oredict.ShapelessOreRecipe;
|
||||
|
||||
public class CommonProxy {
|
||||
public static CreativeTabs tab;
|
||||
public static Item straw;
|
||||
public static Item books1;
|
||||
public static Item book2;
|
||||
public static Item hammer;
|
||||
public static Item tahamagane;
|
||||
public static Item steel_ingot;
|
||||
public static Item blade_work;
|
||||
public static Item crashed_iron;
|
||||
public static Item iron_sand;
|
||||
public static Item coal_powder;
|
||||
public static Item swordOfZephyr;
|
||||
|
||||
public void preInit(FMLPreInitializationEvent event) {
|
||||
new ConfigLoader(event);
|
||||
tab = new CreativeTabsSmith();
|
||||
straw = new ItemStraw_Slash();
|
||||
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");
|
||||
GameRegistry.registerItem((Item)books1, (String)"book1");
|
||||
GameRegistry.registerItem((Item)book2, (String)"book2");
|
||||
GameRegistry.registerItem((Item)hammer, (String)"hammer");
|
||||
GameRegistry.registerItem((Item)iron_sand, (String)"iron_sand");
|
||||
GameRegistry.registerItem((Item)coal_powder, (String)"coal_powder");
|
||||
GameRegistry.registerItem((Item)crashed_iron, (String)"crashed_iron_charcoal");
|
||||
GameRegistry.registerItem((Item)tahamagane, (String)"tahamagane");
|
||||
GameRegistry.registerItem((Item)steel_ingot, (String)"smith_steel_ingot");
|
||||
GameRegistry.registerItem((Item)blade_work, (String)"blade_work");
|
||||
GameRegistry.registerItem((Item)straw, (String)"Straw_Slash");
|
||||
OreDictionary.registerOre((String)"dustIron", (Item)iron_sand);
|
||||
OreDictionary.registerOre((String)"dustCoal", (Item)coal_powder);
|
||||
OreDictionary.registerOre((String)"ingotSteel", (Item)steel_ingot);
|
||||
new BladeLoader(event);
|
||||
}
|
||||
|
||||
public void init(FMLInitializationEvent event) {
|
||||
if (ConfigLoader.trade) {
|
||||
VillagerRegistry.instance().registerVillagerId(9527);
|
||||
VillagerRegistry.instance().registerVillageTradeHandler(9527, (VillagerRegistry.IVillageTradeHandler)new TradeBlade());
|
||||
if (FMLCommonHandler.instance().getSide().isClient()) {
|
||||
VillagerRegistry.instance().registerVillagerSkin(9527, new ResourceLocation("lastsmith:textures/mobs/blade_villager.png"));
|
||||
}
|
||||
VillagerRegistry.instance().registerVillageCreationHandler((VillagerRegistry.IVillageCreationHandler)new VillageCreation());
|
||||
VillagerRegistry.instance().registerVillagerId(6583);
|
||||
VillagerRegistry.instance().registerVillageTradeHandler(6583, (VillagerRegistry.IVillageTradeHandler)new TradeBlade2());
|
||||
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_");
|
||||
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)});
|
||||
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}));
|
||||
if (Loader.isModLoaded((String)"Thaumcraft")) {
|
||||
swordOfZephyr = GameRegistry.findItem((String)"Thaumcraft", (String)"ItemSwordElemental");
|
||||
if (ConfigLoader.others && ConfigLoader.Sakuya && ConfigLoader.roukan && ConfigLoader.oldtime) {
|
||||
new ThaumLoader();
|
||||
}
|
||||
}
|
||||
if (ConfigLoader.others && Loader.isModLoaded((String)"Botania")) {
|
||||
SlashBladeHooks.EventBus.register((Object)new ManaRepair());
|
||||
}
|
||||
}
|
||||
|
||||
public void postInit(FMLPostInitializationEvent event) {
|
||||
AchievementListTLS.init();
|
||||
}
|
||||
|
||||
private static void registerFuel() {
|
||||
GameRegistry.registerFuelHandler((IFuelHandler)new IFuelHandler(){
|
||||
|
||||
public int getBurnTime(ItemStack fuel) {
|
||||
return coal_powder != fuel.func_77973_b() ? 0 : 800;
|
||||
}
|
||||
});
|
||||
GameRegistry.registerFuelHandler((IFuelHandler)new IFuelHandler(){
|
||||
|
||||
public int getBurnTime(ItemStack fuel) {
|
||||
return straw != fuel.func_77973_b() ? 0 : 400;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
static {
|
||||
swordOfZephyr = null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.event.FMLPreInitializationEvent
|
||||
* net.minecraftforge.common.config.Configuration
|
||||
* org.apache.logging.log4j.Logger
|
||||
*/
|
||||
package net.langball.last_smith;
|
||||
|
||||
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
||||
import net.minecraftforge.common.config.Configuration;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
||||
public class ConfigLoader {
|
||||
private static Configuration config;
|
||||
private static Logger logger;
|
||||
public static boolean Sakuya;
|
||||
public static boolean roukan;
|
||||
public static boolean EU;
|
||||
public static boolean roukan_addon;
|
||||
public static boolean trade;
|
||||
public static boolean others;
|
||||
public static boolean oldtime;
|
||||
public static boolean bamboo;
|
||||
public static boolean smith;
|
||||
|
||||
public ConfigLoader(FMLPreInitializationEvent event) {
|
||||
logger = event.getModLog();
|
||||
config = new Configuration(event.getSuggestedConfigurationFile());
|
||||
config.load();
|
||||
ConfigLoader.load();
|
||||
}
|
||||
|
||||
public static void load() {
|
||||
logger.info("Started loading config. ");
|
||||
String comment = "Sakuya Blade past ";
|
||||
String comment1 = "Roukanken part(If you set smith true\ufffd\ufffdDO NOT SET FALSE)";
|
||||
String comment2 = "EUslashblade part(IC2 NEED)";
|
||||
String comment3 = "roukan_addon part(If you set Roukanken false\ufffd\ufffdDO NOT SET TRUE)";
|
||||
String comment4 = "trade part";
|
||||
String comment5 = "oldtime part";
|
||||
String comment7 = "bamboo_plus part(If you set smith true\ufffd\ufffdDO NOT SET FALSE)";
|
||||
String comment8 = "others part";
|
||||
String comment9 = "smith's part(If you set Roukanken and bamboo_plus false,DO NOT SET TRUE)";
|
||||
Sakuya = config.get("general", "sakuyablade", true, comment).getBoolean();
|
||||
roukan = config.get("general", "Roukanken", true, comment1).getBoolean();
|
||||
EU = config.get("general", "EUslashblade", true, comment2).getBoolean();
|
||||
roukan_addon = config.get("general", "roukan_addon", true, comment3).getBoolean();
|
||||
trade = config.get("general", "trade", true, comment4).getBoolean();
|
||||
others = config.get("general", "others", true, comment8).getBoolean();
|
||||
oldtime = config.get("general", "oldtime", true, comment5).getBoolean();
|
||||
bamboo = config.get("general", "bamboo", true, comment7).getBoolean();
|
||||
smith = config.get("general", "smith", true, comment9).getBoolean();
|
||||
config.save();
|
||||
logger.info("Finished loading config. ");
|
||||
}
|
||||
|
||||
public static Logger logger() {
|
||||
return logger;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* net.minecraft.creativetab.CreativeTabs
|
||||
* net.minecraft.item.Item
|
||||
*/
|
||||
package net.langball.last_smith;
|
||||
|
||||
import net.langball.last_smith.BladeLoader;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.item.Item;
|
||||
|
||||
public class CreativeTabsSmith
|
||||
extends CreativeTabs {
|
||||
public CreativeTabsSmith() {
|
||||
super("lastsmith");
|
||||
}
|
||||
|
||||
public Item func_78016_d() {
|
||||
return BladeLoader.blade;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeDetune
|
||||
* net.minecraft.entity.player.EntityPlayer
|
||||
* net.minecraft.item.Item$ToolMaterial
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.stats.StatBase
|
||||
* net.minecraft.util.StatCollector
|
||||
* net.minecraft.world.World
|
||||
*/
|
||||
package net.langball.last_smith;
|
||||
|
||||
import java.util.List;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeDetune;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.stats.StatBase;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class ItemSlashBladeBasic
|
||||
extends ItemSlashBladeDetune {
|
||||
public ItemSlashBladeBasic(Item.ToolMaterial par2EnumToolMaterial, float baseAttackModifiers) {
|
||||
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 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"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeDetune
|
||||
* net.minecraft.entity.player.EntityPlayer
|
||||
* net.minecraft.item.Item$ToolMaterial
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.util.StatCollector
|
||||
*/
|
||||
package net.langball.last_smith;
|
||||
|
||||
import java.util.List;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeDetune;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.StatCollector;
|
||||
|
||||
public class ItemSlashBladeModel
|
||||
extends ItemSlashBladeDetune {
|
||||
public ItemSlashBladeModel(Item.ToolMaterial par2EnumToolMaterial, float baseAttackModifiers) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.Mod
|
||||
* cpw.mods.fml.common.Mod$EventHandler
|
||||
* cpw.mods.fml.common.Mod$Instance
|
||||
* cpw.mods.fml.common.SidedProxy
|
||||
* cpw.mods.fml.common.event.FMLInitializationEvent
|
||||
* cpw.mods.fml.common.event.FMLPostInitializationEvent
|
||||
* cpw.mods.fml.common.event.FMLPreInitializationEvent
|
||||
*/
|
||||
package net.langball.last_smith;
|
||||
|
||||
import cpw.mods.fml.common.Mod;
|
||||
import cpw.mods.fml.common.SidedProxy;
|
||||
import cpw.mods.fml.common.event.FMLInitializationEvent;
|
||||
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
|
||||
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
|
||||
@Mod(modid="lastsmith", name="The Last Smith", version="1.0.0", dependencies="required-after:flammpfeil.slashblade;after:flammpfeil.darkraven")
|
||||
public class Last_worker {
|
||||
public static final String MODID = "lastsmith";
|
||||
public static final String NAME = "The Last Smith";
|
||||
public static final String VERSION = "1.0.0";
|
||||
@Mod.Instance(value="lastsmith")
|
||||
public static Last_worker instance;
|
||||
@SidedProxy(clientSide="net.langball.last_smith.ClientProxy", serverSide="net.langball.last_smith.CommonProxy")
|
||||
public static CommonProxy proxy;
|
||||
|
||||
@Mod.EventHandler
|
||||
public void preInit(FMLPreInitializationEvent event) {
|
||||
proxy.preInit(event);
|
||||
}
|
||||
|
||||
@Mod.EventHandler
|
||||
public void init(FMLInitializationEvent event) {
|
||||
proxy.init(event);
|
||||
}
|
||||
|
||||
@Mod.EventHandler
|
||||
public void postInit(FMLPostInitializationEvent event) {
|
||||
proxy.postInit(event);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,120 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.TagPropertyAccessor
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* net.minecraft.enchantment.EnchantmentHelper
|
||||
* net.minecraft.inventory.InventoryCrafting
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
* net.minecraft.world.World
|
||||
* net.minecraftforge.oredict.ShapedOreRecipe
|
||||
*/
|
||||
package net.langball.last_smith;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.TagPropertyAccessor;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.enchantment.EnchantmentHelper;
|
||||
import net.minecraft.inventory.InventoryCrafting;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.oredict.ShapedOreRecipe;
|
||||
|
||||
public class RecipeBx
|
||||
extends ShapedOreRecipe {
|
||||
ItemStack requiredBladeMain;
|
||||
ItemStack requiredBladeSub;
|
||||
|
||||
public RecipeBx(ItemStack result, ItemStack requiredBladeMain, ItemStack requiredBladeSub, Object ... recipe) {
|
||||
super(result, recipe);
|
||||
this.requiredBladeMain = requiredBladeMain;
|
||||
this.requiredBladeSub = requiredBladeSub;
|
||||
}
|
||||
|
||||
int tagValueCompare(TagPropertyAccessor access, NBTTagCompound reqTag, NBTTagCompound srcTag) {
|
||||
return access.get(reqTag).compareTo(access.get(srcTag));
|
||||
}
|
||||
|
||||
public boolean func_77569_a(InventoryCrafting inv, World world) {
|
||||
boolean result = super.func_77569_a(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()) {
|
||||
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)this.requiredBladeMain);
|
||||
NBTTagCompound srcTag = ItemSlashBlade.getItemTagCompound((ItemStack)curIs);
|
||||
if (!curIs.func_77977_a().equals(this.requiredBladeMain.func_77977_a())) {
|
||||
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());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public ItemStack func_77572_b(InventoryCrafting var1) {
|
||||
String key;
|
||||
ItemStack tmp;
|
||||
ItemStack result = super.func_77572_b(var1);
|
||||
ItemStack curIs = var1.func_70463_b(1, 1);
|
||||
NBTTagCompound oldTag = curIs.func_77978_p();
|
||||
oldTag = (NBTTagCompound)oldTag.func_74737_b();
|
||||
NBTTagCompound newTag = ItemSlashBlade.getItemTagCompound((ItemStack)result);
|
||||
if (ItemSlashBladeNamed.CurrentItemName.exists(newTag) && (tmp = SlashBlade.getCustomBlade((String)(key = ItemSlashBladeNamed.CurrentItemName.get(newTag)))) != null) {
|
||||
result = tmp;
|
||||
}
|
||||
newTag = ItemSlashBlade.getItemTagCompound((ItemStack)result);
|
||||
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.func_74764_b("adjustY")) {
|
||||
newTag.func_74776_a("adjustY", oldTag.func_74760_g("adjustY"));
|
||||
}
|
||||
if (oldTag.func_74764_b("adjustZ")) {
|
||||
newTag.func_74776_a("adjustZ", oldTag.func_74760_g("adjustZ"));
|
||||
}
|
||||
Map newItemEnchants = EnchantmentHelper.func_82781_a((ItemStack)result);
|
||||
Map oldItemEnchants = EnchantmentHelper.func_82781_a((ItemStack)curIs);
|
||||
Iterator localIterator1 = oldItemEnchants.keySet().iterator();
|
||||
while (localIterator1.hasNext()) {
|
||||
int enchantIndex = (Integer)localIterator1.next();
|
||||
Enchantment enchantment = Enchantment.field_77331_b[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);
|
||||
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;
|
||||
canApplyFlag = false;
|
||||
break;
|
||||
}
|
||||
if (!canApplyFlag) continue;
|
||||
newItemEnchants.put(enchantIndex, srcLevel);
|
||||
}
|
||||
EnchantmentHelper.func_82782_a((Map)newItemEnchants, (ItemStack)result);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* cpw.mods.fml.common.registry.VillagerRegistry$IVillageTradeHandler
|
||||
* net.minecraft.entity.passive.EntityVillager
|
||||
* net.minecraft.init.Items
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.village.MerchantRecipe
|
||||
* net.minecraft.village.MerchantRecipeList
|
||||
*/
|
||||
package net.langball.last_smith;
|
||||
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import cpw.mods.fml.common.registry.VillagerRegistry;
|
||||
import java.util.Random;
|
||||
import net.minecraft.entity.passive.EntityVillager;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.village.MerchantRecipe;
|
||||
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)));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.registry.VillagerRegistry$IVillageTradeHandler
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* net.minecraft.entity.passive.EntityVillager
|
||||
* net.minecraft.init.Items
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.village.MerchantRecipe
|
||||
* net.minecraft.village.MerchantRecipeList
|
||||
*/
|
||||
package net.langball.last_smith;
|
||||
|
||||
import cpw.mods.fml.common.registry.VillagerRegistry;
|
||||
import java.util.Random;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import net.minecraft.entity.passive.EntityVillager;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.village.MerchantRecipe;
|
||||
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)));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.registry.VillagerRegistry$IVillageCreationHandler
|
||||
* net.minecraft.util.MathHelper
|
||||
* net.minecraft.world.gen.structure.StructureVillagePieces$PieceWeight
|
||||
* net.minecraft.world.gen.structure.StructureVillagePieces$Start
|
||||
*/
|
||||
package net.langball.last_smith;
|
||||
|
||||
import cpw.mods.fml.common.registry.VillagerRegistry;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import net.langball.last_smith.BladeHouse;
|
||||
import net.minecraft.util.MathHelper;
|
||||
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)));
|
||||
}
|
||||
|
||||
public Class<?> getComponentClass() {
|
||||
return BladeHouse.class;
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.registry.VillagerRegistry$IVillageCreationHandler
|
||||
* net.minecraft.util.MathHelper
|
||||
* net.minecraft.world.gen.structure.StructureVillagePieces$PieceWeight
|
||||
* net.minecraft.world.gen.structure.StructureVillagePieces$Start
|
||||
*/
|
||||
package net.langball.last_smith;
|
||||
|
||||
import cpw.mods.fml.common.registry.VillagerRegistry;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import net.langball.last_smith.BladeHouse2;
|
||||
import net.minecraft.util.MathHelper;
|
||||
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)));
|
||||
}
|
||||
|
||||
public Class<?> getComponentClass() {
|
||||
return BladeHouse2.class;
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,215 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cofh.api.energy.IEnergyContainerItem
|
||||
* cofh.api.item.IEmpowerableItem
|
||||
* cofh.core.util.KeyBindingEmpower
|
||||
* cofh.lib.util.helpers.DamageHelper
|
||||
* cofh.lib.util.helpers.StringHelper
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade$ComboSequence
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.TagPropertyAccessor$TagPropertyBoolean
|
||||
* mods.flammpfeil.slashblade.TagPropertyAccessor$TagPropertyInteger
|
||||
* mods.flammpfeil.slashblade.TagPropertyAccessor$TagPropertyIntegerWithRange
|
||||
* mods.flammpfeil.slashblade.ability.StylishRankManager
|
||||
* net.minecraft.creativetab.CreativeTabs
|
||||
* net.minecraft.entity.Entity
|
||||
* net.minecraft.entity.EntityLivingBase
|
||||
* net.minecraft.entity.player.EntityPlayer
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.Item$ToolMaterial
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
* net.minecraft.world.World
|
||||
* org.lwjgl.input.Keyboard
|
||||
*/
|
||||
package net.langball.last_smith.addon;
|
||||
|
||||
import cofh.api.energy.IEnergyContainerItem;
|
||||
import cofh.api.item.IEmpowerableItem;
|
||||
import cofh.core.util.KeyBindingEmpower;
|
||||
import cofh.lib.util.helpers.DamageHelper;
|
||||
import cofh.lib.util.helpers.StringHelper;
|
||||
import java.util.List;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.TagPropertyAccessor;
|
||||
import mods.flammpfeil.slashblade.ability.StylishRankManager;
|
||||
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.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.world.World;
|
||||
import org.lwjgl.input.Keyboard;
|
||||
|
||||
public class ItemSlashbladeRFS
|
||||
extends ItemSlashBladeNamed
|
||||
implements IEnergyContainerItem,
|
||||
IEmpowerableItem {
|
||||
public static final int DefaultStartupCost = 2000;
|
||||
public static final TagPropertyAccessor.TagPropertyInteger StartupCost = new TagPropertyAccessor.TagPropertyInteger("StartupCost");
|
||||
public static final int DefaultRunningCost = 100;
|
||||
public static final TagPropertyAccessor.TagPropertyInteger RunningCost = new TagPropertyAccessor.TagPropertyInteger("RunningCost");
|
||||
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 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 void func_77663_a(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();
|
||||
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 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);
|
||||
}
|
||||
super.func_77663_a(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);
|
||||
if (StringHelper.displayShiftForDetail && !StringHelper.isShiftKeyDown()) {
|
||||
list.add(StringHelper.shiftForDetails());
|
||||
}
|
||||
if (!StringHelper.isShiftKeyDown()) {
|
||||
return;
|
||||
}
|
||||
NBTTagCompound tag = ItemSlashbladeRFS.getItemTagCompound((ItemStack)stack);
|
||||
list.add(StringHelper.localize((String)"info.cofh.charge") + ": " + Energy.get(tag) + " / " + maxEnergy + " RF");
|
||||
if (this.isEmpowered(stack)) {
|
||||
list.add("\u00a7e\u00a7o" + StringHelper.localize((String)"info.cofh.press") + " " + Keyboard.getKeyName((int)KeyBindingEmpower.instance.getKey()) + " " + StringHelper.localize((String)"info.flammpfeil.slashblade.tool.chargeOff") + "\u00a7r");
|
||||
} else {
|
||||
list.add("\u00a7b\u00a7o" + StringHelper.localize((String)"info.cofh.press") + " " + Keyboard.getKeyName((int)KeyBindingEmpower.instance.getKey()) + " " + StringHelper.localize((String)"info.flammpfeil.slashblade.tool.chargeOn") + "\u00a7r");
|
||||
}
|
||||
}
|
||||
|
||||
public boolean showDurabilityBar(ItemStack stack) {
|
||||
if (!StringHelper.isShiftKeyDown()) {
|
||||
return super.showDurabilityBar(stack);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public double getDurabilityForDisplay(ItemStack stack) {
|
||||
if (!StringHelper.isShiftKeyDown()) {
|
||||
return super.getDurabilityForDisplay(stack);
|
||||
}
|
||||
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 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 energyUsage = startupCost;
|
||||
if (energyUsage <= energy) {
|
||||
if (player.field_70122_E) {
|
||||
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));
|
||||
}
|
||||
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);
|
||||
}
|
||||
this.extractEnergy(stack, energyUsage, false);
|
||||
}
|
||||
|
||||
public void func_150895_a(Item par1, CreativeTabs par2CreativeTabs, List par3List) {
|
||||
}
|
||||
|
||||
public int receiveEnergy(ItemStack container, int maxReceive, boolean simulate) {
|
||||
NBTTagCompound tag = ItemSlashbladeRFS.getItemTagCompound((ItemStack)container);
|
||||
int stored = Energy.get(tag);
|
||||
int receive = Math.min(maxReceive, Math.min(maxEnergy - stored, maxTransfer));
|
||||
if (!simulate) {
|
||||
Energy.add(tag, Integer.valueOf(receive));
|
||||
}
|
||||
return receive;
|
||||
}
|
||||
|
||||
public int extractEnergy(ItemStack container, int maxExtract, boolean simulate) {
|
||||
NBTTagCompound tag = ItemSlashbladeRFS.getItemTagCompound((ItemStack)container);
|
||||
int stored = Energy.get(tag);
|
||||
int extract = Math.min(maxExtract, stored);
|
||||
if (!simulate && Energy.add(tag, Integer.valueOf(-extract)) == 0) {
|
||||
this.setEmpoweredState(container, false);
|
||||
}
|
||||
return extract;
|
||||
}
|
||||
|
||||
public int getEnergyStored(ItemStack container) {
|
||||
NBTTagCompound tag = ItemSlashbladeRFS.getItemTagCompound((ItemStack)container);
|
||||
return Energy.get(tag);
|
||||
}
|
||||
|
||||
public int getMaxEnergyStored(ItemStack itemStack) {
|
||||
return maxEnergy;
|
||||
}
|
||||
|
||||
public boolean isEmpowered(ItemStack stack) {
|
||||
NBTTagCompound tag = ItemSlashbladeRFS.getItemTagCompound((ItemStack)stack);
|
||||
return IsEmpowered.get(tag);
|
||||
}
|
||||
|
||||
public boolean setEmpoweredState(ItemStack stack, boolean state) {
|
||||
NBTTagCompound tag = ItemSlashbladeRFS.getItemTagCompound((ItemStack)stack);
|
||||
if (this.getEnergyStored(stack) > 0) {
|
||||
IsEmpowered.set(tag, Boolean.valueOf(state));
|
||||
return true;
|
||||
}
|
||||
IsEmpowered.set(tag, Boolean.valueOf(false));
|
||||
return false;
|
||||
}
|
||||
|
||||
public void onStateChange(EntityPlayer player, ItemStack stack) {
|
||||
NBTTagCompound tag = ItemSlashbladeRFS.getItemTagCompound((ItemStack)stack);
|
||||
if (this.isEmpowered(stack)) {
|
||||
boolean cancel = false;
|
||||
if (IsBroken.get(tag).booleanValue()) {
|
||||
cancel = true;
|
||||
}
|
||||
if (cancel) {
|
||||
player.field_70170_p.func_72956_a((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);
|
||||
this.onStartupEmpowered(player, stack);
|
||||
} else {
|
||||
player.field_70170_p.func_72956_a((Entity)player, "random.orb", 0.2f, 0.6f);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* mods.flammpfeil.slashblade.stats.AchievementList
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.init.Items
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.nbt.NBTBase
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
* vazkii.botania.api.BotaniaAPI
|
||||
* vazkii.botania.api.recipe.RecipeRuneAltar
|
||||
*/
|
||||
package net.langball.last_smith.addon;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
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.enchantment.Enchantment;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTBase;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import vazkii.botania.api.BotaniaAPI;
|
||||
import vazkii.botania.api.recipe.RecipeRuneAltar;
|
||||
|
||||
public class ItemSlashblade_BOT {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
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);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(91));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)7.0f);
|
||||
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
|
||||
ItemSlashBlade.TextureName.set(tag, "named/BOTlouguan/texture");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/BOTlouguan/model");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(56709));
|
||||
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);
|
||||
NBTTagCompound etag = new NBTTagCompound();
|
||||
tag.func_74782_a("SB.SEffect", (NBTBase)etag);
|
||||
etag.func_74768_a("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));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* mods.flammpfeil.slashblade.stats.AchievementList
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.init.Items
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.addon;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import mods.flammpfeil.slashblade.stats.AchievementList;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.BladeLoader;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_RFL {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
String name = "flammpfeil.slashblade.named.wenshi";
|
||||
String name2 = "flammpfeil.slashblade.named.roukan";
|
||||
ItemStack customblade = new ItemStack(BladeLoader.rfBlade, 1, 0);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(120));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)12.0f);
|
||||
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
|
||||
ItemSlashBlade.TextureName.set(tag, "named/RFlouguan/texture");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/RFlouguan/model");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(324));
|
||||
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);
|
||||
ItemStack custombladeReqired = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name2, (int)1);
|
||||
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
|
||||
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(1000));
|
||||
ItemSlashBlade.ProudSoul.set(reqTag, Integer.valueOf(2000));
|
||||
ItemSlashBlade.RepairCount.set(reqTag, Integer.valueOf(5));
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* 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;
|
||||
import cpw.mods.fml.relauncher.ReflectionHelper;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.entity.EntityBladeStand;
|
||||
import mods.flammpfeil.slashblade.util.SlashBladeEvent;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import vazkii.botania.common.block.tile.mana.TilePool;
|
||||
|
||||
public class ManaRepair {
|
||||
public static final String EffectKey = "ManaRepair";
|
||||
|
||||
@SubscribeEvent
|
||||
public void onUpdateBladeStand(SlashBladeEvent.OnEntityBladeStandUpdateEvent event) {
|
||||
try {
|
||||
TileEntity tile;
|
||||
EntityBladeStand stand = (EntityBladeStand)ReflectionHelper.getPrivateValue(SlashBladeEvent.OnEntityBladeStandUpdateEvent.class, event, "entityBladeStand");
|
||||
if (!stand.hasBlade()) {
|
||||
return;
|
||||
}
|
||||
ItemStack blade = event.blade;
|
||||
if (!blade.func_77951_h()) {
|
||||
return;
|
||||
}
|
||||
NBTTagCompound tag = ItemSlashBlade.getItemTagCompound((ItemStack)blade);
|
||||
NBTTagCompound etag = tag.func_74775_l("SB.SEffect");
|
||||
int reqiredLevel = etag.func_74762_e(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) {
|
||||
return;
|
||||
}
|
||||
if (!(tile instanceof TilePool)) {
|
||||
return;
|
||||
}
|
||||
TilePool pool = (TilePool)tile;
|
||||
int current = pool.getCurrentMana();
|
||||
if (current < 75) {
|
||||
return;
|
||||
}
|
||||
pool.recieveMana(-75);
|
||||
blade.func_77964_b(blade.func_77960_j() - 3);
|
||||
}
|
||||
catch (Throwable throwable) {
|
||||
// empty catch block
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,139 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* net.minecraft.block.Block
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.init.Items
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.util.ResourceLocation
|
||||
* thaumcraft.api.ThaumcraftApi
|
||||
* thaumcraft.api.aspects.Aspect
|
||||
* thaumcraft.api.aspects.AspectList
|
||||
* thaumcraft.api.crafting.InfusionRecipe
|
||||
* thaumcraft.api.research.ResearchCategories
|
||||
* thaumcraft.api.research.ResearchItem
|
||||
* thaumcraft.api.research.ResearchPage
|
||||
*/
|
||||
package net.langball.last_smith.addon;
|
||||
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import thaumcraft.api.ThaumcraftApi;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
import thaumcraft.api.aspects.AspectList;
|
||||
import thaumcraft.api.crafting.InfusionRecipe;
|
||||
import thaumcraft.api.research.ResearchCategories;
|
||||
import thaumcraft.api.research.ResearchItem;
|
||||
import thaumcraft.api.research.ResearchPage;
|
||||
|
||||
public class ThaumLoader {
|
||||
public static String RESEARCH_Blade = "blade";
|
||||
public static Aspect Aspect_Blade;
|
||||
public static Aspect Aspect_proud;
|
||||
|
||||
public ThaumLoader() {
|
||||
this.TCinit();
|
||||
this.TCrecipe();
|
||||
}
|
||||
|
||||
private void TCrecipe() {
|
||||
ItemStack soul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"proudsoul", (int)1);
|
||||
ItemStack tinySoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"tiny_bladesoul", (int)1);
|
||||
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
|
||||
ItemStack sphere = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
|
||||
Item crystal = GameRegistry.findItem((String)"Thaumcraft", (String)"blockCrystal");
|
||||
ThaumcraftApi.registerObjectTag((ItemStack)tinySoul, (AspectList)new AspectList().add(Aspect.METAL, 1).add(Aspect.SOUL, 1).add(Aspect.FIRE, 1).add(Aspect_proud, 2));
|
||||
ThaumcraftApi.registerObjectTag((ItemStack)ingot, (AspectList)new AspectList().add(Aspect.METAL, 3).add(Aspect.SOUL, 8).add(Aspect_Blade, 6).add(Aspect_proud, 8));
|
||||
ThaumcraftApi.registerObjectTag((ItemStack)sphere, (AspectList)new AspectList().add(Aspect.METAL, 2).add(Aspect.SOUL, 8).add(Aspect.CRYSTAL, 1).add(Aspect_Blade, 12).add(Aspect_proud, 16));
|
||||
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_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_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});
|
||||
}
|
||||
|
||||
private void TCinit() {
|
||||
ItemStack soul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"proudsoul", (int)1);
|
||||
ItemStack tinySoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"tiny_bladesoul", (int)1);
|
||||
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
|
||||
ItemStack sphere = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
|
||||
Item crystal = GameRegistry.findItem((String)"Thaumcraft", (String)"blockCrystal");
|
||||
Aspect_Blade = new Aspect("odachi", 0xFFFFF0, new Aspect[]{Aspect.WEAPON, Aspect.VOID}, new ResourceLocation("lastsmith", "textures/aspects/blade.png"), 1);
|
||||
Aspect_proud = new Aspect("proud", 7147944, new Aspect[]{Aspect.SOUL, Aspect_Blade}, new ResourceLocation("lastsmith", "textures/aspects/proud.png"), 1);
|
||||
ThaumcraftApi.registerObjectTag((ItemStack)new ItemStack(CommonProxy.blade_work), (AspectList)new AspectList().add(Aspect.METAL, 10).add(Aspect_Blade, 6));
|
||||
ThaumcraftApi.registerObjectTag((ItemStack)new ItemStack(CommonProxy.hammer), (AspectList)new AspectList().add(Aspect.METAL, 20).add(Aspect_Blade, 2).add(Aspect_proud, 4).add(Aspect.TOOL, 10));
|
||||
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"}));
|
||||
}
|
||||
|
||||
private InfusionRecipe Infusion_basic(ItemStack item, ItemStack need) {
|
||||
ItemStack soul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"proudsoul", (int)1);
|
||||
ItemStack tinySoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"tiny_bladesoul", (int)1);
|
||||
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
|
||||
ItemStack sphere = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
|
||||
Item crystal = GameRegistry.findItem((String)"Thaumcraft", (String)"blockCrystal");
|
||||
InfusionRecipe recipe = ThaumcraftApi.addInfusionCraftingRecipe((String)"Infusion_basic", (Object)item, (int)1, (AspectList)new AspectList().add(Aspect_Blade, 16).add(Aspect.WEAPON, 16).add(Aspect.ENERGY, 16), (ItemStack)GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"slashbladeNamed", (int)1), (ItemStack[])new ItemStack[]{soul, soul, soul, soul, soul, soul, soul, need});
|
||||
return recipe;
|
||||
}
|
||||
|
||||
private InfusionRecipe Infusion_normal(ItemStack item, ItemStack need, ItemStack need2) {
|
||||
ItemStack soul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"proudsoul", (int)1);
|
||||
ItemStack tinySoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"tiny_bladesoul", (int)1);
|
||||
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
|
||||
ItemStack sphere = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
|
||||
Item crystal = GameRegistry.findItem((String)"Thaumcraft", (String)"blockCrystal");
|
||||
InfusionRecipe recipe = ThaumcraftApi.addInfusionCraftingRecipe((String)"Infusion_basic", (Object)item, (int)1, (AspectList)new AspectList().add(Aspect_Blade, 32).add(Aspect.WEAPON, 32).add(Aspect.ENERGY, 32).add(Aspect.VOID, 32).add(Aspect.AIR, 64).add(Aspect.WATER, 64).add(Aspect.FIRE, 64).add(Aspect.EARTH, 64), (ItemStack)GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"slashbladeNamed", (int)1), (ItemStack[])new ItemStack[]{soul, soul, ingot, ingot, soul, soul, need, need2, soul, soul});
|
||||
return recipe;
|
||||
}
|
||||
|
||||
private InfusionRecipe Infusion_hard(ItemStack item, ItemStack need, ItemStack need2) {
|
||||
ItemStack soul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"proudsoul", (int)1);
|
||||
ItemStack tinySoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"tiny_bladesoul", (int)1);
|
||||
ItemStack ingot = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1);
|
||||
ItemStack sphere = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
|
||||
Item crystal = GameRegistry.findItem((String)"Thaumcraft", (String)"blockCrystal");
|
||||
InfusionRecipe recipe = ThaumcraftApi.addInfusionCraftingRecipe((String)"Infusion_basic", (Object)item, (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)GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"slashbladeNamed", (int)1), (ItemStack[])new ItemStack[]{ingot, soul, sphere, sphere, ingot, ingot, need, need2, ingot, ingot});
|
||||
ThaumcraftApi.registerObjectTag((ItemStack)item, (AspectList)new AspectList().add(Aspect.METAL, 16).add(Aspect_Blade, 16).add(Aspect_proud, 16).add(Aspect.SOUL, 16).add(Aspect.WEAPON, 16));
|
||||
return recipe;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.Loader
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* mods.flammpfeil.slashblade.RecipeWrapBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
*/
|
||||
package net.langball.last_smith.addon.ex;
|
||||
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import mods.flammpfeil.slashblade.RecipeWrapBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
|
||||
public class ItemSlashblade_exparmory1 {
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
if (Loader.isModLoaded((String)"cwm")) {
|
||||
RecipeWrapBlade.RegisterWrapable((String)"cwm:SamuriJack", (String)"named/ExparmoryBlade/CWMSamuriJack", (float)10.0f);
|
||||
}
|
||||
if (Loader.isModLoaded((String)"Botania")) {
|
||||
RecipeWrapBlade.RegisterWrapable((String)"exparmory:katana.manasteel", (String)"named/ExparmoryBlade/ExparmoryManasteel", (float)3.0f);
|
||||
}
|
||||
RecipeWrapBlade.RegisterWrapable((String)"exparmory:katana.steel", (String)"named/ExparmoryBlade/ExparmorySteel", (float)4.0f);
|
||||
if (Loader.isModLoaded((String)"Thaumcraft")) {
|
||||
RecipeWrapBlade.RegisterWrapable((String)"exparmory:katana.void", (String)"named/ExparmoryBlade/ExparmoryVoid", (float)6.0f);
|
||||
RecipeWrapBlade.RegisterWrapable((String)"exparmory:katana.thaumium", (String)"named/ExparmoryBlade/ExparmoryThaumium", (float)3.0f);
|
||||
}
|
||||
if (Loader.isModLoaded((String)"simpleores")) {
|
||||
RecipeWrapBlade.RegisterWrapable((String)"exparmory:katana.onyx", (String)"named/ExparmoryBlade/ExparmoryOnyx", (float)6.0f);
|
||||
RecipeWrapBlade.RegisterWrapable((String)"exparmory:katana.adamantium", (String)"named/ExparmoryBlade/ExparmoryAdamantium", (float)4.0f);
|
||||
}
|
||||
if (Loader.isModLoaded((String)"appliedenergistics2")) {
|
||||
RecipeWrapBlade.RegisterWrapable((String)"exparmory:katana.quartz", (String)"named/ExparmoryBlade/ExparmoryQuartz", (float)3.0f);
|
||||
RecipeWrapBlade.RegisterWrapable((String)"exparmory:katana.certus", (String)"named/ExparmoryBlade/ExparmoryCertus", (float)3.0f);
|
||||
}
|
||||
RecipeWrapBlade.RegisterWrapable((String)"exparmory:katana.bronze", (String)"named/ExparmoryBlade/ExparmoryBronze", (float)3.0f);
|
||||
if (Loader.isModLoaded((String)"Steamcraft")) {
|
||||
RecipeWrapBlade.RegisterWrapable((String)"exparmory:katana.gildediron", (String)"named/ExparmoryBlade/ExparmoryGildediron", (float)3.0f);
|
||||
RecipeWrapBlade.RegisterWrapable((String)"exparmory:katana.brass", (String)"named/ExparmoryBlade/ExparmoryBrass", (float)3.5f);
|
||||
}
|
||||
if (Loader.isModLoaded((String)"netherrocks")) {
|
||||
RecipeWrapBlade.RegisterWrapable((String)"exparmory:katana.malachite", (String)"named/ExparmoryBlade/ExparmoryMalachite", (float)4.0f);
|
||||
RecipeWrapBlade.RegisterWrapable((String)"exparmory:katana.ashstone", (String)"named/ExparmoryBlade/ExparmoryAshstone", (float)3.0f);
|
||||
RecipeWrapBlade.RegisterWrapable((String)"exparmory:katana.dragonstone", (String)"named/ExparmoryBlade/ExparmoryDragonstone", (float)9.0f);
|
||||
RecipeWrapBlade.RegisterWrapable((String)"exparmory:katana.argonite", (String)"named/ExparmoryBlade/ExparmoryArgonite", (float)4.0f);
|
||||
}
|
||||
if (Loader.isModLoaded((String)"fusion")) {
|
||||
RecipeWrapBlade.RegisterWrapable((String)"exparmory:katana.thyrium", (String)"named/ExparmoryBlade/ExparmoryThyrium", (float)7.0f);
|
||||
RecipeWrapBlade.RegisterWrapable((String)"exparmory:katana.sinisite", (String)"named/ExparmoryBlade/ExparmorySinisite", (float)9.0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* mods.flammpfeil.slashblade.stats.AchievementList
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.init.Items
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.Item$ToolMaterial
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.bamboolightplus.blade;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import mods.flammpfeil.slashblade.stats.AchievementList;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_BambooLight_nice {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
String name = "flammpfeil.slashblade.named.bamboolight_nice";
|
||||
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(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.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);
|
||||
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"));
|
||||
}
|
||||
}
|
||||
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.NamedBladeManager
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* net.minecraft.init.Items
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.Item$ToolMaterial
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.bamboolightplus.blade;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.NamedBladeManager;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.sa.Iai;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_BambooLight_yin {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
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);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(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.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);
|
||||
ItemStack custombladeReqired = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name1, (int)1);
|
||||
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
|
||||
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(400));
|
||||
ItemSlashBlade.ProudSoul.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[]{"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");
|
||||
AchievementListTLS.registerCraftingAchievement(name, -5, 7, customblade, AchievementListTLS.getAchievement(name1));
|
||||
}
|
||||
}
|
||||
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.NamedBladeManager
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.Item$ToolMaterial
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.bamboolightplus.blade;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.NamedBladeManager;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.sa.Iai;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_SilverBambooLight_blood {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
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);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(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.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);
|
||||
ItemStack custombladeReqired = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name1, (int)1);
|
||||
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
|
||||
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(1000));
|
||||
ItemSlashBlade.ProudSoul.set(reqTag, Integer.valueOf(200));
|
||||
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");
|
||||
AchievementListTLS.registerCraftingAchievement(name, -4, 9, customblade, AchievementListTLS.getAchievement(name1));
|
||||
}
|
||||
}
|
||||
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.Item$ToolMaterial
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.bamboolightplus.blade;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_SilverBambooLight_gold {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
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);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(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.TextureName.set(tag, "named/silverbamboolight/silverbamboo_gold");
|
||||
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 = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name1, (int)1);
|
||||
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
|
||||
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(200));
|
||||
ItemSlashBlade.ProudSoul.set(reqTag, Integer.valueOf(100));
|
||||
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)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, -4, 7, customblade, AchievementListTLS.getAchievement(name1));
|
||||
}
|
||||
}
|
||||
|
||||
+65
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* mods.flammpfeil.slashblade.stats.AchievementList
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.init.Items
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.Item$ToolMaterial
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.bamboolightplus.blade;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import mods.flammpfeil.slashblade.stats.AchievementList;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_SilverBambooLight_nice {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
String name = "flammpfeil.slashblade.named.silverbamboolight_nice";
|
||||
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(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.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);
|
||||
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"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.block.Block
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.BladeLoader;
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
import net.langball.last_smith.blade.SlashDimension_old;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_Eievui {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
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);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(113));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
|
||||
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)8.0f);
|
||||
ItemSlashBlade.TextureName.set(tag, "named/eievui/texture");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/eievui/model");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(100));
|
||||
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
|
||||
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
|
||||
ItemSlashBladeNamed.NamedBlades.add(name);
|
||||
ItemStack custombladeReqired = new ItemStack((Item)BladeLoader.blade);
|
||||
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
|
||||
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(100));
|
||||
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)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, 1, -2, customblade, AchievementListTLS.getAchievement("lastsmith_blade"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.NamedBladeManager
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.NamedBladeManager;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.blade.SlashDimension_old;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_Eievui2 {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
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);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(113));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(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);
|
||||
AchievementListTLS.registerCraftingAchievement(name, -10, -5, customblade, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.block.Block
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.BladeLoader;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_Louguan_old {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
String name = "flammpfeil.slashblade.named.louguan_old";
|
||||
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(250));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)7.0f);
|
||||
ItemSlashBlade.TextureName.set(tag, "named/oldlouguan/texture_1");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/agito");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(100));
|
||||
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
|
||||
ItemSlashBladeNamed.NamedBlades.add(name);
|
||||
ItemStack custombladeReqired = new ItemStack((Item)BladeLoader.blade);
|
||||
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
|
||||
ItemSlashBlade.KillCount.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(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)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, 3, -2, customblade, AchievementListTLS.getAchievement("lastsmith_blade"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_Louguan_old2 {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
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);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name2);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(350));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)10.0f);
|
||||
ItemSlashBlade.TextureName.set(tag, "named/oldlouguan/texture_2");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/agito");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(100));
|
||||
GameRegistry.registerCustomItemStack((String)name2, (ItemStack)customblade);
|
||||
ItemSlashBladeNamed.NamedBlades.add(name2);
|
||||
ItemStack custombladeReqired = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
|
||||
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
|
||||
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(350));
|
||||
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)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name2, 5, -2, customblade, AchievementListTLS.getAchievement(name));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_Slashblade_old {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
String name = "flammpfeil.slashblade.named.slashblade_old";
|
||||
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(51));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(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);
|
||||
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)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, -7, -5, customblade, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.init.Items
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.blade.SlashDimension_old;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_Sweapon {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
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);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(51));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)4.0f);
|
||||
ItemSlashBlade.TextureName.set(tag, "named/sweapon/texture");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/sweapon/model");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(100));
|
||||
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
|
||||
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
|
||||
ItemSlashBladeNamed.NamedBlades.add(name);
|
||||
ItemStack custombladeReqired = new ItemStack((Item)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)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, -8, -5, customblade, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
import net.langball.last_smith.blade.SlashDimension_old;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_Template {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
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);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(65));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)6.0f);
|
||||
ItemSlashBlade.TextureName.set(tag, "named/famous/5");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/muramasa/muramasa");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(1));
|
||||
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
|
||||
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
|
||||
ItemSlashBladeNamed.NamedBlades.add(name);
|
||||
ItemStack custombladeReqired = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name2, (int)1);
|
||||
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[]{" 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)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, -5, -5, customblade, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
import net.langball.last_smith.blade.SlashDimension_old;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_Template2 {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
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);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(65));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)6.0f);
|
||||
ItemSlashBlade.TextureName.set(tag, "named/famous/6");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/muramasa/muramasa");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(1));
|
||||
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
|
||||
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
|
||||
ItemSlashBladeNamed.NamedBlades.add(name);
|
||||
ItemStack custombladeReqired = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name2, (int)1);
|
||||
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[]{" 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)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, -4, -5, customblade, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_Void {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
String name = "flammpfeil.slashblade.named.void_blade";
|
||||
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(113));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
|
||||
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)15.0f);
|
||||
ItemSlashBlade.TextureName.set(tag, "named/void");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/sange/sange");
|
||||
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);
|
||||
ItemSlashBladeNamed.NamedBlades.add(name);
|
||||
AchievementListTLS.registerCraftingAchievement(name, 10, 10, customblade, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.init.Items
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.BladeLoader;
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
import net.langball.last_smith.blade.SlashDimension_old;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_kogawa {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
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);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(113));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)7.0f);
|
||||
ItemSlashBlade.TextureName.set(tag, "named/Kogawa/texture_normal");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/Kogawa/model");
|
||||
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
|
||||
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
|
||||
ItemSlashBladeNamed.NamedBlades.add(name);
|
||||
ItemStack custombladeReqired = new ItemStack((Item)BladeLoader.blade);
|
||||
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[]{"ADA", "DBD", "ADA", Character.valueOf('A'), CommonProxy.steel_ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('D'), new ItemStack(Items.field_151116_aA)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, -5, -2, customblade, AchievementListTLS.getAchievement("lastsmith_blade"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.init.Items
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.blade.SlashDimension_old;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_kogawa2 {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
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);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(113));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)9.0f);
|
||||
ItemSlashBlade.TextureName.set(tag, "named/Kogawa/texture_rare");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/Kogawa/model");
|
||||
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
|
||||
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
|
||||
ItemSlashBladeNamed.NamedBlades.add(name);
|
||||
ItemStack custombladeReqired = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name1, (int)1);
|
||||
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
|
||||
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(100));
|
||||
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)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, -3, -2, customblade, AchievementListTLS.getAchievement(name1));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* net.minecraft.init.Items
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.blade.SlashDimension_old;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_kogawa3 {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
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);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(113));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)11.0f);
|
||||
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
|
||||
ItemSlashBlade.TextureName.set(tag, "named/Kogawa/texture_super");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/Kogawa/model");
|
||||
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);
|
||||
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)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, -1, -2, customblade, AchievementListTLS.getAchievement(name1));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_kogawa4 {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
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);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(113));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)10.0f);
|
||||
ItemSlashBlade.TextureName.set(tag, "named/Kogawa/texture_ninja");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/Kogawa/model");
|
||||
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
|
||||
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
|
||||
ItemSlashBladeNamed.NamedBlades.add(name);
|
||||
ItemStack custombladeReqired = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name1, (int)1);
|
||||
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
|
||||
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(100));
|
||||
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'), "dyeBlack"}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, -1, -4, customblade, AchievementListTLS.getAchievement(name1));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* net.minecraft.init.Items
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.blade.SlashDimension_old;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_lkaruga {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
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);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(113));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
|
||||
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)12.0f);
|
||||
ItemSlashBlade.TextureName.set(tag, "named/Ikaruga/texture");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/Ikaruga/model");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(5));
|
||||
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);
|
||||
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)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, 16, -3, customblade, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.BladeLoader;
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_oldblade {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
String name = "flammpfeil.slashblade.named.oldblade";
|
||||
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(250));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)7.0f);
|
||||
ItemSlashBlade.TextureName.set(tag, "named/oldtime/432");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/oldtime/model");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(100));
|
||||
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
|
||||
ItemSlashBladeNamed.NamedBlades.add(name);
|
||||
ItemStack custombladeReqired = new ItemStack((Item)BladeLoader.blade);
|
||||
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
|
||||
ItemSlashBlade.KillCount.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(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)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, -9, -5, customblade, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* net.minecraft.init.Items
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_sagequoia {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
String name = "flammpfeil.slashblade.named.sagequoia";
|
||||
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(113));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
|
||||
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)12.0f);
|
||||
ItemSlashBlade.TextureName.set(tag, "named/sagequoia/texture");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/sagequoia/model");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(5));
|
||||
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);
|
||||
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)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, -10, 10, customblade, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.block.Block
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.BladeLoader;
|
||||
import net.langball.last_smith.sa.Sakuya;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_sakuya {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
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);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(61));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(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);
|
||||
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
|
||||
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(50));
|
||||
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)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, 2, 4, customblade, AchievementListTLS.getAchievement("lastsmith_blade"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.block.Block
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.BladeLoader;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_sakuya2 {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
String name = "flammpfeil.slashblade.named.ginkgoblade";
|
||||
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(61));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(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);
|
||||
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
|
||||
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(50));
|
||||
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)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, 2, 6, customblade, AchievementListTLS.getAchievement("smith_blade"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.BladeLoader;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_sakuya3 {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
String name = "flammpfeil.slashblade.named.snowblade";
|
||||
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(71));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(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);
|
||||
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
|
||||
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(50));
|
||||
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)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, 2, 8, customblade, AchievementListTLS.getAchievement("smith_blade"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.BladeLoader;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_sakuya4 {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
String name = "flammpfeil.slashblade.named.doubleblade";
|
||||
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(113));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(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);
|
||||
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
|
||||
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(100));
|
||||
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)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, 2, 10, customblade, AchievementListTLS.getAchievement("smith_blade"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_sakuya5 {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
String name = "flammpfeil.slashblade.named.shurablade";
|
||||
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(113));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(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);
|
||||
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));
|
||||
ItemSlashBlade.ProudSoul.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[]{"DAD", "CBC", "DAD", Character.valueOf('A'), itemSphereBladeSoul, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack(Blocks.field_150385_bj)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, 2, 12, customblade, AchievementListTLS.getAchievement("flammpfeil.slashblade.named.doubleblade"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,123 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade$ComboSequence
|
||||
* mods.flammpfeil.slashblade.ability.StylishRankManager
|
||||
* mods.flammpfeil.slashblade.ability.StylishRankManager$AttackTypes
|
||||
* mods.flammpfeil.slashblade.entity.EntitySlashDimension
|
||||
* mods.flammpfeil.slashblade.specialattack.SpecialAttackBase
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* net.minecraft.enchantment.EnchantmentHelper
|
||||
* net.minecraft.entity.Entity
|
||||
* net.minecraft.entity.EntityLivingBase
|
||||
* net.minecraft.entity.player.EntityPlayer
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
* net.minecraft.util.AxisAlignedBB
|
||||
* net.minecraft.util.Vec3
|
||||
* net.minecraft.world.World
|
||||
*/
|
||||
package net.langball.last_smith.blade;
|
||||
|
||||
import java.util.List;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ability.StylishRankManager;
|
||||
import mods.flammpfeil.slashblade.entity.EntitySlashDimension;
|
||||
import mods.flammpfeil.slashblade.specialattack.SpecialAttackBase;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.enchantment.EnchantmentHelper;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.util.Vec3;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class SlashDimension_old
|
||||
extends SpecialAttackBase {
|
||||
public String toString() {
|
||||
return "slashdimension";
|
||||
}
|
||||
|
||||
public void doSpacialAttack(ItemStack stack, EntityPlayer player) {
|
||||
Entity tmp;
|
||||
World world = player.field_70170_p;
|
||||
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) {
|
||||
target = tmp;
|
||||
}
|
||||
if (target == null) {
|
||||
target = this.getEntityToWatch(player);
|
||||
}
|
||||
if (target == null) {
|
||||
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.SlashDim);
|
||||
} else {
|
||||
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.SlashDim);
|
||||
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);
|
||||
int cost = -20;
|
||||
if (!ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(-20), false)) {
|
||||
ItemSlashBlade.damageItem((ItemStack)stack, (int)10, (EntityLivingBase)player);
|
||||
}
|
||||
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();
|
||||
for (Entity curEntity : (java.util.List<Entity>)(java.util.List<?>)list) {
|
||||
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);
|
||||
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.setLifeTime(1);
|
||||
dim.setColor(0xFFFFFF);
|
||||
world.func_72838_d((Entity)dim);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private Entity getEntityToWatch(EntityPlayer player) {
|
||||
World world = player.field_70170_p;
|
||||
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);
|
||||
float distance = 30.0f;
|
||||
for (Entity curEntity : (java.util.List<Entity>)(java.util.List<?>)list) {
|
||||
float curDist = curEntity.func_70032_d((Entity)player);
|
||||
if (!(curDist < distance)) continue;
|
||||
target = curEntity;
|
||||
distance = curDist;
|
||||
}
|
||||
if (target != null) break;
|
||||
}
|
||||
return target;
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade.arthurs;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_117 {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
String name = "flammpfeil.slashblade.named.117";
|
||||
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(71));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
|
||||
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)10.0f);
|
||||
ItemSlashBlade.TextureName.set(tag, "named/Arthurs/texture_117");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/Kogawa/model");
|
||||
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);
|
||||
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)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, 20, 10, customblade, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade.arthurs;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_irsoft {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
String name = "flammpfeil.slashblade.named.irsoft";
|
||||
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(71));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
|
||||
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)10.0f);
|
||||
ItemSlashBlade.TextureName.set(tag, "named/Arthurs/texture_irsoft");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/Arthurs/model_irsort");
|
||||
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);
|
||||
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)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, 21, 10, customblade, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* net.minecraft.init.Items
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade.arthurs;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_liu {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
String name = "flammpfeil.slashblade.named.liu";
|
||||
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(71));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
|
||||
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)10.0f);
|
||||
ItemSlashBlade.TextureName.set(tag, "named/Arthurs/texture_liu");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/Arthurs/model_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);
|
||||
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)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, 21, 11, customblade, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade.arthurs;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_luli {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
String name = "flammpfeil.slashblade.named.luli";
|
||||
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(71));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
|
||||
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)10.0f);
|
||||
ItemSlashBlade.TextureName.set(tag, "named/Arthurs/texture_luli");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/Arthurs/model_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);
|
||||
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)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, 21, 12, customblade, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* net.minecraft.init.Items
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade.arthurs;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_nethop {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
String name = "flammpfeil.slashblade.named.nethop";
|
||||
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(71));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
|
||||
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)10.0f);
|
||||
ItemSlashBlade.TextureName.set(tag, "named/Arthurs/texture_grand");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/Arthurs/model_grand");
|
||||
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);
|
||||
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)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, 20, 14, customblade, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade.arthurs;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_pear {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
String name = "flammpfeil.slashblade.named.pear";
|
||||
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(71));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
|
||||
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)10.0f);
|
||||
ItemSlashBlade.TextureName.set(tag, "named/Arthurs/texture_pear");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/Arthurs/model_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);
|
||||
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)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, 20, 12, customblade, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* net.minecraft.init.Items
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade.arthurs;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_yile {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
String name = "flammpfeil.slashblade.named.yile";
|
||||
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(71));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
|
||||
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)10.0f);
|
||||
ItemSlashBlade.TextureName.set(tag, "named/Arthurs/texture_yile");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/Arthurs/model_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);
|
||||
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)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, 20, 11, customblade, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* net.minecraft.init.Items
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade.arthurs;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_yu {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
String name = "flammpfeil.slashblade.named.zombie";
|
||||
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(71));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
|
||||
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)10.0f);
|
||||
ItemSlashBlade.TextureName.set(tag, "named/Arthurs/texture_zombie");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/Arthurs/model_zombie");
|
||||
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);
|
||||
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)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, 20, 13, customblade, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* net.minecraft.init.Items
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade.arthurs;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_zheng {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
String name = "flammpfeil.slashblade.named.zheng";
|
||||
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(71));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(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);
|
||||
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)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, 21, 13, customblade, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade.famous;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_Blade {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
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);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(90));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)9.0f);
|
||||
ItemSlashBlade.TextureName.set(tag, "named/famous/7");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/famous/1");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(5));
|
||||
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
|
||||
ItemSlashBladeNamed.NamedBlades.add(name);
|
||||
ItemStack custombladeReqired = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name2, (int)1);
|
||||
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[]{" DA", "DA ", "BC ", Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), "dyeGreen", Character.valueOf('D'), new ItemStack(Blocks.field_150339_S)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, 6, 5, customblade, AchievementListTLS.getAchievement(name2));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade.famous;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_Blade2 {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
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);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(90));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)9.0f);
|
||||
ItemSlashBlade.TextureName.set(tag, "named/famous/1");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/famous/1");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(5));
|
||||
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
|
||||
ItemSlashBladeNamed.NamedBlades.add(name);
|
||||
ItemStack custombladeReqired = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name2, (int)1);
|
||||
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[]{" 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)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, 6, 6, customblade, AchievementListTLS.getAchievement(name2));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade.famous;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_Blade3 {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
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);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(90));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)9.0f);
|
||||
ItemSlashBlade.TextureName.set(tag, "named/famous/2");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/famous/1");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(5));
|
||||
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
|
||||
ItemSlashBladeNamed.NamedBlades.add(name);
|
||||
ItemStack custombladeReqired = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name2, (int)1);
|
||||
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[]{" 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)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, 6, 7, customblade, AchievementListTLS.getAchievement(name2));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade.famous;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_Blade4 {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
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);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(90));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)9.0f);
|
||||
ItemSlashBlade.TextureName.set(tag, "named/famous/3");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/famous/1");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(5));
|
||||
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
|
||||
ItemSlashBladeNamed.NamedBlades.add(name);
|
||||
ItemStack custombladeReqired = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name2, (int)1);
|
||||
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[]{" 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)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, 6, 8, customblade, AchievementListTLS.getAchievement(name2));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade.famous;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_Blade5 {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
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);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(90));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)9.0f);
|
||||
ItemSlashBlade.TextureName.set(tag, "named/famous/4");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/famous/1");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(5));
|
||||
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
|
||||
ItemSlashBladeNamed.NamedBlades.add(name);
|
||||
ItemStack custombladeReqired = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name2, (int)1);
|
||||
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[]{" 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)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, 6, 9, customblade, AchievementListTLS.getAchievement(name2));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade.famous;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.BladeLoader;
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_Blade_basic {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
String name = "flammpfeil.slashblade.named.namedblade_basic";
|
||||
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(90));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)7.0f);
|
||||
ItemSlashBlade.TextureName.set(tag, "named/oldtime/2");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/oldtime/soda");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(5));
|
||||
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
|
||||
ItemSlashBladeNamed.NamedBlades.add(name);
|
||||
ItemStack custombladeReqired = new ItemStack((Item)BladeLoader.blade);
|
||||
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[]{" DA", "DA ", "B H", Character.valueOf('A'), CommonProxy.steel_ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('H'), CommonProxy.hammer, Character.valueOf('D'), "logWood"}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, 5, 5, customblade, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade.smith;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.BladeLoader;
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_Smith {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
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);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(90));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)7.0f);
|
||||
ItemSlashBlade.TextureName.set(tag, "named/smith/smith_0");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/muramasa/muramasa");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(0));
|
||||
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
|
||||
ItemSlashBladeNamed.NamedBlades.add(name);
|
||||
ItemStack custombladeReqired = new ItemStack((Item)BladeLoader.blade);
|
||||
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[]{" 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)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, 9, 7, customblade, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade.smith;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_Smith2 {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
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);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(95));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)10.0f);
|
||||
ItemSlashBlade.TextureName.set(tag, "named/smith/smith_1");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/muramasa/muramasa");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(0));
|
||||
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
|
||||
ItemSlashBladeNamed.NamedBlades.add(name);
|
||||
ItemStack custombladeReqired = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name2, (int)1);
|
||||
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
|
||||
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(50));
|
||||
ItemSlashBlade.RepairCount.set(reqTag, Integer.valueOf(1));
|
||||
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)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, 11, 7, customblade, AchievementListTLS.getAchievement(name2));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade.smith;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.RecipeBx;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_Smith3 {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
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);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(95));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(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);
|
||||
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 = ItemSlashBlade.getItemTagCompound((ItemStack)reqiredSub)).func_74764_b("ench")) {
|
||||
tag1.func_82580_o("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));
|
||||
SlashBlade.addRecipe((String)name, (IRecipe)recipe);
|
||||
AchievementListTLS.registerCraftingAchievement(name, 13, 7, customblade, AchievementListTLS.getAchievement(name2));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade.smith;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
import net.langball.last_smith.RecipeBx;
|
||||
import net.langball.last_smith.sa.Sakuya2;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_Smith4 {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
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);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(256));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)20.0f);
|
||||
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
|
||||
ItemSlashBlade.TextureName.set(tag, "named/smith/smith_3");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/agito");
|
||||
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);
|
||||
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);
|
||||
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)sb);
|
||||
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(1000));
|
||||
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 = ItemSlashBlade.getItemTagCompound((ItemStack)reqiredSub)).func_74764_b("ench")) {
|
||||
tag1.func_82580_o("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));
|
||||
SlashBlade.addRecipe((String)name, (IRecipe)recipe);
|
||||
AchievementListTLS.registerCraftingAchievement(name, 15, 7, customblade, AchievementListTLS.getAchievement(name2));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.blade.smith;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.BladeLoader;
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_Smith_knife {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
String name = "flammpfeil.slashblade.named.smith_knife";
|
||||
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(90));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)7.0f);
|
||||
ItemSlashBlade.TextureName.set(tag, "named/smith/texture_knife");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/smith/model_knife");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(0));
|
||||
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
|
||||
ItemSlashBladeNamed.NamedBlades.add(name);
|
||||
ItemStack custombladeReqired = new ItemStack((Item)BladeLoader.blade);
|
||||
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[]{" DA", "DAD", "BDH", 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_150364_r)}));
|
||||
AchievementListTLS.registerCraftingAchievement(name, 9, 5, customblade, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* net.minecraft.entity.monster.EntityMob
|
||||
* net.minecraft.util.DamageSource
|
||||
* net.minecraft.world.World
|
||||
*/
|
||||
package net.langball.last_smith.entityliving;
|
||||
|
||||
import net.minecraft.entity.monster.EntityMob;
|
||||
import net.minecraft.util.DamageSource;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class EntityStraw
|
||||
extends EntityMob {
|
||||
private float customRotation;
|
||||
|
||||
public EntityStraw(World p_i1595_1_) {
|
||||
super(p_i1595_1_);
|
||||
}
|
||||
|
||||
public boolean func_70097_a(DamageSource source, float damage) {
|
||||
this.field_110153_bc = damage;
|
||||
if (damage >= 20.0f) {
|
||||
this.func_85030_a("mob.blaze.hit", 1.0f, 1.0f);
|
||||
this.func_70106_y();
|
||||
return true;
|
||||
}
|
||||
this.func_85030_a("step.grass", 1.0f, 1.0f);
|
||||
return false;
|
||||
}
|
||||
|
||||
public void func_70071_h_() {
|
||||
if (this.field_70737_aN > 0) {
|
||||
--this.field_70737_aN;
|
||||
}
|
||||
if (this.field_70172_ad > 0) {
|
||||
--this.field_70172_ad;
|
||||
}
|
||||
if (this.field_70170_p.field_72995_K) {
|
||||
this.func_70066_B();
|
||||
}
|
||||
}
|
||||
|
||||
public void func_70030_z() {
|
||||
}
|
||||
|
||||
protected boolean func_70610_aX() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public void func_70636_d() {
|
||||
}
|
||||
|
||||
protected void func_70619_bc() {
|
||||
}
|
||||
|
||||
protected boolean func_70692_ba() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean func_70089_S() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean func_70104_M() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean func_70067_L() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* net.minecraft.entity.Entity
|
||||
* net.minecraft.entity.player.EntityPlayer
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.util.Vec3
|
||||
* net.minecraft.world.World
|
||||
*/
|
||||
package net.langball.last_smith.entityliving;
|
||||
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
import net.langball.last_smith.entityliving.EntityStraw;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.Vec3;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class ItemStraw_Slash
|
||||
extends Item {
|
||||
public String name;
|
||||
|
||||
public ItemStraw_Slash() {
|
||||
this.func_77637_a(CommonProxy.tab);
|
||||
this.func_77655_b("slash_straw");
|
||||
this.func_111206_d("lastsmith:slash_straw");
|
||||
}
|
||||
|
||||
public boolean func_77648_a(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float fx, float fy, float fz) {
|
||||
if (!world.field_72995_K) {
|
||||
switch (side) {
|
||||
case 0: {
|
||||
--y;
|
||||
--y;
|
||||
break;
|
||||
}
|
||||
case 1: {
|
||||
++y;
|
||||
break;
|
||||
}
|
||||
case 2: {
|
||||
--z;
|
||||
break;
|
||||
}
|
||||
case 3: {
|
||||
++z;
|
||||
break;
|
||||
}
|
||||
case 4: {
|
||||
--x;
|
||||
break;
|
||||
}
|
||||
case 5: {
|
||||
++x;
|
||||
}
|
||||
}
|
||||
Vec3 foo = player.func_70040_Z();
|
||||
EntityStraw entity = new EntityStraw(world);
|
||||
entity.func_70107_b((double)x + 0.5, y, (double)z + 0.5);
|
||||
world.func_72838_d((Entity)entity);
|
||||
--stack.field_77994_a;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* net.minecraft.client.renderer.entity.Render
|
||||
* net.minecraft.entity.Entity
|
||||
* net.minecraft.util.ResourceLocation
|
||||
* org.lwjgl.opengl.GL11
|
||||
*/
|
||||
package net.langball.last_smith.entityliving;
|
||||
|
||||
import net.langball.last_smith.entityliving.StrawModel;
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
public class RenderStraw
|
||||
extends Render {
|
||||
private static final ResourceLocation texture = new ResourceLocation("lastsmith", "textures/mobs/slash_straw.png");
|
||||
public static final StrawModel model = new StrawModel();
|
||||
private static final ResourceLocation RES_ITEM_GLINT = new ResourceLocation("textures/misc/enchanted_item_glint.png");
|
||||
|
||||
public void func_76986_a(Entity p_76986_1_, double x, double y, double z, float f, float p_76986_9_) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef((float)((float)x), (float)((float)y + 1.5f), (float)((float)z));
|
||||
GL11.glRotatef((float)180.0f, (float)0.0f, (float)0.0f, (float)1.0f);
|
||||
this.func_110776_a(texture);
|
||||
GL11.glPushMatrix();
|
||||
model.renderModel(0.0625f);
|
||||
GL11.glPopMatrix();
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
protected ResourceLocation func_110775_a(Entity p_110775_1_) {
|
||||
return texture;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* net.minecraft.client.model.ModelBase
|
||||
* net.minecraft.client.model.ModelRenderer
|
||||
* net.minecraft.entity.Entity
|
||||
*/
|
||||
package net.langball.last_smith.entityliving;
|
||||
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
|
||||
public class StrawModel
|
||||
extends ModelBase {
|
||||
ModelRenderer Shape1;
|
||||
ModelRenderer Shape2;
|
||||
ModelRenderer Shape3;
|
||||
|
||||
public StrawModel() {
|
||||
this.field_78090_t = 64;
|
||||
this.field_78089_u = 32;
|
||||
this.Shape1 = new ModelRenderer((ModelBase)this, 0, 0);
|
||||
this.Shape1.func_78789_a(0.0f, 0.0f, 0.0f, 14, 8, 14);
|
||||
this.Shape1.func_78793_a(-7.0f, 16.0f, -7.0f);
|
||||
this.Shape1.func_78787_b(64, 32);
|
||||
this.Shape1.field_78809_i = true;
|
||||
this.setRotation(this.Shape1, 0.0f, 0.0f, 0.0f);
|
||||
this.Shape2 = new ModelRenderer((ModelBase)this, 0, 0);
|
||||
this.Shape2.func_78789_a(0.0f, 0.0f, 0.0f, 14, 8, 14);
|
||||
this.Shape2.func_78793_a(-7.0f, 8.0f, -7.0f);
|
||||
this.Shape2.func_78787_b(64, 32);
|
||||
this.Shape2.field_78809_i = true;
|
||||
this.setRotation(this.Shape2, 0.0f, 0.0f, 0.0f);
|
||||
this.Shape3 = new ModelRenderer((ModelBase)this, 0, 0);
|
||||
this.Shape3.func_78789_a(0.0f, 0.0f, 0.0f, 14, 8, 14);
|
||||
this.Shape3.func_78793_a(-7.0f, 0.0f, -7.0f);
|
||||
this.Shape3.func_78787_b(64, 32);
|
||||
this.Shape3.field_78809_i = true;
|
||||
this.setRotation(this.Shape3, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
public void func_78088_a(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
|
||||
super.func_78088_a(entity, f, f1, f2, f3, f4, f5);
|
||||
this.setRotationAngles(entity, f, f1, f2, f3, f4, f5);
|
||||
this.Shape1.func_78785_a(f5);
|
||||
this.Shape2.func_78785_a(f5);
|
||||
this.Shape3.func_78785_a(f5);
|
||||
}
|
||||
|
||||
public void renderModel(float f) {
|
||||
this.Shape1.func_78785_a(f);
|
||||
this.Shape2.func_78785_a(f);
|
||||
this.Shape3.func_78785_a(f);
|
||||
}
|
||||
|
||||
private void setRotation(ModelRenderer model, float x, float y, float z) {
|
||||
model.field_78795_f = x;
|
||||
model.field_78796_g = y;
|
||||
model.field_78808_h = z;
|
||||
}
|
||||
|
||||
public void setRotationAngles(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
|
||||
super.func_78087_a(f, f1, f2, f3, f4, f5, entity);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,97 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* ic2.api.item.ElectricItem
|
||||
* ic2.api.item.IElectricItem
|
||||
* ic2.api.item.IItemHudInfo
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* net.minecraft.entity.Entity
|
||||
* net.minecraft.entity.player.EntityPlayer
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.Item$ToolMaterial
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
* net.minecraft.util.StatCollector
|
||||
* net.minecraft.world.World
|
||||
*/
|
||||
package net.langball.last_smith.eusaber;
|
||||
|
||||
import ic2.api.item.ElectricItem;
|
||||
import ic2.api.item.IElectricItem;
|
||||
import ic2.api.item.IItemHudInfo;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class ItemSlashBladeEU
|
||||
extends ItemSlashBladeNamed
|
||||
implements IElectricItem,
|
||||
IItemHudInfo {
|
||||
public static int maxEnergy = 2000000;
|
||||
public static int maxTransfer = 2048;
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
|
||||
public ItemSlashBladeEU(Item.ToolMaterial par2EnumToolMaterial, float baseAttackModifiers) {
|
||||
super(par2EnumToolMaterial, baseAttackModifiers);
|
||||
}
|
||||
|
||||
public boolean canProvideEnergy(ItemStack itemStack) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public Item getChargedItem(ItemStack itemStack) {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Item getEmptyItem(ItemStack itemStack) {
|
||||
return this;
|
||||
}
|
||||
|
||||
public double getMaxCharge(ItemStack itemStack) {
|
||||
return maxEnergy;
|
||||
}
|
||||
|
||||
public int getTier(ItemStack itemStack) {
|
||||
return 3;
|
||||
}
|
||||
|
||||
public double getTransferLimit(ItemStack itemStack) {
|
||||
return maxTransfer;
|
||||
}
|
||||
|
||||
public void func_77624_a(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
|
||||
super.func_77624_a(par1ItemStack, par2EntityPlayer, par3List, par4);
|
||||
par3List.add(StatCollector.func_74838_a((String)"ic2.item.tooltip.PowerTier") + " " + 3);
|
||||
par3List.add("\u5f53\u524d\u7535\u91cf\uff1a" + (int)ElectricItem.manager.getCharge(par1ItemStack) + "/" + maxEnergy);
|
||||
}
|
||||
|
||||
public List getHudInfo(ItemStack itemStack) {
|
||||
LinkedList<String> info = new LinkedList<String>();
|
||||
info.add(ElectricItem.manager.getToolTip(itemStack));
|
||||
info.add(StatCollector.func_74838_a((String)"ic2.item.tooltip.PowerTier") + " " + 3);
|
||||
return info;
|
||||
}
|
||||
|
||||
public void func_77663_a(ItemStack sitem, World par2World, Entity par3Entity, int indexOfMainSlot, boolean isCurrent) {
|
||||
super.func_77663_a(sitem, par2World, par3Entity, indexOfMainSlot, isCurrent);
|
||||
if (!par2World.field_72995_K) {
|
||||
sitem.func_77978_p().func_74780_a("charge", this.getMaxCharge(sitem) * (double)(this.getMaxDamage(sitem) - this.getDamage(sitem)) / (double)this.getMaxDamage(sitem));
|
||||
}
|
||||
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)sitem);
|
||||
float get = BaseAttackModifier.get(reqTag).floatValue();
|
||||
if ((int)ElectricItem.manager.getCharge(sitem) >= 50000) {
|
||||
IsBroken.set(reqTag, Boolean.valueOf(false));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* ic2.core.Ic2Items
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.NamedBladeManager
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.eusaber;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import ic2.core.Ic2Items;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.NamedBladeManager;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.BladeLoader;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_1 {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
String name = "flammpfeil.slashblade.named.nanosaber";
|
||||
ItemStack customblade = new ItemStack(BladeLoader.euBlade, 1, 0);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(500));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)21.0f);
|
||||
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(false));
|
||||
ItemSlashBlade.TextureName.set(tag, "named/nanosaber/texture");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/nanosaber/model");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(1));
|
||||
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, 1);
|
||||
ItemStack custombladeReqired = new ItemStack((Item)BladeLoader.blade);
|
||||
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
|
||||
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(100));
|
||||
ItemSlashBlade.ProudSoul.set(reqTag, Integer.valueOf(500));
|
||||
ItemSlashBlade.RepairCount.set(reqTag, Integer.valueOf(5));
|
||||
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[]{"IAI", "CBC", "IAI", Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('I'), Ic2Items.advancedAlloy}));
|
||||
NamedBladeManager.registerBladeSoul((NBTTagCompound)tag, (String)"EU slashblade");
|
||||
AchievementListTLS.registerCraftingAchievement(name, 18, -3, customblade, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* ic2.core.Ic2Items
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.NamedBladeManager
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.eusaber;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import ic2.core.Ic2Items;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.NamedBladeManager;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.BladeLoader;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_2 {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
String name = "flammpfeil.slashblade.named.quantumsaber";
|
||||
String name1 = "flammpfeil.slashblade.named.nanosaber";
|
||||
ItemStack customblade = new ItemStack(BladeLoader.euBlade, 1, 0);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(100));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)41.0f);
|
||||
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(false));
|
||||
ItemSlashBlade.TextureName.set(tag, "named/nanosaber/texture_1");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/nanosaber/model");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(1));
|
||||
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, 5);
|
||||
ItemStack custombladeReqired = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"flammpfeil.slashblade.named.nanosaber", (int)1);
|
||||
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
|
||||
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(1000));
|
||||
ItemSlashBlade.ProudSoul.set(reqTag, Integer.valueOf(2500));
|
||||
ItemSlashBlade.RepairCount.set(reqTag, Integer.valueOf(5));
|
||||
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[]{"IAI", "CBC", "IAI", Character.valueOf('A'), Ic2Items.advancedAlloy.func_77973_b(), Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('I'), Ic2Items.iridiumPlate.func_77973_b()}));
|
||||
NamedBladeManager.registerBladeSoul((NBTTagCompound)tag, (String)"quantum slashblade");
|
||||
AchievementListTLS.registerCraftingAchievement(name, 19, -3, customblade, AchievementListTLS.getAchievement(name1));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* net.minecraft.entity.player.EntityPlayer
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.util.StatCollector
|
||||
*/
|
||||
package net.langball.last_smith.items;
|
||||
|
||||
import java.util.List;
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.StatCollector;
|
||||
|
||||
public class BookBasic_Blade
|
||||
extends Item {
|
||||
public String name;
|
||||
|
||||
public BookBasic_Blade() {
|
||||
this.func_77637_a(CommonProxy.tab);
|
||||
this.func_77655_b("books");
|
||||
this.func_111206_d("lastsmith:books");
|
||||
}
|
||||
|
||||
public void func_77624_a(ItemStack stack, EntityPlayer player, List list, boolean p_77624_4_) {
|
||||
list.add(StatCollector.func_74838_a((String)"books.name"));
|
||||
list.add(StatCollector.func_74838_a((String)"books.name.ps"));
|
||||
super.func_77624_a(stack, player, list, p_77624_4_);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* net.minecraft.entity.player.EntityPlayer
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.util.StatCollector
|
||||
*/
|
||||
package net.langball.last_smith.items;
|
||||
|
||||
import java.util.List;
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.StatCollector;
|
||||
|
||||
public class BookLostArthurs
|
||||
extends Item {
|
||||
public String name;
|
||||
|
||||
public BookLostArthurs() {
|
||||
this.func_77637_a(CommonProxy.tab);
|
||||
this.func_77655_b("books_arthurs");
|
||||
this.func_111206_d("lastsmith:books");
|
||||
}
|
||||
|
||||
public void func_77624_a(ItemStack stack, EntityPlayer player, List list, boolean p_77624_4_) {
|
||||
list.add(StatCollector.func_74838_a((String)"books_arthurs.name"));
|
||||
list.add(StatCollector.func_74838_a((String)"books_arthurs.name.ps"));
|
||||
super.func_77624_a(stack, player, list, p_77624_4_);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* net.minecraft.entity.player.EntityPlayer
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.stats.StatBase
|
||||
* net.minecraft.util.StatCollector
|
||||
* net.minecraft.world.World
|
||||
*/
|
||||
package net.langball.last_smith.items;
|
||||
|
||||
import java.util.List;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.stats.StatBase;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class ItemHammer
|
||||
extends Item {
|
||||
public String name;
|
||||
|
||||
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_beginning"));
|
||||
}
|
||||
|
||||
public ItemHammer() {
|
||||
this.func_77637_a(CommonProxy.tab);
|
||||
this.func_77655_b("smith_hammer");
|
||||
this.func_111206_d("lastsmith:item.hammer");
|
||||
this.func_77642_a(this);
|
||||
}
|
||||
|
||||
public void func_77624_a(ItemStack stack, EntityPlayer player, List list, boolean p_77624_4_) {
|
||||
list.add(StatCollector.func_74838_a((String)"smith_hammer.name"));
|
||||
list.add(StatCollector.func_74838_a((String)"smith_hammer.name.ps"));
|
||||
super.func_77624_a(stack, player, list, p_77624_4_);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.NamedBladeManager
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.init.Items
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.Item$ToolMaterial
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.louguan.blade;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.NamedBladeManager;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.BladeLoader;
|
||||
import net.langball.last_smith.louguan.sa.SAbailou1;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_Bailou {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
String name = "flammpfeil.slashblade.named.bailou";
|
||||
ItemSlashBlade.specialAttacks.put(423, new SAbailou1());
|
||||
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(120));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)(3.0f + Item.ToolMaterial.WOOD.func_78000_c()));
|
||||
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
|
||||
ItemSlashBlade.TextureName.set(tag, "named/bailou/texture");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/bailou/model");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(423));
|
||||
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, 2);
|
||||
customblade.func_77966_a(Enchantment.field_77339_k, 12);
|
||||
ItemStack custombladeReqired = new ItemStack((Item)BladeLoader.blade);
|
||||
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
|
||||
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(250));
|
||||
ItemSlashBlade.ProudSoul.set(reqTag, Integer.valueOf(750));
|
||||
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", "CBC", "AEA", Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack(Items.field_151043_k), Character.valueOf('E'), new ItemStack(Blocks.field_150339_S)}));
|
||||
NamedBladeManager.registerBladeSoul((NBTTagCompound)tag, (String)"bailou");
|
||||
AchievementListTLS.registerCraftingAchievement(name, 9, -1, customblade, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.NamedBladeManager
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.Item$ToolMaterial
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.louguan.blade;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.NamedBladeManager;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.louguan.sa.SAbailou2;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_Bailou_tx {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
String name = "flammpfeil.slashblade.named.bailou";
|
||||
String nameTx1 = "flammpfeil.slashblade.named.bailou_tx";
|
||||
String nameTrue = "flammpfeil.slashblade.named.yamato";
|
||||
String nameTrue2 = "flammpfeil.slashblade.named.sange";
|
||||
ItemSlashBlade.specialAttacks.put(424, new SAbailou2());
|
||||
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, nameTx1);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(250));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)(5.0f + Item.ToolMaterial.IRON.func_78000_c()));
|
||||
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
|
||||
ItemSlashBlade.TextureName.set(tag, "named/bailou/texture_tx");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/bailou/model");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(424));
|
||||
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(2));
|
||||
GameRegistry.registerCustomItemStack((String)nameTx1, (ItemStack)customblade);
|
||||
ItemSlashBladeNamed.NamedBlades.add("flammpfeil.slashblade:" + nameTx1);
|
||||
customblade.func_77966_a(Enchantment.field_77345_t, 7);
|
||||
customblade.func_77966_a(Enchantment.field_77339_k, 18);
|
||||
customblade.func_77966_a(Enchantment.field_77334_n, 1);
|
||||
customblade.func_77966_a(Enchantment.field_92091_k, 1);
|
||||
ItemStack custombladeReqired = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
|
||||
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
|
||||
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(1000));
|
||||
ItemSlashBlade.ProudSoul.set(reqTag, Integer.valueOf(2000));
|
||||
ItemSlashBlade.RepairCount.set(reqTag, Integer.valueOf(10));
|
||||
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)nameTx1, (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)nameTx1, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"DED", "EBE", "DED", Character.valueOf('B'), custombladeReqired, Character.valueOf('D'), new ItemStack(Blocks.field_150484_ah), Character.valueOf('E'), new ItemStack(Blocks.field_150343_Z), Character.valueOf('G'), GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)nameTrue, (int)1), Character.valueOf('A'), GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)nameTrue2, (int)1)}));
|
||||
NamedBladeManager.registerBladeSoul((NBTTagCompound)tag, (String)"bailou");
|
||||
AchievementListTLS.registerCraftingAchievement(nameTx1, 11, -1, customblade, AchievementListTLS.getAchievement(name));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.Item$ToolMaterial
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.louguan.blade;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.BladeLoader;
|
||||
import net.langball.last_smith.louguan.sa.SAxianshizhan3;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_Bailou_xf {
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
String name = "flammpfeil.slashblade.named.bailou_xf";
|
||||
String name1 = "flammpfeil.slashblade.named.bailou";
|
||||
ItemSlashBlade.specialAttacks.put(765432233, new SAxianshizhan3());
|
||||
ItemStack customblade = new ItemStack(BladeLoader.xfblade, 1, 0);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(120));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)(3.0f + Item.ToolMaterial.WOOD.func_78000_c()));
|
||||
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
|
||||
ItemSlashBlade.TextureName.set(tag, "named/bailou/texture_xf");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/bailou/model");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(765432233));
|
||||
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_77339_k, 12);
|
||||
customblade.func_77966_a(Enchantment.field_77344_u, 5);
|
||||
ItemStack custombladeReqired = new ItemStack((Item)BladeLoader.blade);
|
||||
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
|
||||
AchievementListTLS.registerCraftingAchievement(name, 11, 0, customblade, AchievementListTLS.getAchievement(name1));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.NamedBladeManager
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.Item$ToolMaterial
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.louguan.blade;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.NamedBladeManager;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.louguan.sa.SAxianshizhan;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_Louguan {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
ItemSlashBlade.specialAttacks.put(159, new SAxianshizhan());
|
||||
String name = "flammpfeil.slashblade.named.roukan";
|
||||
String namefake = "flammpfeil.slashblade.named.louguan_fake";
|
||||
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(100));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)(5.0f + Item.ToolMaterial.IRON.func_78000_c() + 1.0f));
|
||||
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
|
||||
ItemSlashBlade.TextureName.set(tag, "named/louguan/texture");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/louguan/model");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(159));
|
||||
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, 4);
|
||||
customblade.func_77966_a(Enchantment.field_77338_j, 8);
|
||||
ItemStack custombladeReqired = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)namefake, (int)1);
|
||||
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
|
||||
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(600));
|
||||
ItemSlashBlade.ProudSoul.set(reqTag, Integer.valueOf(500));
|
||||
ItemSlashBlade.RepairCount.set(reqTag, Integer.valueOf(5));
|
||||
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", "DCD", Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack(Blocks.field_150484_ah)}));
|
||||
NamedBladeManager.registerBladeSoul((NBTTagCompound)tag, (String)"louguan");
|
||||
AchievementListTLS.registerCraftingAchievement(name, 9, -2, customblade, AchievementListTLS.getAchievement(namefake));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.NamedBladeManager
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.Item$ToolMaterial
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.louguan.blade;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.NamedBladeManager;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.louguan.sa.Spear2;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_Louguan_fake {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
ItemSlashBlade.specialAttacks.put(1587, new Spear2());
|
||||
String namefake = "flammpfeil.slashblade.named.louguan_fake";
|
||||
String name2 = "flammpfeil.slashblade.named.louguan_old2";
|
||||
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, namefake);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(75));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)(7.0f + Item.ToolMaterial.STONE.func_78000_c()));
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(1587));
|
||||
ItemSlashBlade.TextureName.set(tag, "named/louguan_fake/texture");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/louguan_fake/model");
|
||||
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
|
||||
GameRegistry.registerCustomItemStack((String)namefake, (ItemStack)customblade);
|
||||
ItemSlashBladeNamed.NamedBlades.add(namefake);
|
||||
ItemStack custombladeReqired = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"flammpfeil.slashblade.named.louguan_old2", (int)1);
|
||||
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
|
||||
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(400));
|
||||
ItemSlashBlade.ProudSoul.set(reqTag, Integer.valueOf(500));
|
||||
ItemSlashBlade.RepairCount.set(reqTag, Integer.valueOf(2));
|
||||
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)namefake, (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)namefake, (IRecipe)new RecipeAwakeBlade(louguan, custombladeReqired, new Object[]{"ACA", "CBC", "ACA", Character.valueOf('A'), ingot, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack(Blocks.field_150484_ah), Character.valueOf('E'), new ItemStack(Blocks.field_150343_Z)}));
|
||||
NamedBladeManager.registerBladeSoul((NBTTagCompound)tag, (String)"louguan");
|
||||
AchievementListTLS.registerCraftingAchievement(namefake, 7, -2, customblade, AchievementListTLS.getAchievement(name2));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.RecipeAwakeBlade
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* mods.flammpfeil.slashblade.named.NamedBladeManager
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.Item$ToolMaterial
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.louguan.blade;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import mods.flammpfeil.slashblade.named.NamedBladeManager;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.louguan.sa.SAxianshizhan2;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_Louguan_tx {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
ItemSlashBlade.specialAttacks.put(324, new SAxianshizhan2());
|
||||
String name = "flammpfeil.slashblade.named.roukan";
|
||||
String nametx = "flammpfeil.slashblade.named.louguan_tx";
|
||||
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, nametx);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(150));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)(11.0f + Item.ToolMaterial.EMERALD.func_78000_c() + 2.0f));
|
||||
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
|
||||
ItemSlashBlade.TextureName.set(tag, "named/louguan/texture_tx");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/louguan/model");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(324));
|
||||
GameRegistry.registerCustomItemStack((String)nametx, (ItemStack)customblade);
|
||||
ItemSlashBladeNamed.NamedBlades.add(nametx);
|
||||
customblade.func_77966_a(Enchantment.field_77345_t, 8);
|
||||
customblade.func_77966_a(Enchantment.field_77338_j, 10);
|
||||
customblade.func_77966_a(Enchantment.field_77334_n, 1);
|
||||
ItemStack custombladeReqired = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
|
||||
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired);
|
||||
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(1000));
|
||||
ItemSlashBlade.ProudSoul.set(reqTag, Integer.valueOf(2000));
|
||||
ItemSlashBlade.RepairCount.set(reqTag, Integer.valueOf(10));
|
||||
ItemStack louguan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)nametx, (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", "DCD", Character.valueOf('A'), Blocks.field_150380_bt, Character.valueOf('B'), custombladeReqired, Character.valueOf('C'), itemSphereBladeSoul, Character.valueOf('D'), new ItemStack(Blocks.field_150484_ah)}));
|
||||
NamedBladeManager.registerBladeSoul((NBTTagCompound)tag, (String)"louguan_tx");
|
||||
AchievementListTLS.registerCraftingAchievement(nametx, 11, -2, customblade, AchievementListTLS.getAchievement(name));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* net.minecraft.item.Item$ToolMaterial
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.louguan.blade;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.named.event.LoadEvent;
|
||||
import net.langball.last_smith.AchievementListTLS;
|
||||
import net.langball.last_smith.BladeLoader;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_Louguan_xf {
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
String name = "flammpfeil.slashblade.named.roukan_xf";
|
||||
String name2 = "flammpfeil.slashblade.named.roukan";
|
||||
ItemStack customblade = new ItemStack(BladeLoader.xfblade, 1, 0);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(100));
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)(5.0f + Item.ToolMaterial.IRON.func_78000_c() + 1.0f));
|
||||
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
|
||||
ItemSlashBlade.TextureName.set(tag, "named/louguan/texture_xf");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/louguan/model");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(765432233));
|
||||
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_77338_j, 7);
|
||||
customblade.func_77966_a(Enchantment.field_77344_u, 5);
|
||||
ItemStack custombladeReqired = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name2, (int)1);
|
||||
AchievementListTLS.registerCraftingAchievement(name, 11, -3, customblade, AchievementListTLS.getAchievement(name2));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade$SwordType
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* net.minecraft.creativetab.CreativeTabs
|
||||
* net.minecraft.entity.Entity
|
||||
* net.minecraft.entity.player.EntityPlayer
|
||||
* net.minecraft.item.EnumRarity
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.Item$ToolMaterial
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
*/
|
||||
package net.langball.last_smith.louguan.blade;
|
||||
|
||||
import java.util.EnumSet;
|
||||
import java.util.List;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import net.langball.last_smith.CommonProxy;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.EnumRarity;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public class ItemSlashblade_xf
|
||||
extends ItemSlashBladeNamed {
|
||||
Item.ToolMaterial material;
|
||||
|
||||
public ItemSlashblade_xf(Item.ToolMaterial par2EnumToolMaterial, float baseAttackModifiers) {
|
||||
super(par2EnumToolMaterial, baseAttackModifiers);
|
||||
this.material = par2EnumToolMaterial;
|
||||
}
|
||||
|
||||
public EnumRarity func_77613_e(ItemStack par1ItemStack) {
|
||||
if (this.getSwordType(par1ItemStack).contains(ItemSlashBlade.SwordType.Bewitched)) {
|
||||
return EnumRarity.epic;
|
||||
}
|
||||
return EnumRarity.rare;
|
||||
}
|
||||
|
||||
public boolean onLeftClickEntity(ItemStack stack, EntityPlayer player, Entity entity) {
|
||||
boolean result = super.onLeftClickEntity(stack, player, entity);
|
||||
NBTTagCompound tag = ItemSlashblade_xf.getItemTagCompound((ItemStack)stack);
|
||||
EnumSet types = this.getSwordType(stack);
|
||||
if (!OnClick.get(tag).booleanValue() && !types.contains(ItemSlashBlade.SwordType.Broken) && CommonProxy.swordOfZephyr != null) {
|
||||
CommonProxy.swordOfZephyr.onLeftClickEntity(stack, player, entity);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public void onUsingTick(ItemStack stack, EntityPlayer player, int count) {
|
||||
super.onUsingTick(stack, player, count);
|
||||
EnumSet types = this.getSwordType(stack);
|
||||
if (!types.contains(ItemSlashBlade.SwordType.Broken) && CommonProxy.swordOfZephyr != null) {
|
||||
CommonProxy.swordOfZephyr.onUsingTick(stack.func_77946_l(), player, count);
|
||||
}
|
||||
}
|
||||
|
||||
public void func_150895_a(Item par1, CreativeTabs par2CreativeTabs, List par3List) {
|
||||
}
|
||||
|
||||
public boolean func_82789_a(ItemStack par1ItemStack, ItemStack par2ItemStack) {
|
||||
return this.material.func_150995_f() == par2ItemStack.func_77973_b() ? true : super.func_82789_a(par1ItemStack, par2ItemStack);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,331 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.registry.IThrowableEntity
|
||||
* cpw.mods.fml.relauncher.Side
|
||||
* cpw.mods.fml.relauncher.SideOnly
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ability.StylishRankManager
|
||||
* mods.flammpfeil.slashblade.ability.StylishRankManager$AttackTypes
|
||||
* mods.flammpfeil.slashblade.ability.TeleportCanceller
|
||||
* net.minecraft.block.material.Material
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* net.minecraft.enchantment.EnchantmentHelper
|
||||
* net.minecraft.entity.Entity
|
||||
* net.minecraft.entity.EntityLivingBase
|
||||
* net.minecraft.entity.projectile.EntityArrow
|
||||
* net.minecraft.entity.projectile.EntityFireball
|
||||
* net.minecraft.entity.projectile.EntityThrowable
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
* net.minecraft.util.AxisAlignedBB
|
||||
* net.minecraft.util.DamageSource
|
||||
* net.minecraft.util.EntityDamageSource
|
||||
* net.minecraft.util.Vec3
|
||||
* net.minecraft.world.World
|
||||
*/
|
||||
package net.langball.last_smith.louguan.sa;
|
||||
|
||||
import cpw.mods.fml.common.registry.IThrowableEntity;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ability.StylishRankManager;
|
||||
import mods.flammpfeil.slashblade.ability.TeleportCanceller;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.enchantment.EnchantmentHelper;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.projectile.EntityArrow;
|
||||
import net.minecraft.entity.projectile.EntityFireball;
|
||||
import net.minecraft.entity.projectile.EntityThrowable;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.util.DamageSource;
|
||||
import net.minecraft.util.EntityDamageSource;
|
||||
import net.minecraft.util.Vec3;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class EntitySA
|
||||
extends Entity
|
||||
implements IThrowableEntity {
|
||||
protected Entity thrower;
|
||||
protected ItemStack blade = null;
|
||||
protected List<Entity> alreadyHitEntity = new ArrayList<Entity>();
|
||||
protected float AttackLevel = 0.0f;
|
||||
private static final int LIFETIME = 3;
|
||||
private static final int SINGLE_HIT = 4;
|
||||
private static final int IS_SLASH_DIMENSION = 5;
|
||||
private static final int THROWER_ENTITY_ID = 6;
|
||||
private static final int INTERVAL = 7;
|
||||
private static final int COLOR = 8;
|
||||
|
||||
public EntitySA(World par1World) {
|
||||
super(par1World);
|
||||
this.field_70173_aa = 0;
|
||||
this.getEntityData().func_74768_a("seed", this.field_70146_Z.nextInt(50));
|
||||
}
|
||||
|
||||
public EntitySA(World par1World, EntityLivingBase entityLiving, float AttackLevel, boolean multiHit) {
|
||||
this(par1World, entityLiving, AttackLevel);
|
||||
this.setIsSingleHit(multiHit);
|
||||
}
|
||||
|
||||
public EntitySA(World par1World, EntityLivingBase entityLiving, float AttackLevel) {
|
||||
this(par1World);
|
||||
this.AttackLevel = AttackLevel;
|
||||
this.thrower = entityLiving;
|
||||
this.blade = entityLiving.func_70694_bm();
|
||||
if (this.blade != null && !(this.blade.func_77973_b() instanceof ItemSlashBlade)) {
|
||||
this.blade = null;
|
||||
}
|
||||
this.alreadyHitEntity.clear();
|
||||
this.alreadyHitEntity.add(this.thrower);
|
||||
this.alreadyHitEntity.add(this.thrower.field_70154_o);
|
||||
this.alreadyHitEntity.add(this.thrower.field_70153_n);
|
||||
this.field_70173_aa = 0;
|
||||
this.func_70105_a(4.0f, 4.0f);
|
||||
}
|
||||
|
||||
protected void func_70088_a() {
|
||||
this.func_70096_w().func_75682_a(3, (Object)20);
|
||||
this.func_70096_w().func_75682_a(4, (Object)0);
|
||||
this.func_70096_w().func_75682_a(5, (Object)0);
|
||||
this.func_70096_w().func_75682_a(6, (Object)0);
|
||||
this.func_70096_w().func_75682_a(7, (Object)7);
|
||||
this.func_70096_w().func_75682_a(8, (Object)0x3333FF);
|
||||
}
|
||||
|
||||
public boolean getIsSingleHit() {
|
||||
return this.func_70096_w().func_75683_a(4) != 0;
|
||||
}
|
||||
|
||||
public void setIsSingleHit(boolean isSingleHit) {
|
||||
this.func_70096_w().func_75692_b(4, (Object)(isSingleHit ? (byte)1 : 0));
|
||||
}
|
||||
|
||||
public int getLifeTime() {
|
||||
return this.func_70096_w().func_75679_c(3);
|
||||
}
|
||||
|
||||
public void setLifeTime(int lifetime) {
|
||||
this.func_70096_w().func_75692_b(3, (Object)lifetime);
|
||||
}
|
||||
|
||||
public boolean getIsSlashDimension() {
|
||||
return this.func_70096_w().func_75683_a(5) != 0;
|
||||
}
|
||||
|
||||
public void setIsSlashDimension(boolean isSlashDimension) {
|
||||
this.func_70096_w().func_75692_b(5, (Object)(isSlashDimension ? (byte)1 : 0));
|
||||
}
|
||||
|
||||
public int getInterval() {
|
||||
return this.func_70096_w().func_75679_c(7);
|
||||
}
|
||||
|
||||
public void setInterval(int value) {
|
||||
this.func_70096_w().func_75692_b(7, (Object)value);
|
||||
}
|
||||
|
||||
public int getColor() {
|
||||
return this.func_70096_w().func_75679_c(8);
|
||||
}
|
||||
|
||||
public void setColor(int value) {
|
||||
this.func_70096_w().func_75692_b(8, (Object)value);
|
||||
}
|
||||
|
||||
public int getThrowerEntityId() {
|
||||
return this.func_70096_w().func_75679_c(6);
|
||||
}
|
||||
|
||||
public void setThrowerEntityId(int entityid) {
|
||||
this.func_70096_w().func_75692_b(6, (Object)entityid);
|
||||
}
|
||||
|
||||
public void func_70071_h_() {
|
||||
super.func_70071_h_();
|
||||
this.field_70142_S = this.field_70165_t;
|
||||
this.field_70137_T = this.field_70163_u;
|
||||
this.field_70136_U = this.field_70161_v;
|
||||
if (!this.field_70170_p.field_72995_K) {
|
||||
if (this.field_70173_aa < 8 && this.field_70173_aa % 2 == 0) {
|
||||
this.func_85030_a("mob.wither.hurt", 0.2f, 0.5f + 0.25f * this.field_70146_Z.nextFloat());
|
||||
}
|
||||
AxisAlignedBB bb = this.field_70121_D;
|
||||
if (this.getThrower() instanceof EntityLivingBase) {
|
||||
EntityLivingBase entityLiving = (EntityLivingBase)this.getThrower();
|
||||
List list = this.field_70170_p.func_94576_a(this.getThrower(), bb, ItemSlashBlade.DestructableSelector);
|
||||
StylishRankManager.setNextAttackType((Entity)this.thrower, (String)StylishRankManager.AttackTypes.DestructObject);
|
||||
list.removeAll(this.alreadyHitEntity);
|
||||
this.alreadyHitEntity.addAll(list);
|
||||
for (Entity curEntity : (java.util.List<Entity>)(java.util.List<?>)list) {
|
||||
boolean isDestruction = true;
|
||||
if (curEntity instanceof EntityFireball) {
|
||||
isDestruction = ((EntityFireball)curEntity).field_70235_a != null && ((EntityFireball)curEntity).field_70235_a.func_145782_y() == entityLiving.func_145782_y() ? false : !curEntity.func_70097_a(DamageSource.func_76358_a((EntityLivingBase)entityLiving), this.AttackLevel);
|
||||
} else if (curEntity instanceof EntityArrow) {
|
||||
if (((EntityArrow)curEntity).field_70250_c != null && ((EntityArrow)curEntity).field_70250_c.func_145782_y() == entityLiving.func_145782_y()) {
|
||||
isDestruction = false;
|
||||
}
|
||||
} else if (curEntity instanceof IThrowableEntity) {
|
||||
if (((IThrowableEntity)curEntity).getThrower() != null && ((IThrowableEntity)curEntity).getThrower().func_145782_y() == entityLiving.func_145782_y()) {
|
||||
isDestruction = false;
|
||||
}
|
||||
} else if (curEntity instanceof EntityThrowable && ((EntityThrowable)curEntity).func_85052_h() != null && ((EntityThrowable)curEntity).func_85052_h().func_145782_y() == entityLiving.func_145782_y()) {
|
||||
isDestruction = false;
|
||||
}
|
||||
if (!isDestruction) continue;
|
||||
curEntity.field_70159_w = 0.0;
|
||||
curEntity.field_70181_x = 0.0;
|
||||
curEntity.field_70179_y = 0.0;
|
||||
curEntity.func_70106_y();
|
||||
for (int var1 = 0; var1 < 10; ++var1) {
|
||||
Random rand = this.getRand();
|
||||
double var2 = rand.nextGaussian() * 0.02;
|
||||
double var4 = rand.nextGaussian() * 0.02;
|
||||
double var6 = rand.nextGaussian() * 0.02;
|
||||
double var8 = 10.0;
|
||||
this.field_70170_p.func_72869_a("explode", curEntity.field_70165_t + (double)(rand.nextFloat() * curEntity.field_70130_N * 2.0f) - (double)curEntity.field_70130_N - var2 * var8, curEntity.field_70163_u + (double)(rand.nextFloat() * curEntity.field_70131_O) - var4 * var8, curEntity.field_70161_v + (double)(rand.nextFloat() * curEntity.field_70130_N * 2.0f) - (double)curEntity.field_70130_N - var6 * var8, var2, var4, var6);
|
||||
}
|
||||
StylishRankManager.doAttack((Entity)this.thrower);
|
||||
}
|
||||
}
|
||||
if (this.getIsSingleHit() || this.field_70173_aa % 2 == 0) {
|
||||
List list = this.field_70170_p.func_94576_a(this.getThrower(), bb, ItemSlashBlade.AttackableSelector);
|
||||
list.removeAll(this.alreadyHitEntity);
|
||||
if (this.getIsSingleHit()) {
|
||||
this.alreadyHitEntity.addAll(list);
|
||||
}
|
||||
float magicDamage = Math.max(1.0f, this.AttackLevel);
|
||||
StylishRankManager.setNextAttackType((Entity)this.thrower, (String)StylishRankManager.AttackTypes.SlashDimMagic);
|
||||
for (Entity curEntity : (java.util.List<Entity>)(java.util.List<?>)list) {
|
||||
float health;
|
||||
if (this.getIsSlashDimension() && curEntity instanceof EntityLivingBase && 0.0f < (health = ((EntityLivingBase)curEntity).func_110143_aJ())) {
|
||||
health = Math.max(1.0f, health - magicDamage);
|
||||
((EntityLivingBase)curEntity).func_70606_j(health);
|
||||
}
|
||||
Vec3 pos = Vec3.func_72443_a((double)curEntity.field_70165_t, (double)curEntity.field_70163_u, (double)curEntity.field_70161_v);
|
||||
TeleportCanceller.setCancel((Entity)curEntity);
|
||||
curEntity.field_70172_ad = 0;
|
||||
DamageSource ds = new EntityDamageSource("directMagic", this.getThrower()).func_76348_h().func_82726_p().func_76349_b();
|
||||
if (this.blade != null && curEntity instanceof EntityLivingBase) {
|
||||
((ItemSlashBlade)this.blade.func_77973_b()).func_77644_a(this.blade, (EntityLivingBase)curEntity, (EntityLivingBase)this.thrower);
|
||||
}
|
||||
curEntity.field_70159_w = 0.0;
|
||||
curEntity.field_70181_x = 0.0;
|
||||
curEntity.field_70179_y = 0.0;
|
||||
if (3 >= this.field_70173_aa || this.blade == null || !(curEntity instanceof EntityLivingBase)) continue;
|
||||
if (this.getIsSlashDimension()) {
|
||||
curEntity.func_70024_g(0.0, 0.5, 0.0);
|
||||
continue;
|
||||
}
|
||||
int level = EnchantmentHelper.func_77506_a((int)Enchantment.field_77344_u.field_77352_x, (ItemStack)this.blade);
|
||||
if (0 < level) {
|
||||
curEntity.func_70024_g(Math.sin(this.getThrower().field_70177_z * (float)Math.PI / 180.0f) * (double)level * 0.5, 0.2, -Math.cos(this.getThrower().field_70177_z * (float)Math.PI / 180.0f) * (double)level * 0.5);
|
||||
continue;
|
||||
}
|
||||
curEntity.func_70024_g(-Math.sin(this.getThrower().field_70177_z * (float)Math.PI / 180.0f) * 0.5, 0.2, Math.cos(this.getThrower().field_70177_z * (float)Math.PI / 180.0f) * 0.5);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.field_70173_aa >= this.getLifeTime()) {
|
||||
this.alreadyHitEntity.clear();
|
||||
this.alreadyHitEntity = null;
|
||||
this.func_70106_y();
|
||||
}
|
||||
}
|
||||
|
||||
public Random getRand() {
|
||||
return this.field_70146_Z;
|
||||
}
|
||||
|
||||
public boolean func_70038_c(double par1, double par3, double par5) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public void func_70091_d(double par1, double par3, double par5) {
|
||||
}
|
||||
|
||||
protected void func_70081_e(int par1) {
|
||||
}
|
||||
|
||||
public boolean func_70072_I() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean func_70055_a(Material par1Material) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@SideOnly(value=Side.CLIENT)
|
||||
public int func_70070_b(float par1) {
|
||||
float f1 = 0.5f;
|
||||
if (f1 < 0.0f) {
|
||||
f1 = 0.0f;
|
||||
}
|
||||
if (f1 > 1.0f) {
|
||||
f1 = 1.0f;
|
||||
}
|
||||
int i = super.func_70070_b(par1);
|
||||
int j = i & 0xFF;
|
||||
int k = i >> 16 & 0xFF;
|
||||
if ((j += (int)(f1 * 15.0f * 16.0f)) > 240) {
|
||||
j = 240;
|
||||
}
|
||||
return j | k << 16;
|
||||
}
|
||||
|
||||
public float func_70013_c(float par1) {
|
||||
float f1 = super.func_70013_c(par1);
|
||||
float f2 = 0.9f;
|
||||
f2 = f2 * f2 * f2 * f2;
|
||||
return f1 * (1.0f - f2) + f2;
|
||||
}
|
||||
|
||||
protected void func_70037_a(NBTTagCompound nbttagcompound) {
|
||||
}
|
||||
|
||||
protected void func_70014_b(NBTTagCompound nbttagcompound) {
|
||||
}
|
||||
|
||||
@SideOnly(value=Side.CLIENT)
|
||||
public void func_70056_a(double par1, double par3, double par5, float par7, float par8, int par9) {
|
||||
}
|
||||
|
||||
public void func_70063_aa() {
|
||||
}
|
||||
|
||||
public boolean func_70027_ad() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean shouldRenderInPass(int pass) {
|
||||
return pass == 1;
|
||||
}
|
||||
|
||||
public void func_70110_aj() {
|
||||
}
|
||||
|
||||
public Entity getThrower() {
|
||||
int id;
|
||||
if (this.thrower == null && (id = this.getThrowerEntityId()) != 0) {
|
||||
this.thrower = this.field_70170_p.func_73045_a(id);
|
||||
}
|
||||
return this.thrower;
|
||||
}
|
||||
|
||||
public void setThrower(Entity entity) {
|
||||
if (entity != null) {
|
||||
this.setThrowerEntityId(entity.func_145782_y());
|
||||
}
|
||||
this.thrower = entity;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,137 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* mods.flammpfeil.slashblade.client.model.obj.Util
|
||||
* mods.flammpfeil.slashblade.client.renderer.GlStateManager
|
||||
* net.minecraft.client.renderer.OpenGlHelper
|
||||
* net.minecraft.client.renderer.entity.Render
|
||||
* net.minecraft.client.renderer.texture.TextureManager
|
||||
* net.minecraft.entity.Entity
|
||||
* net.minecraft.util.ResourceLocation
|
||||
* net.minecraftforge.client.model.AdvancedModelLoader
|
||||
* net.minecraftforge.client.model.IModelCustom
|
||||
* net.minecraftforge.client.model.obj.WavefrontObject
|
||||
* org.lwjgl.opengl.GL11
|
||||
*/
|
||||
package net.langball.last_smith.louguan.sa;
|
||||
|
||||
import java.awt.Color;
|
||||
import mods.flammpfeil.slashblade.client.model.obj.Util;
|
||||
import mods.flammpfeil.slashblade.client.renderer.GlStateManager;
|
||||
import net.langball.last_smith.louguan.sa.EntitySA;
|
||||
import net.minecraft.client.renderer.OpenGlHelper;
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.texture.TextureManager;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.client.model.AdvancedModelLoader;
|
||||
import net.minecraftforge.client.model.IModelCustom;
|
||||
import net.minecraftforge.client.model.obj.WavefrontObject;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
public class RenderSA
|
||||
extends Render {
|
||||
public static IModelCustom model = null;
|
||||
public static ResourceLocation modelLocation = new ResourceLocation("flammpfeil.slashblade", "model/util/san.obj");
|
||||
public static ResourceLocation textureLocation = new ResourceLocation("flammpfeil.slashblade", "model/util/slashdim.png");
|
||||
|
||||
private TextureManager engine() {
|
||||
return this.field_76990_c.field_78724_e;
|
||||
}
|
||||
|
||||
public void func_76986_a(Entity entity, double x, double y, double z, float yaw, float partialRenderTick) {
|
||||
this.renderModel(entity, x, y, z, yaw, partialRenderTick);
|
||||
}
|
||||
|
||||
public void renderModel(Entity entity, double x, double y, double z, float yaw, float partialRenderTick) {
|
||||
if (model == null && (model = AdvancedModelLoader.loadModel((ResourceLocation)modelLocation)) instanceof WavefrontObject) {
|
||||
Util.replaceFace((WavefrontObject)((WavefrontObject)model));
|
||||
}
|
||||
this.func_110777_b(entity);
|
||||
GL11.glPushMatrix();
|
||||
GL11.glPushAttrib((int)1048575);
|
||||
GL11.glShadeModel((int)7425);
|
||||
GL11.glDisable((int)2896);
|
||||
GL11.glEnable((int)3042);
|
||||
int color = 0x5555FF;
|
||||
int lifetime = 20;
|
||||
if (entity instanceof EntitySA) {
|
||||
color = ((EntitySA)entity).getColor();
|
||||
lifetime = ((EntitySA)entity).getLifeTime();
|
||||
}
|
||||
boolean inverse = color < 0;
|
||||
double deathTime = lifetime;
|
||||
double baseAlpha = Math.sin(1.5707963267948966 * (Math.min(deathTime, (double)((float)(lifetime - entity.field_70173_aa) - partialRenderTick)) / deathTime));
|
||||
int seed = entity.getEntityData().func_74762_e("seed");
|
||||
int baseColor = color;
|
||||
Color col = new Color(baseColor);
|
||||
float[] hsb = Color.RGBtoHSB(col.getRed(), col.getGreen(), col.getBlue(), null);
|
||||
baseColor = Color.getHSBColor(0.5f + hsb[0], hsb[1], 0.2f).getRGB() & 0xFFFFFF;
|
||||
baseColor |= (int)(102.0 * baseAlpha) << 24;
|
||||
GL11.glTranslatef((float)((float)x), (float)((float)y), (float)((float)z));
|
||||
float rotParTicks = 40.0f;
|
||||
float rot = (float)entity.field_70173_aa % rotParTicks / rotParTicks * 360.0f + partialRenderTick * (360.0f / rotParTicks);
|
||||
float scale = 0.01f;
|
||||
GL11.glScalef((float)scale, (float)scale, (float)scale);
|
||||
float lastx = OpenGlHelper.lastBrightnessX;
|
||||
float lasty = OpenGlHelper.lastBrightnessY;
|
||||
OpenGlHelper.func_77475_a((int)OpenGlHelper.field_77476_b, (float)240.0f, (float)240.0f);
|
||||
Color tmpColor = new Color(baseColor, true);
|
||||
GL11.glColor4f((float)((float)tmpColor.getRed() / 255.0f), (float)((float)tmpColor.getGreen() / 255.0f), (float)((float)tmpColor.getBlue() / 255.0f), (float)((float)tmpColor.getAlpha() / 255.0f));
|
||||
OpenGlHelper.func_148821_a((int)770, (int)1, (int)1, (int)0);
|
||||
GlStateManager.glBlendEquation((int)32779);
|
||||
GL11.glPushMatrix();
|
||||
for (int i = 0; i < 5; ++i) {
|
||||
GL11.glScaled((double)0.95, (double)0.95, (double)0.95);
|
||||
model.renderPart("base");
|
||||
}
|
||||
GL11.glPopMatrix();
|
||||
int loop = 3;
|
||||
for (int i = 0; i < loop; ++i) {
|
||||
GL11.glPushMatrix();
|
||||
float ticks = 15.0f;
|
||||
float wave = ((float)entity.field_70173_aa + ticks / (float)loop * (float)i + partialRenderTick) % ticks;
|
||||
double waveScale = 1.0 + 0.03 * (double)wave;
|
||||
GL11.glScaled((double)waveScale, (double)waveScale, (double)waveScale);
|
||||
Color tmpColor2 = new Color(baseColor & 0xFFFFFF | (int)(136.0f * ((ticks - wave) / ticks)) << 24, true);
|
||||
GL11.glColor4f((float)((float)tmpColor2.getRed() / 255.0f), (float)((float)tmpColor2.getGreen() / 255.0f), (float)((float)tmpColor2.getBlue() / 255.0f), (float)((float)tmpColor2.getAlpha() / 255.0f));
|
||||
model.renderPart("base");
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
GlStateManager.glBlendEquation((int)32774);
|
||||
int windCount = 5;
|
||||
for (int i = 0; i < windCount; ++i) {
|
||||
GL11.glPushMatrix();
|
||||
GL11.glRotated((double)(360.0 / (double)windCount * (double)i), (double)1.0, (double)0.0, (double)0.0);
|
||||
GL11.glRotated((double)30.0, (double)0.0, (double)1.0, (double)0.0);
|
||||
double rotWind = 18.0;
|
||||
double offsetBase = 7.0;
|
||||
double offset = (double)i * offsetBase;
|
||||
double motionLen = offsetBase * (double)(windCount - 1);
|
||||
double ticks = (float)entity.field_70173_aa + partialRenderTick + (float)seed;
|
||||
double offsetTicks = ticks + offset;
|
||||
double progress = offsetTicks % motionLen / motionLen;
|
||||
double rad = Math.PI * 2;
|
||||
Color tmpColor3 = new Color(color & 0xFFFFFF | (int)Math.min(0.0, 255.0 * Math.sin(rad *= progress)) << 24, true);
|
||||
GL11.glColor4f((float)((float)tmpColor3.getRed() / 255.0f), (float)((float)tmpColor3.getGreen() / 255.0f), (float)((float)tmpColor3.getBlue() / 255.0f), (float)((float)tmpColor3.getAlpha() / 255.0f));
|
||||
double windScale = 0.4 + progress;
|
||||
GL11.glScaled((double)windScale, (double)windScale, (double)windScale);
|
||||
GL11.glRotated((double)(rotWind * offsetTicks), (double)0.0, (double)0.0, (double)1.0);
|
||||
model.renderPart("wind");
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
GL11.glColor4f((float)1.0f, (float)1.0f, (float)1.0f, (float)1.0f);
|
||||
OpenGlHelper.func_77475_a((int)OpenGlHelper.field_77476_b, (float)lastx, (float)lasty);
|
||||
GL11.glDisable((int)3042);
|
||||
GL11.glEnable((int)2896);
|
||||
GL11.glShadeModel((int)7424);
|
||||
GL11.glPopAttrib();
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
protected ResourceLocation func_110775_a(Entity p_110775_1_) {
|
||||
return textureLocation;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade$ComboSequence
|
||||
* mods.flammpfeil.slashblade.specialattack.SpecialAttackBase
|
||||
* net.minecraft.entity.EntityLivingBase
|
||||
* net.minecraft.entity.player.EntityPlayer
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
* net.minecraft.potion.Potion
|
||||
* net.minecraft.potion.PotionEffect
|
||||
* net.minecraft.world.World
|
||||
*/
|
||||
package net.langball.last_smith.louguan.sa;
|
||||
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.specialattack.SpecialAttackBase;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.potion.Potion;
|
||||
import net.minecraft.potion.PotionEffect;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class SAbailou1
|
||||
extends SpecialAttackBase {
|
||||
public String toString() {
|
||||
return "miwang";
|
||||
}
|
||||
|
||||
public void doSpacialAttack(ItemStack stack, EntityPlayer player) {
|
||||
World world = player.field_70170_p;
|
||||
NBTTagCompound tag = ItemSlashBlade.getItemTagCompound((ItemStack)stack);
|
||||
if (!world.field_72995_K) {
|
||||
int cost = -30;
|
||||
if (!ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(-30), false)) {
|
||||
ItemSlashBlade.damageItem((ItemStack)stack, (int)10, (EntityLivingBase)player);
|
||||
}
|
||||
player.func_70690_d(new PotionEffect(Potion.field_76424_c.func_76396_c(), 1200, 1, true));
|
||||
}
|
||||
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.SlashEdge);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade$ComboSequence
|
||||
* mods.flammpfeil.slashblade.specialattack.SpecialAttackBase
|
||||
* net.minecraft.entity.EntityLivingBase
|
||||
* net.minecraft.entity.player.EntityPlayer
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
* net.minecraft.potion.Potion
|
||||
* net.minecraft.potion.PotionEffect
|
||||
* net.minecraft.world.World
|
||||
*/
|
||||
package net.langball.last_smith.louguan.sa;
|
||||
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.specialattack.SpecialAttackBase;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.potion.Potion;
|
||||
import net.minecraft.potion.PotionEffect;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class SAbailou2
|
||||
extends SpecialAttackBase {
|
||||
public String toString() {
|
||||
return "miwang2";
|
||||
}
|
||||
|
||||
public void doSpacialAttack(ItemStack stack, EntityPlayer player) {
|
||||
World world = player.field_70170_p;
|
||||
NBTTagCompound tag = ItemSlashBlade.getItemTagCompound((ItemStack)stack);
|
||||
if (!world.field_72995_K) {
|
||||
int cost = -60;
|
||||
if (!ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(-60), false)) {
|
||||
ItemSlashBlade.damageItem((ItemStack)stack, (int)20, (EntityLivingBase)player);
|
||||
}
|
||||
ItemSlashBlade blade = (ItemSlashBlade)stack.func_77973_b();
|
||||
player.func_70690_d(new PotionEffect(Potion.field_76424_c.func_76396_c(), 1200, 2, true));
|
||||
player.func_70690_d(new PotionEffect(Potion.field_76440_q.func_76396_c(), 100, 3, true));
|
||||
player.func_70690_d(new PotionEffect(Potion.field_76420_g.func_76396_c(), 1200, 1, true));
|
||||
}
|
||||
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.SlashEdge);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade$ComboSequence
|
||||
* mods.flammpfeil.slashblade.specialattack.SpecialAttackBase
|
||||
* net.minecraft.entity.EntityLivingBase
|
||||
* net.minecraft.entity.player.EntityPlayer
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
* net.minecraft.potion.Potion
|
||||
* net.minecraft.potion.PotionEffect
|
||||
* net.minecraft.world.World
|
||||
*/
|
||||
package net.langball.last_smith.louguan.sa;
|
||||
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.specialattack.SpecialAttackBase;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.potion.Potion;
|
||||
import net.minecraft.potion.PotionEffect;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class SAbailou3
|
||||
extends SpecialAttackBase {
|
||||
public String toString() {
|
||||
return "relife";
|
||||
}
|
||||
|
||||
public void doSpacialAttack(ItemStack stack, EntityPlayer player) {
|
||||
World world = player.field_70170_p;
|
||||
ItemSlashBlade blade = (ItemSlashBlade)stack.func_77973_b();
|
||||
NBTTagCompound tag = ItemSlashBlade.getItemTagCompound((ItemStack)stack);
|
||||
if (!world.field_72995_K) {
|
||||
int cost = -100;
|
||||
if (!ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(-100), false)) {
|
||||
ItemSlashBlade.damageItem((ItemStack)stack, (int)(blade.func_77612_l() + 1), (EntityLivingBase)player);
|
||||
}
|
||||
player.func_70690_d(new PotionEffect(Potion.field_76428_l.func_76396_c(), 80, 3, true));
|
||||
player.func_70690_d(new PotionEffect(Potion.field_76420_g.func_76396_c(), 80, 1, true));
|
||||
player.func_70690_d(new PotionEffect(Potion.field_76427_o.func_76396_c(), 80, 3, true));
|
||||
player.func_70690_d(new PotionEffect(Potion.field_76439_r.func_76396_c(), 80, 3, true));
|
||||
player.func_70690_d(new PotionEffect(Potion.field_76432_h.func_76396_c(), 10, 4, true));
|
||||
}
|
||||
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.SlashDim);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade$ComboSequence
|
||||
* mods.flammpfeil.slashblade.ability.StylishRankManager
|
||||
* mods.flammpfeil.slashblade.ability.StylishRankManager$AttackTypes
|
||||
* mods.flammpfeil.slashblade.specialattack.SpecialAttackBase
|
||||
* net.minecraft.entity.Entity
|
||||
* net.minecraft.entity.EntityLivingBase
|
||||
* net.minecraft.entity.player.EntityPlayer
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
* net.minecraft.util.AxisAlignedBB
|
||||
* net.minecraft.util.Vec3
|
||||
* net.minecraft.world.World
|
||||
*/
|
||||
package net.langball.last_smith.louguan.sa;
|
||||
|
||||
import java.util.List;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ability.StylishRankManager;
|
||||
import mods.flammpfeil.slashblade.specialattack.SpecialAttackBase;
|
||||
import net.langball.last_smith.louguan.sa.EntitySA;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.util.Vec3;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class SAxianshizhan
|
||||
extends SpecialAttackBase {
|
||||
public String toString() {
|
||||
return "xianshizhan";
|
||||
}
|
||||
|
||||
private Entity getEntityToWatch(EntityPlayer player) {
|
||||
World world = player.field_70170_p;
|
||||
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);
|
||||
float distance = 30.0f;
|
||||
for (Entity curEntity : (java.util.List<Entity>)(java.util.List<?>)list) {
|
||||
float curDist = curEntity.func_70032_d((Entity)player);
|
||||
if (!(curDist < distance)) continue;
|
||||
target = curEntity;
|
||||
distance = curDist;
|
||||
}
|
||||
if (target != null) break;
|
||||
}
|
||||
return target;
|
||||
}
|
||||
|
||||
public void doSpacialAttack(ItemStack stack, EntityPlayer player) {
|
||||
Entity tmp;
|
||||
World world = player.field_70170_p;
|
||||
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) {
|
||||
target = tmp;
|
||||
}
|
||||
if (target == null) {
|
||||
target = this.getEntityToWatch(player);
|
||||
}
|
||||
if (target == null) {
|
||||
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.SlashDim);
|
||||
} else {
|
||||
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.SlashEdge);
|
||||
ItemSlashBlade blade = (ItemSlashBlade)stack.func_77973_b();
|
||||
int cost = -20;
|
||||
if (!ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(-20), false)) {
|
||||
ItemSlashBlade.damageItem((ItemStack)stack, (int)15, (EntityLivingBase)player);
|
||||
}
|
||||
double playerDist = 4.5;
|
||||
float attackDist = (float)(playerDist / 5.0);
|
||||
if (player.field_70122_E) {
|
||||
player.func_70107_b(target.field_70165_t, target.field_70163_u, target.field_70161_v);
|
||||
player.field_70159_w = -Math.sin(Math.toRadians(player.field_70177_z)) * playerDist;
|
||||
player.field_70179_y = Math.cos(Math.toRadians(player.field_70177_z)) * playerDist;
|
||||
StylishRankManager.setNextAttackType((Entity)player, (String)StylishRankManager.AttackTypes.JudgmentCut);
|
||||
EntitySA dim = new EntitySA(world, (EntityLivingBase)player, 6.0f);
|
||||
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.setLifeTime(2);
|
||||
dim.setColor(16770273);
|
||||
world.func_72838_d((Entity)dim);
|
||||
}
|
||||
blade.attackTargetEntity(stack, target, player, Boolean.valueOf(true));
|
||||
player.func_71009_b(target);
|
||||
target.field_70159_w = 0.0;
|
||||
target.field_70181_x = 0.5;
|
||||
target.field_70179_y = 0.0;
|
||||
}
|
||||
}
|
||||
player.func_85030_a("mob.blaze.hit", 1.0f, 1.0f);
|
||||
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.SlashEdge);
|
||||
}
|
||||
}
|
||||
|
||||
Loaded 100 of 259 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user