修复遗忘月祈失败雷电性能风险
No files matched your search
@@ -0,0 +1,4 @@
|
||||
build/
|
||||
*.class
|
||||
*.log
|
||||
.DS_Store
|
||||
@@ -0,0 +1 @@
|
||||
5fu/mods/[BD]遗忘Lostblade-1.0.0.jar
|
||||
@@ -0,0 +1,13 @@
|
||||
# Lostblade-1.0.0-decompiled
|
||||
|
||||
Fallback decompile of `5fu/mods/[BD]遗忘Lostblade-1.0.0.jar`.
|
||||
|
||||
- Detected modid(s): `unknown`
|
||||
- Original jar: `original/[BD]遗忘Lostblade-1.0.0.jar`
|
||||
- Decompiled Java: `src/main/java`
|
||||
- Extracted resources: `src/main/resources`
|
||||
|
||||
Build entries:
|
||||
|
||||
- `./build.sh` reliably recreates `build/libs/[BD]遗忘Lostblade-1.0.0.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 "$@"
|
||||
@@ -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]遗忘Lostblade-1.0.0.jar" -C build/classes .
|
||||
echo "compiled build/libs/[BD]遗忘Lostblade-1.0.0.jar"
|
||||
@@ -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 com.tanzanite;
|
||||
|
||||
import com.tanzanite.proxy.CommonProxy;
|
||||
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;
|
||||
|
||||
@Mod(modid="lostblade", name="Lostblade", version="1.0.0", acceptedMinecraftVersions="1.7.10", dependencies="required-after:flammpfeil.slashblade;after:flammpfeil.fluorescentbar;after:vampirism;after:flammpfeil.slashblade.kirisaya")
|
||||
public class Lostblade {
|
||||
public static final String MODID = "lostblade";
|
||||
public static final String NAME = "Lostblade";
|
||||
public static final String VERSION = "1.0.0";
|
||||
@Mod.Instance(value="lostblade")
|
||||
public static Lostblade instance;
|
||||
@SidedProxy(clientSide="com.tanzanite.proxy.ClientProxy", serverSide="com.tanzanite.proxy.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,70 @@
|
||||
/*
|
||||
* 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.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.world.World
|
||||
*/
|
||||
package com.tanzanite.SA;
|
||||
|
||||
import com.tanzanite.SA.entities.EntityDriveAlt;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ability.StylishRankManager;
|
||||
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.world.World;
|
||||
|
||||
public class SAcrescentMoon
|
||||
extends SpecialAttackBase {
|
||||
public String toString() {
|
||||
return "SAcrescentMoon";
|
||||
}
|
||||
|
||||
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(cost), false)) {
|
||||
ItemSlashBlade.damageItem((ItemStack)stack, (int)5, (EntityLivingBase)player);
|
||||
}
|
||||
ItemSlashBlade blade = (ItemSlashBlade)stack.func_77973_b();
|
||||
int rank = StylishRankManager.getStylishRank((Entity)player);
|
||||
float baseModif = blade.getBaseAttackModifiers(tag);
|
||||
int level = EnchantmentHelper.func_77506_a((int)Enchantment.field_77345_t.field_77352_x, (ItemStack)stack);
|
||||
float magicDamage = baseModif * (float)rank;
|
||||
for (int i = 0; i < 5; ++i) {
|
||||
if (4 <= rank) {
|
||||
magicDamage += ItemSlashBlade.AttackAmplifier.get(tag).floatValue() * (float)(rank + level) / 2.0f;
|
||||
}
|
||||
EntityDriveAlt entityDrive = new EntityDriveAlt(world, (EntityLivingBase)player, magicDamage, false, 0.0f - ItemSlashBlade.ComboSequence.Battou.swingDirection);
|
||||
entityDrive.setColor(Short.MAX_VALUE);
|
||||
entityDrive.setc(Float.valueOf(6.0f));
|
||||
entityDrive.setk(Float.valueOf(1.0f));
|
||||
entityDrive.setg(Float.valueOf(1.5f));
|
||||
entityDrive.setInitialSpeed(0.7f);
|
||||
entityDrive.setLifeTime(800);
|
||||
if (entityDrive == null) continue;
|
||||
world.func_72838_d((Entity)entityDrive);
|
||||
}
|
||||
}
|
||||
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.Kiriorosi);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* 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.potion.Potion
|
||||
* net.minecraft.potion.PotionEffect
|
||||
* net.minecraft.util.AxisAlignedBB
|
||||
* net.minecraft.world.World
|
||||
*/
|
||||
package com.tanzanite.SA;
|
||||
|
||||
import com.tanzanite.SA.entities.EntityDriveCure;
|
||||
import java.util.List;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ability.StylishRankManager;
|
||||
import mods.flammpfeil.slashblade.specialattack.SpecialAttackBase;
|
||||
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.potion.Potion;
|
||||
import net.minecraft.potion.PotionEffect;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class SAcureWave
|
||||
extends SpecialAttackBase {
|
||||
public static String AttackType = StylishRankManager.AttackTypes.registerAttackType((String)"SAcureWave", (float)0.5f);
|
||||
|
||||
public String toString() {
|
||||
return "SAcureWave";
|
||||
}
|
||||
|
||||
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(cost), false)) {
|
||||
stack.func_77972_a(10, (EntityLivingBase)player);
|
||||
}
|
||||
ItemSlashBlade blade = (ItemSlashBlade)stack.func_77973_b();
|
||||
AxisAlignedBB bb = player.field_70121_D.func_72329_c();
|
||||
bb = bb.func_72314_b(5.0, 0.25, 5.0);
|
||||
List list = world.func_94576_a((Entity)player, bb, ItemSlashBlade.AttackableSelector);
|
||||
int rank = StylishRankManager.getStylishRank((Entity)player);
|
||||
for (Entity curEntity : (java.util.List<Entity>)(java.util.List<?>)list) {
|
||||
((EntityLivingBase)curEntity).func_70690_d(new PotionEffect(Potion.field_76432_h.func_76396_c(), 1, rank));
|
||||
((EntityLivingBase)curEntity).func_70690_d(new PotionEffect(Potion.field_76428_l.func_76396_c(), 400, 2));
|
||||
((EntityLivingBase)curEntity).func_70690_d(new PotionEffect(Potion.field_76429_m.func_76396_c(), 400, 0));
|
||||
}
|
||||
float magicDamage = 0.0f;
|
||||
int maxCount = 6;
|
||||
maxCount += rank;
|
||||
for (int i = 0; i < maxCount; ++i) {
|
||||
EntityDriveCure entityDrive = new EntityDriveCure(world, (EntityLivingBase)player, magicDamage, false, 0.0f);
|
||||
entityDrive.func_70012_b(player.field_70165_t, player.field_70163_u, player.field_70161_v, player.field_70177_z + (float)(60 * i), 0.0f);
|
||||
entityDrive.setColor(7396315);
|
||||
entityDrive.setDriveVector(0.25f);
|
||||
entityDrive.setLifeTime(15);
|
||||
entityDrive.setIsMultiHit(false);
|
||||
entityDrive.setRoll(90.0f);
|
||||
EntityDriveCure entityDrive2 = new EntityDriveCure(world, (EntityLivingBase)player, magicDamage, false, 0.0f);
|
||||
entityDrive2.func_70012_b(player.field_70165_t, player.field_70163_u, player.field_70161_v, player.field_70177_z + (float)(60 * i), 0.0f);
|
||||
entityDrive2.setColor(7396315);
|
||||
entityDrive2.setDriveVector(0.2f);
|
||||
entityDrive2.setLifeTime(15);
|
||||
entityDrive2.setIsMultiHit(false);
|
||||
entityDrive2.setRoll(90.0f);
|
||||
EntityDriveCure entityDrive3 = new EntityDriveCure(world, (EntityLivingBase)player, magicDamage, false, 0.0f);
|
||||
entityDrive3.func_70012_b(player.field_70165_t, player.field_70163_u, player.field_70161_v, player.field_70177_z + (float)(60 * i), 0.0f);
|
||||
entityDrive3.setColor(7396315);
|
||||
entityDrive3.setDriveVector(0.15f);
|
||||
entityDrive3.setLifeTime(15);
|
||||
entityDrive3.setIsMultiHit(false);
|
||||
entityDrive3.setRoll(90.0f);
|
||||
if (entityDrive != null) {
|
||||
world.func_72838_d((Entity)entityDrive);
|
||||
}
|
||||
if (entityDrive2 != null) {
|
||||
world.func_72838_d((Entity)entityDrive2);
|
||||
}
|
||||
if (entityDrive3 == null) continue;
|
||||
world.func_72838_d((Entity)entityDrive3);
|
||||
}
|
||||
}
|
||||
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.Calibur);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
* 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.EntityWitherSword
|
||||
* 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 com.tanzanite.SA;
|
||||
|
||||
import java.util.List;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ability.StylishRankManager;
|
||||
import mods.flammpfeil.slashblade.entity.EntityWitherSword;
|
||||
import mods.flammpfeil.slashblade.specialattack.SpecialAttackBase;
|
||||
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 SAdelete
|
||||
extends SpecialAttackBase {
|
||||
public String toString() {
|
||||
return "SAdelete";
|
||||
}
|
||||
|
||||
public void doSpacialAttack(ItemStack stack, EntityPlayer player) {
|
||||
World world = player.field_70170_p;
|
||||
NBTTagCompound tag = ItemSlashBlade.getItemTagCompound((ItemStack)stack);
|
||||
if (!world.field_72995_K) {
|
||||
Entity tmp;
|
||||
ItemSlashBlade blade = (ItemSlashBlade)stack.func_77973_b();
|
||||
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);
|
||||
int cost = -50;
|
||||
if (!ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(cost), false)) {
|
||||
ItemSlashBlade.damageItem((ItemStack)stack, (int)30, (EntityLivingBase)player);
|
||||
}
|
||||
StylishRankManager.setNextAttackType((Entity)player, (String)StylishRankManager.AttackTypes.PhantomSword);
|
||||
blade.attackTargetEntity(stack, target, player, Boolean.valueOf(true));
|
||||
player.func_71009_b(target);
|
||||
target.field_70159_w = 0.0;
|
||||
target.field_70181_x = 0.0;
|
||||
target.field_70179_y = 0.0;
|
||||
if (target instanceof EntityLivingBase) {
|
||||
blade.setDaunting((EntityLivingBase)target);
|
||||
((EntityLivingBase)target).field_70737_aN = 0;
|
||||
((EntityLivingBase)target).field_70172_ad = 0;
|
||||
}
|
||||
float magicDamage = 2.0f + ItemSlashBlade.RepairCount.get(tag).floatValue() / 2.0f;
|
||||
int count = 3 + 3 * StylishRankManager.getStylishRank((Entity)player);
|
||||
for (int i = 0; i < count; ++i) {
|
||||
EntityWitherSword entityDrive;
|
||||
if (world.field_72995_K || (entityDrive = new EntityWitherSword(world, (EntityLivingBase)player, magicDamage, 90.0f)) == null) continue;
|
||||
entityDrive.setInterval(3 + i);
|
||||
entityDrive.setLifeTime(100);
|
||||
entityDrive.setRoll(20.0f);
|
||||
entityDrive.setColor(0xADEAEA);
|
||||
entityDrive.setTargetEntityId(target.func_145782_y());
|
||||
world.func_72838_d((Entity)entityDrive);
|
||||
}
|
||||
}
|
||||
}
|
||||
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.Battou);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,98 @@
|
||||
/*
|
||||
* 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.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.world.World
|
||||
*/
|
||||
package com.tanzanite.SA;
|
||||
|
||||
import com.tanzanite.SA.entities.EntityDriveBurst;
|
||||
import java.util.List;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ability.StylishRankManager;
|
||||
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.world.World;
|
||||
|
||||
public class SAdragonBurst
|
||||
extends SpecialAttackBase {
|
||||
public static String AttackType = StylishRankManager.AttackTypes.registerAttackType((String)"SAdragonBurst", (float)0.5f);
|
||||
|
||||
public String toString() {
|
||||
return "SAdragonBurst";
|
||||
}
|
||||
|
||||
public void doSpacialAttack(ItemStack stack, EntityPlayer player) {
|
||||
World world = player.field_70170_p;
|
||||
NBTTagCompound tag = ItemSlashBlade.getItemTagCompound((ItemStack)stack);
|
||||
player.field_70170_p.func_72956_a((Entity)player, "mob.enderdragon.growl", 1.0f, 1.0f);
|
||||
if (player.func_70027_ad()) {
|
||||
player.func_85030_a("random.fizz", 0.7f, 1.6f + (player.func_70681_au().nextFloat() - player.func_70681_au().nextFloat()) * 0.4f);
|
||||
player.func_70066_B();
|
||||
}
|
||||
if (!world.field_72995_K) {
|
||||
int cost = -200;
|
||||
if (!ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(cost), false)) {
|
||||
stack.func_77972_a(50, (EntityLivingBase)player);
|
||||
}
|
||||
ItemSlashBlade blade = (ItemSlashBlade)stack.func_77973_b();
|
||||
AxisAlignedBB bb = player.field_70121_D.func_72329_c();
|
||||
bb = bb.func_72314_b(5.0, 0.25, 5.0);
|
||||
List list = world.func_94576_a((Entity)player, bb, ItemSlashBlade.AttackableSelector);
|
||||
float baseModif = blade.getBaseAttackModifiers(tag);
|
||||
int level = Math.max(1, EnchantmentHelper.func_77506_a((int)Enchantment.field_77345_t.field_77352_x, (ItemStack)stack));
|
||||
int rank = StylishRankManager.getStylishRank((Entity)player);
|
||||
float magicDamage = baseModif * (float)level / 2.0f;
|
||||
if (2 <= rank) {
|
||||
magicDamage += ItemSlashBlade.AttackAmplifier.get(tag).floatValue() * (3.3f + (float)level) * (float)rank;
|
||||
}
|
||||
if (5 <= rank) {
|
||||
magicDamage += (float)(rank * 10);
|
||||
}
|
||||
if (6 <= rank) {
|
||||
magicDamage *= (float)(rank * 500);
|
||||
}
|
||||
int maxCol = 3;
|
||||
int maxCount = 3;
|
||||
maxCount += rank;
|
||||
for (int j = 0; j < maxCol; ++j) {
|
||||
for (int i = 0; i < maxCount; ++i) {
|
||||
if (world.field_72995_K) continue;
|
||||
boolean isBurst = i % 2 == 0;
|
||||
EntityDriveBurst entityDrive = new EntityDriveBurst(world, (EntityLivingBase)player, magicDamage, false, 0.0f);
|
||||
if (entityDrive == null) continue;
|
||||
entityDrive.func_70012_b(player.field_70165_t, player.field_70163_u + (double)player.func_70047_e() / 2.0, player.field_70161_v, player.field_70177_z + (float)(10 * ((int)Math.floor(maxCount / 2) - i)), player.field_70125_A);
|
||||
entityDrive.setColor(12326679);
|
||||
entityDrive.setDriveVector(0.2f + (float)(j * 2 / 4));
|
||||
entityDrive.setIsMultiHit(true);
|
||||
entityDrive.setLifeTime(50);
|
||||
entityDrive.setRoll(90.0f);
|
||||
entityDrive.setSpeedByTimeEvent(0.3f, 1.5f, 10 + j * 4 + i);
|
||||
world.func_72838_d((Entity)entityDrive);
|
||||
}
|
||||
}
|
||||
}
|
||||
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.Battou);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* 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.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 com.tanzanite.SA;
|
||||
|
||||
import java.util.List;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.specialattack.SpecialAttackBase;
|
||||
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 SAhomerun
|
||||
extends SpecialAttackBase {
|
||||
public String toString() {
|
||||
return "SAhomerun";
|
||||
}
|
||||
|
||||
public void doSpacialAttack(ItemStack stack, EntityPlayer player) {
|
||||
World world = player.field_70170_p;
|
||||
NBTTagCompound tag = ItemSlashBlade.getItemTagCompound((ItemStack)stack);
|
||||
if (!world.field_72995_K) {
|
||||
Entity tmp;
|
||||
int cost = -20;
|
||||
if (!ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(cost), false)) {
|
||||
ItemSlashBlade.damageItem((ItemStack)stack, (int)10, (EntityLivingBase)player);
|
||||
}
|
||||
ItemSlashBlade blade = (ItemSlashBlade)stack.func_77973_b();
|
||||
double targetDist = 10.0;
|
||||
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) {
|
||||
blade.attackTargetEntity(stack, target, player, Boolean.valueOf(true));
|
||||
player.func_71009_b(target);
|
||||
target.field_70159_w = -Math.sin(Math.toRadians(player.field_70177_z)) * (targetDist *= (double)0.35f);
|
||||
target.field_70181_x = 1.7;
|
||||
target.field_70179_y = Math.cos(Math.toRadians(player.field_70177_z)) * targetDist;
|
||||
if (target instanceof EntityLivingBase) {
|
||||
blade.setDaunting((EntityLivingBase)target);
|
||||
((EntityLivingBase)target).field_70737_aN = 0;
|
||||
((EntityLivingBase)target).field_70172_ad = 0;
|
||||
world.func_72956_a((Entity)player, "lostblade:homerun", 2.0f, 1.0f);
|
||||
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.Kiriage);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* mods.flammpfeil.slashblade.ItemSlashBlade
|
||||
* mods.flammpfeil.slashblade.ability.StylishRankManager
|
||||
* mods.flammpfeil.slashblade.ability.StylishRankManager$AttackTypes
|
||||
* mods.flammpfeil.slashblade.specialattack.SpecialAttackBase
|
||||
* net.minecraft.entity.Entity
|
||||
* net.minecraft.entity.effect.EntityLightningBolt
|
||||
* net.minecraft.entity.player.EntityPlayer
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
* net.minecraft.potion.Potion
|
||||
* net.minecraft.potion.PotionEffect
|
||||
*/
|
||||
package com.tanzanite.SA;
|
||||
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ability.StylishRankManager;
|
||||
import mods.flammpfeil.slashblade.specialattack.SpecialAttackBase;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.effect.EntityLightningBolt;
|
||||
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;
|
||||
|
||||
public class SAlunarPrayer
|
||||
extends SpecialAttackBase {
|
||||
public static String AttackType = StylishRankManager.AttackTypes.registerAttackType((String)"SAlunarPrayer", (float)-1.0f);
|
||||
|
||||
public String toString() {
|
||||
return "SAlunarPrayer";
|
||||
}
|
||||
|
||||
public void doSpacialAttack(ItemStack stack, EntityPlayer player) {
|
||||
int cost;
|
||||
NBTTagCompound tag = ItemSlashBlade.getItemTagCompound((ItemStack)stack);
|
||||
if (ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(cost = -30), false)) {
|
||||
for (int i = 0; i < 20; ++i) {
|
||||
double d0 = player.func_70681_au().nextGaussian() * 0.02;
|
||||
double d1 = player.func_70681_au().nextGaussian() * 0.02;
|
||||
double d2 = player.func_70681_au().nextGaussian() * 0.02;
|
||||
double d3 = 10.0;
|
||||
player.field_70170_p.func_72869_a("instantSpell", player.field_70165_t + (double)(player.func_70681_au().nextFloat() * player.field_70130_N * 2.0f) - (double)player.field_70130_N - d0 * d3, player.field_70163_u, player.field_70161_v + (double)(player.func_70681_au().nextFloat() * player.field_70130_N * 2.0f) - (double)player.field_70130_N - d2 * d3, d0, d1, d2);
|
||||
}
|
||||
StylishRankManager.setNextAttackType((Entity)player, (String)AttackType);
|
||||
player.func_70690_d(new PotionEffect(Potion.field_76420_g.func_76396_c(), 200, 1));
|
||||
player.func_70690_d(new PotionEffect(Potion.field_76424_c.func_76396_c(), 200, 2));
|
||||
player.func_70690_d(new PotionEffect(Potion.field_76429_m.func_76396_c(), 200, 1));
|
||||
player.func_70690_d(new PotionEffect(Potion.field_76426_n.func_76396_c(), 200, 1));
|
||||
StylishRankManager.doAttack((Entity)player);
|
||||
} else {
|
||||
double d0 = player.func_70681_au().nextGaussian() * 0.02;
|
||||
double d1 = player.func_70681_au().nextGaussian() * 0.02;
|
||||
double d2 = player.func_70681_au().nextGaussian() * 0.02;
|
||||
double d3 = 10.0;
|
||||
player.field_70170_p.func_72869_a("largeexplode", player.field_70165_t + (double)(player.func_70681_au().nextFloat() * player.field_70130_N * 2.0f) - (double)player.field_70130_N - d0 * d3, player.field_70163_u, player.field_70161_v + (double)(player.func_70681_au().nextFloat() * player.field_70130_N * 2.0f) - (double)player.field_70130_N - d2 * d3, d0, d1, d2);
|
||||
player.field_70170_p.func_72942_c((Entity)new EntityLightningBolt(player.field_70170_p, player.field_70165_t, player.field_70163_u, player.field_70161_v));
|
||||
player.func_70690_d(new PotionEffect(Potion.field_76421_d.func_76396_c(), 60, 99));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package com.tanzanite.SA;
|
||||
|
||||
public class SAsmoke {
|
||||
}
|
||||
|
||||
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* 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.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.potion.PotionEffect
|
||||
* net.minecraft.util.AxisAlignedBB
|
||||
* net.minecraft.world.World
|
||||
*/
|
||||
package com.tanzanite.SA;
|
||||
|
||||
import com.tanzanite.SA.entities.EntityDriveAlt;
|
||||
import com.tanzanite.potion.PotionDivine;
|
||||
import java.util.List;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ability.StylishRankManager;
|
||||
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.potion.PotionEffect;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class SAvampireSlayer
|
||||
extends SpecialAttackBase {
|
||||
public static String AttackType = StylishRankManager.AttackTypes.registerAttackType((String)"SAvampireSlayer", (float)0.5f);
|
||||
|
||||
public String toString() {
|
||||
return "SAvampireSlayer";
|
||||
}
|
||||
|
||||
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 = -20;
|
||||
if (!ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(-20), false)) {
|
||||
ItemSlashBlade.damageItem((ItemStack)stack, (int)10, (EntityLivingBase)player);
|
||||
}
|
||||
ItemSlashBlade blade = (ItemSlashBlade)stack.func_77973_b();
|
||||
AxisAlignedBB bb = player.field_70121_D.func_72329_c();
|
||||
bb = bb.func_72314_b(5.0, 0.25, 5.0);
|
||||
List list = world.func_94576_a((Entity)player, bb, ItemSlashBlade.AttackableSelector);
|
||||
for (Entity curEntity : (java.util.List<Entity>)(java.util.List<?>)list) {
|
||||
StylishRankManager.setNextAttackType((Entity)player, (String)StylishRankManager.AttackTypes.CircleSlash);
|
||||
blade.attackTargetEntity(stack, curEntity, player, Boolean.valueOf(true));
|
||||
player.func_71009_b(curEntity);
|
||||
((EntityLivingBase)curEntity).func_70690_d(new PotionEffect(PotionDivine.potion.func_76396_c(), 150, 1));
|
||||
}
|
||||
float baseModif = blade.getBaseAttackModifiers(tag);
|
||||
int level = Math.max(1, EnchantmentHelper.func_77506_a((int)Enchantment.field_77345_t.field_77352_x, (ItemStack)stack));
|
||||
float magicDamage = baseModif / 2.0f;
|
||||
int rank = StylishRankManager.getStylishRank((Entity)player);
|
||||
if (5 <= rank) {
|
||||
magicDamage += ItemSlashBlade.AttackAmplifier.get(tag).floatValue() * (0.25f + (float)level / 5.0f);
|
||||
}
|
||||
for (int i = 0; i < 6; ++i) {
|
||||
EntityDriveAlt entityDrive = new EntityDriveAlt(world, (EntityLivingBase)player, magicDamage, true, 0.0f);
|
||||
entityDrive.func_70012_b(player.field_70165_t, player.field_70163_u + (double)player.func_70047_e() / 2.0, player.field_70161_v, player.field_70177_z + (float)(60 * i), 0.0f);
|
||||
entityDrive.setColor(0xD9D919);
|
||||
entityDrive.setc(Float.valueOf((float)(0.15 * (double)i + 0.5)));
|
||||
entityDrive.setk(Float.valueOf(0.25f));
|
||||
entityDrive.setg(Float.valueOf((float)(0.15 * (double)i + 0.5)));
|
||||
entityDrive.setDriveVector(0.5f);
|
||||
entityDrive.setLifeTime(12);
|
||||
entityDrive.setIsMultiHit(true);
|
||||
entityDrive.setRoll(0.0f);
|
||||
if (entityDrive != null) {
|
||||
world.func_72838_d((Entity)entityDrive);
|
||||
}
|
||||
EntityDriveAlt entityDrive2 = new EntityDriveAlt(world, (EntityLivingBase)player, magicDamage, true, 0.0f);
|
||||
entityDrive2.func_70012_b(player.field_70165_t, player.field_70163_u + (double)player.func_70047_e() / 2.0, player.field_70161_v, player.field_70177_z + (float)(60 * i), 0.0f);
|
||||
entityDrive2.setColor(0xD9D919);
|
||||
entityDrive.setc(Float.valueOf((float)(0.15 * (double)i + 0.5)));
|
||||
entityDrive.setk(Float.valueOf(0.25f));
|
||||
entityDrive.setg(Float.valueOf((float)(0.15 * (double)i + 0.5)));
|
||||
entityDrive2.setDriveVector(0.5f);
|
||||
entityDrive2.setLifeTime(12);
|
||||
entityDrive2.setIsMultiHit(true);
|
||||
entityDrive2.setRoll(90.0f);
|
||||
if (entityDrive2 == null) continue;
|
||||
world.func_72838_d((Entity)entityDrive2);
|
||||
}
|
||||
}
|
||||
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.Battou);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,486 @@
|
||||
/*
|
||||
* 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
|
||||
* net.minecraft.block.Block
|
||||
* net.minecraft.block.material.Material
|
||||
* net.minecraft.entity.Entity
|
||||
* net.minecraft.entity.EntityLivingBase
|
||||
* net.minecraft.entity.player.EntityPlayer
|
||||
* 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.MathHelper
|
||||
* net.minecraft.world.IBlockAccess
|
||||
* net.minecraft.world.World
|
||||
*/
|
||||
package com.tanzanite.SA.entities;
|
||||
|
||||
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 net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
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.MathHelper;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class EntityDriveAlt
|
||||
extends Entity
|
||||
implements IThrowableEntity {
|
||||
protected Entity thrower;
|
||||
protected ItemStack blade = null;
|
||||
protected List<Entity> alreadyHitEntity = new ArrayList<Entity>();
|
||||
protected float AttackLevel = 0.0f;
|
||||
private int i;
|
||||
|
||||
public EntityDriveAlt(World par1World) {
|
||||
super(par1World);
|
||||
}
|
||||
|
||||
public EntityDriveAlt(World par1World, EntityLivingBase entityLiving, float AttackLevel, boolean multiHit, float roll) {
|
||||
this(par1World, entityLiving, AttackLevel, multiHit);
|
||||
this.setRoll(roll);
|
||||
}
|
||||
|
||||
public EntityDriveAlt(World par1World, EntityLivingBase entityLiving, float AttackLevel, boolean multiHit) {
|
||||
this(par1World, entityLiving, AttackLevel);
|
||||
this.setIsMultiHit(multiHit);
|
||||
}
|
||||
|
||||
public EntityDriveAlt(World par1World, EntityLivingBase entityLiving, float AttackLevel) {
|
||||
this(par1World);
|
||||
this.AttackLevel = AttackLevel;
|
||||
this.field_70129_M = entityLiving.func_70047_e() / 2.0f;
|
||||
this.thrower = entityLiving;
|
||||
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(2.0f, 4.0f);
|
||||
this.func_70012_b(this.thrower.field_70165_t, this.thrower.field_70163_u + (double)this.thrower.func_70047_e() / 2.0, this.thrower.field_70161_v, this.thrower.field_70177_z, this.thrower.field_70125_A);
|
||||
this.setDriveVector(0.75f);
|
||||
this.func_70107_b(this.field_70165_t + this.field_70159_w, this.field_70163_u + this.field_70181_x, this.field_70161_v + this.field_70179_y);
|
||||
}
|
||||
|
||||
protected void func_70088_a() {
|
||||
this.func_70096_w().func_75682_a(4, (Object)0);
|
||||
this.func_70096_w().func_75682_a(5, (Object)Float.valueOf(0.0f));
|
||||
this.func_70096_w().func_75682_a(10, (Object)25);
|
||||
this.func_70096_w().func_75682_a(11, (Object)Float.valueOf(1.0f));
|
||||
this.func_70096_w().func_75682_a(12, (Object)Float.valueOf(0.25f));
|
||||
this.func_70096_w().func_75682_a(13, (Object)Float.valueOf(1.0f));
|
||||
this.func_70096_w().func_75682_a(6, (Object)20);
|
||||
this.func_70096_w().func_75682_a(21, (Object)Float.valueOf(1.05f));
|
||||
this.func_70096_w().func_75682_a(22, (Object)Float.valueOf(0.0f));
|
||||
this.func_70096_w().func_75682_a(23, (Object)0);
|
||||
this.func_70096_w().func_75682_a(24, (Object)String.valueOf(""));
|
||||
this.func_70096_w().func_75682_a(25, (Object)String.valueOf(""));
|
||||
this.func_70096_w().func_75682_a(7, (Object)0);
|
||||
this.func_70096_w().func_75682_a(26, (Object)1);
|
||||
}
|
||||
|
||||
public boolean getIsPlayerSound() {
|
||||
return this.func_70096_w().func_75683_a(26) == 0;
|
||||
}
|
||||
|
||||
public void setIsPlayerSound(boolean isPlaySound) {
|
||||
this.func_70096_w().func_75692_b(26, (Object)((byte)(!isPlaySound ? 1 : 0)));
|
||||
}
|
||||
|
||||
public float getInitSpeed() {
|
||||
return this.func_70096_w().func_111145_d(21);
|
||||
}
|
||||
|
||||
public void setInitSpeed(float value) {
|
||||
this.func_70096_w().func_75692_b(21, (Object)Float.valueOf(value));
|
||||
}
|
||||
|
||||
public float getNextSpeed() {
|
||||
return this.func_70096_w().func_111145_d(22);
|
||||
}
|
||||
|
||||
public void setNextSpeed(float value) {
|
||||
this.func_70096_w().func_75692_b(22, (Object)Float.valueOf(value));
|
||||
}
|
||||
|
||||
public int getChangeTime() {
|
||||
return this.func_70096_w().func_75679_c(23);
|
||||
}
|
||||
|
||||
public void setChangeTime(int value) {
|
||||
this.func_70096_w().func_75692_b(23, (Object)value);
|
||||
}
|
||||
|
||||
public String getSound() {
|
||||
return this.func_70096_w().func_75681_e(24);
|
||||
}
|
||||
|
||||
public void setSound(String value) {
|
||||
this.func_70096_w().func_75692_b(24, (Object)String.valueOf(value));
|
||||
}
|
||||
|
||||
public String getParticle() {
|
||||
return this.func_70096_w().func_75681_e(25);
|
||||
}
|
||||
|
||||
public void setParticle(String value) {
|
||||
this.func_70096_w().func_75692_b(25, (Object)String.valueOf(value));
|
||||
}
|
||||
|
||||
public float getc() {
|
||||
return this.func_70096_w().func_111145_d(11);
|
||||
}
|
||||
|
||||
public void setc(Float value) {
|
||||
this.func_70096_w().func_75692_b(11, (Object)Float.valueOf(value.floatValue()));
|
||||
}
|
||||
|
||||
public float getk() {
|
||||
return this.func_70096_w().func_111145_d(12);
|
||||
}
|
||||
|
||||
public void setk(Float value) {
|
||||
this.func_70096_w().func_75692_b(12, (Object)Float.valueOf(value.floatValue()));
|
||||
}
|
||||
|
||||
public float getg() {
|
||||
return this.func_70096_w().func_111145_d(13);
|
||||
}
|
||||
|
||||
public void setg(Float value) {
|
||||
this.func_70096_w().func_75692_b(13, (Object)Float.valueOf(value.floatValue()));
|
||||
}
|
||||
|
||||
public int getColor() {
|
||||
return this.func_70096_w().func_75679_c(10);
|
||||
}
|
||||
|
||||
public void setColor(int value) {
|
||||
this.func_70096_w().func_75692_b(10, (Object)value);
|
||||
}
|
||||
|
||||
public boolean getIsMultiHit() {
|
||||
return this.func_70096_w().func_75683_a(4) == 0;
|
||||
}
|
||||
|
||||
public void setIsMultiHit(boolean isMultiHit) {
|
||||
this.func_70096_w().func_75692_b(4, (Object)((byte)(isMultiHit ? 1 : 0)));
|
||||
}
|
||||
|
||||
public float getRoll() {
|
||||
return this.func_70096_w().func_111145_d(5);
|
||||
}
|
||||
|
||||
public void setRoll(float roll) {
|
||||
this.func_70096_w().func_75692_b(5, (Object)Float.valueOf(roll));
|
||||
}
|
||||
|
||||
public int getLifeTime() {
|
||||
return this.func_70096_w().func_75679_c(6);
|
||||
}
|
||||
|
||||
public void setLifeTime(int lifetime) {
|
||||
this.func_70096_w().func_75692_b(6, (Object)lifetime);
|
||||
}
|
||||
|
||||
public boolean getIsSlashDimension() {
|
||||
return this.func_70096_w().func_75683_a(7) == 1;
|
||||
}
|
||||
|
||||
public void setIsSlashDimension(boolean isSlashDimension) {
|
||||
this.func_70096_w().func_75692_b(7, (Object)((byte)(isSlashDimension ? 1 : 0)));
|
||||
}
|
||||
|
||||
public void setSpeedByTimeEvent(float initSpeed, float nextSpeed, int changeTime) {
|
||||
this.setInitSpeed(initSpeed);
|
||||
this.setNextSpeed(nextSpeed);
|
||||
this.setChangeTime(changeTime);
|
||||
}
|
||||
|
||||
public void setInitialSpeed(float f) {
|
||||
this.func_70012_b(this.thrower.field_70165_t, this.thrower.field_70163_u + (double)this.thrower.func_70047_e() / 2.0, this.thrower.field_70161_v, this.thrower.field_70177_z, this.thrower.field_70125_A);
|
||||
this.setDriveVector(f);
|
||||
}
|
||||
|
||||
public void setDriveVector(float fYVecOfst) {
|
||||
float fYawDtoR = this.field_70177_z / 180.0f * 3.141593f;
|
||||
float fPitDtoR = this.field_70125_A / 180.0f * 3.141593f;
|
||||
this.field_70159_w = -MathHelper.func_76126_a((float)fYawDtoR) * MathHelper.func_76134_b((float)fPitDtoR) * fYVecOfst;
|
||||
this.field_70181_x = -MathHelper.func_76126_a((float)fPitDtoR) * fYVecOfst;
|
||||
this.field_70179_y = MathHelper.func_76134_b((float)fYawDtoR) * MathHelper.func_76134_b((float)fPitDtoR) * fYVecOfst;
|
||||
float f3 = MathHelper.func_76133_a((double)(this.field_70159_w * this.field_70159_w + this.field_70179_y * this.field_70179_y));
|
||||
this.field_70126_B = this.field_70177_z = (float)(Math.atan2(this.field_70159_w, this.field_70179_y) * 180.0 / Math.PI);
|
||||
this.field_70127_C = this.field_70125_A = (float)(Math.atan2(this.field_70181_x, f3) * 180.0 / Math.PI);
|
||||
}
|
||||
|
||||
public void 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) {
|
||||
int nPosZ;
|
||||
int nPosY;
|
||||
int nPosX;
|
||||
Block nBlock;
|
||||
double dAmbit = 1.5;
|
||||
AxisAlignedBB bb = AxisAlignedBB.func_72330_a((double)(this.field_70165_t - dAmbit), (double)(this.field_70163_u - dAmbit), (double)(this.field_70161_v - dAmbit), (double)(this.field_70165_t + dAmbit), (double)(this.field_70163_u + dAmbit), (double)(this.field_70161_v + dAmbit));
|
||||
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 / 5.0f);
|
||||
} 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.getIsMultiHit() || 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.getIsMultiHit()) {
|
||||
this.alreadyHitEntity.addAll(list);
|
||||
}
|
||||
float magicDamage = Math.max(1.0f, this.AttackLevel);
|
||||
if (this.getIsMultiHit()) {
|
||||
StylishRankManager.setNextAttackType((Entity)this.thrower, (String)StylishRankManager.AttackTypes.QuickDrive);
|
||||
} else {
|
||||
StylishRankManager.setNextAttackType((Entity)this.thrower, (String)StylishRankManager.AttackTypes.Drive);
|
||||
}
|
||||
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);
|
||||
}
|
||||
curEntity.field_70172_ad = 0;
|
||||
DamageSource ds = new EntityDamageSource("directMagic", this.getThrower()).func_76348_h().func_82726_p();
|
||||
curEntity.func_70097_a(ds, magicDamage / 5.0f);
|
||||
if (this.blade == null || !(curEntity instanceof EntityLivingBase)) continue;
|
||||
((ItemSlashBlade)this.blade.func_77973_b()).func_77644_a(this.blade, (EntityLivingBase)curEntity, (EntityLivingBase)this.thrower);
|
||||
}
|
||||
}
|
||||
if (!(nBlock = this.field_70170_p.func_147439_a(nPosX = MathHelper.func_76128_c((double)this.field_70165_t), nPosY = MathHelper.func_76128_c((double)this.field_70163_u), nPosZ = MathHelper.func_76128_c((double)this.field_70161_v))).isAir((IBlockAccess)this.field_70170_p, nPosX, nPosY, nPosZ) && nBlock.func_149668_a(this.field_70170_p, nPosX, nPosY, nPosZ) != null) {
|
||||
this.func_70106_y();
|
||||
}
|
||||
}
|
||||
this.field_70159_w *= 1.049999952316284;
|
||||
this.field_70181_x *= 1.049999952316284;
|
||||
this.field_70179_y *= 1.049999952316284;
|
||||
double m_x = this.field_70159_w;
|
||||
double m_y = this.field_70181_x;
|
||||
double m_z = this.field_70179_y;
|
||||
this.field_70165_t += this.field_70159_w;
|
||||
this.field_70163_u += this.field_70181_x;
|
||||
this.field_70161_v += this.field_70179_y;
|
||||
this.func_70107_b(this.field_70165_t, this.field_70163_u, this.field_70161_v);
|
||||
int changeTime = this.getChangeTime();
|
||||
if (changeTime != 0 && this.field_70173_aa >= changeTime) {
|
||||
float nextSpeed = this.getNextSpeed();
|
||||
this.playSound();
|
||||
this.field_70159_w = m_x *= (double)nextSpeed;
|
||||
this.field_70181_x = m_y *= (double)nextSpeed;
|
||||
this.field_70179_y = m_z *= (double)nextSpeed;
|
||||
this.field_70165_t += m_x;
|
||||
this.field_70163_u += m_y;
|
||||
this.field_70161_v += m_z;
|
||||
} else {
|
||||
float initSpeed = this.getInitSpeed();
|
||||
if (initSpeed >= 1.05f) {
|
||||
this.field_70159_w = m_x *= (double)initSpeed;
|
||||
this.field_70181_x = m_y *= (double)initSpeed;
|
||||
this.field_70179_y = m_z *= (double)initSpeed;
|
||||
this.field_70165_t += m_x;
|
||||
this.field_70163_u += m_y;
|
||||
this.field_70161_v += m_z;
|
||||
} else {
|
||||
this.field_70165_t += this.field_70159_w * 0.1;
|
||||
this.field_70163_u += this.field_70181_x * 0.1;
|
||||
this.field_70161_v += this.field_70179_y * 0.1;
|
||||
}
|
||||
}
|
||||
this.playParticle();
|
||||
this.func_70107_b(this.field_70165_t, this.field_70163_u, this.field_70161_v);
|
||||
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;
|
||||
}
|
||||
|
||||
public boolean func_70058_J() {
|
||||
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 float func_70053_R() {
|
||||
return 0.0f;
|
||||
}
|
||||
|
||||
public void func_70078_a(Entity par1Entity) {
|
||||
}
|
||||
|
||||
@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() {
|
||||
return this.thrower;
|
||||
}
|
||||
|
||||
public void setThrower(Entity entity) {
|
||||
this.thrower = entity;
|
||||
}
|
||||
|
||||
public void playParticle() {
|
||||
this.i = 0;
|
||||
while (this.i < 20) {
|
||||
String particle = this.getParticle();
|
||||
if (particle != null && !particle.equals("")) {
|
||||
Random rand = new Random();
|
||||
double var2 = rand.nextGaussian() * 0.12;
|
||||
double var4 = rand.nextGaussian() * 0.12;
|
||||
double var6 = rand.nextGaussian() * 0.12;
|
||||
double var8 = 10.0;
|
||||
this.field_70170_p.func_72869_a(particle, this.field_70165_t + (double)(rand.nextFloat() * this.field_70130_N * 2.0f) - (double)this.field_70130_N - var2 * var8, this.field_70163_u + (double)(rand.nextFloat() * this.field_70131_O) - var4 * var8, this.field_70161_v + (double)(rand.nextFloat() * this.field_70130_N * 2.0f) - (double)this.field_70130_N - var6 * var8, var2, var4, var6);
|
||||
}
|
||||
++this.i;
|
||||
}
|
||||
}
|
||||
|
||||
public void playSound() {
|
||||
if (!this.getIsPlayerSound()) {
|
||||
String sound = this.getSound();
|
||||
if (sound != null && !sound.equals("") && this.thrower instanceof EntityPlayer) {
|
||||
this.thrower.func_85030_a(sound, 1.0f, 1.5f);
|
||||
}
|
||||
this.setIsPlayerSound(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,486 @@
|
||||
/*
|
||||
* 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
|
||||
* net.minecraft.block.Block
|
||||
* net.minecraft.block.material.Material
|
||||
* net.minecraft.entity.Entity
|
||||
* net.minecraft.entity.EntityLivingBase
|
||||
* net.minecraft.entity.player.EntityPlayer
|
||||
* 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.MathHelper
|
||||
* net.minecraft.world.IBlockAccess
|
||||
* net.minecraft.world.World
|
||||
*/
|
||||
package com.tanzanite.SA.entities;
|
||||
|
||||
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 net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
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.MathHelper;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class EntityDriveBurst
|
||||
extends Entity
|
||||
implements IThrowableEntity {
|
||||
protected Entity thrower;
|
||||
protected ItemStack blade = null;
|
||||
protected List<Entity> alreadyHitEntity = new ArrayList<Entity>();
|
||||
protected float AttackLevel = 0.0f;
|
||||
private int i;
|
||||
|
||||
public EntityDriveBurst(World par1World) {
|
||||
super(par1World);
|
||||
}
|
||||
|
||||
public EntityDriveBurst(World par1World, EntityLivingBase entityLiving, float AttackLevel, boolean multiHit, float roll) {
|
||||
this(par1World, entityLiving, AttackLevel, multiHit);
|
||||
this.setRoll(roll);
|
||||
}
|
||||
|
||||
public EntityDriveBurst(World par1World, EntityLivingBase entityLiving, float AttackLevel, boolean multiHit) {
|
||||
this(par1World, entityLiving, AttackLevel);
|
||||
this.setIsMultiHit(multiHit);
|
||||
}
|
||||
|
||||
public EntityDriveBurst(World par1World, EntityLivingBase entityLiving, float AttackLevel) {
|
||||
this(par1World);
|
||||
this.AttackLevel = AttackLevel;
|
||||
this.field_70129_M = entityLiving.func_70047_e() / 2.0f;
|
||||
this.thrower = entityLiving;
|
||||
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(2.0f, 4.0f);
|
||||
this.func_70012_b(this.thrower.field_70165_t, this.thrower.field_70163_u + (double)this.thrower.func_70047_e() / 2.0, this.thrower.field_70161_v, this.thrower.field_70177_z, this.thrower.field_70125_A);
|
||||
this.setDriveVector(0.75f);
|
||||
this.func_70107_b(this.field_70165_t + this.field_70159_w, this.field_70163_u + this.field_70181_x, this.field_70161_v + this.field_70179_y);
|
||||
}
|
||||
|
||||
protected void func_70088_a() {
|
||||
this.func_70096_w().func_75682_a(4, (Object)0);
|
||||
this.func_70096_w().func_75682_a(5, (Object)Float.valueOf(0.0f));
|
||||
this.func_70096_w().func_75682_a(10, (Object)25);
|
||||
this.func_70096_w().func_75682_a(11, (Object)Float.valueOf(1.0f));
|
||||
this.func_70096_w().func_75682_a(12, (Object)Float.valueOf(0.25f));
|
||||
this.func_70096_w().func_75682_a(13, (Object)Float.valueOf(1.0f));
|
||||
this.func_70096_w().func_75682_a(6, (Object)20);
|
||||
this.func_70096_w().func_75682_a(21, (Object)Float.valueOf(1.05f));
|
||||
this.func_70096_w().func_75682_a(22, (Object)Float.valueOf(0.0f));
|
||||
this.func_70096_w().func_75682_a(23, (Object)0);
|
||||
this.func_70096_w().func_75682_a(24, (Object)String.valueOf(""));
|
||||
this.func_70096_w().func_75682_a(25, (Object)String.valueOf(""));
|
||||
this.func_70096_w().func_75682_a(7, (Object)0);
|
||||
this.func_70096_w().func_75682_a(26, (Object)1);
|
||||
}
|
||||
|
||||
public boolean getIsPlayerSound() {
|
||||
return this.func_70096_w().func_75683_a(26) == 0;
|
||||
}
|
||||
|
||||
public void setIsPlayerSound(boolean isPlaySound) {
|
||||
this.func_70096_w().func_75692_b(26, (Object)((byte)(!isPlaySound ? 1 : 0)));
|
||||
}
|
||||
|
||||
public float getInitSpeed() {
|
||||
return this.func_70096_w().func_111145_d(21);
|
||||
}
|
||||
|
||||
public void setInitSpeed(float value) {
|
||||
this.func_70096_w().func_75692_b(21, (Object)Float.valueOf(value));
|
||||
}
|
||||
|
||||
public float getNextSpeed() {
|
||||
return this.func_70096_w().func_111145_d(22);
|
||||
}
|
||||
|
||||
public void setNextSpeed(float value) {
|
||||
this.func_70096_w().func_75692_b(22, (Object)Float.valueOf(value));
|
||||
}
|
||||
|
||||
public int getChangeTime() {
|
||||
return this.func_70096_w().func_75679_c(23);
|
||||
}
|
||||
|
||||
public void setChangeTime(int value) {
|
||||
this.func_70096_w().func_75692_b(23, (Object)value);
|
||||
}
|
||||
|
||||
public String getSound() {
|
||||
return this.func_70096_w().func_75681_e(24);
|
||||
}
|
||||
|
||||
public void setSound(String value) {
|
||||
this.func_70096_w().func_75692_b(24, (Object)String.valueOf(value));
|
||||
}
|
||||
|
||||
public String getParticle() {
|
||||
return this.func_70096_w().func_75681_e(25);
|
||||
}
|
||||
|
||||
public void setParticle(String value) {
|
||||
this.func_70096_w().func_75692_b(25, (Object)String.valueOf(value));
|
||||
}
|
||||
|
||||
public float getc() {
|
||||
return this.func_70096_w().func_111145_d(11);
|
||||
}
|
||||
|
||||
public void setc(Float value) {
|
||||
this.func_70096_w().func_75692_b(11, (Object)Float.valueOf(value.floatValue()));
|
||||
}
|
||||
|
||||
public float getk() {
|
||||
return this.func_70096_w().func_111145_d(12);
|
||||
}
|
||||
|
||||
public void setk(Float value) {
|
||||
this.func_70096_w().func_75692_b(12, (Object)Float.valueOf(value.floatValue()));
|
||||
}
|
||||
|
||||
public float getg() {
|
||||
return this.func_70096_w().func_111145_d(13);
|
||||
}
|
||||
|
||||
public void setg(Float value) {
|
||||
this.func_70096_w().func_75692_b(13, (Object)Float.valueOf(value.floatValue()));
|
||||
}
|
||||
|
||||
public int getColor() {
|
||||
return this.func_70096_w().func_75679_c(10);
|
||||
}
|
||||
|
||||
public void setColor(int value) {
|
||||
this.func_70096_w().func_75692_b(10, (Object)value);
|
||||
}
|
||||
|
||||
public boolean getIsMultiHit() {
|
||||
return this.func_70096_w().func_75683_a(4) == 0;
|
||||
}
|
||||
|
||||
public void setIsMultiHit(boolean isMultiHit) {
|
||||
this.func_70096_w().func_75692_b(4, (Object)((byte)(isMultiHit ? 1 : 0)));
|
||||
}
|
||||
|
||||
public float getRoll() {
|
||||
return this.func_70096_w().func_111145_d(5);
|
||||
}
|
||||
|
||||
public void setRoll(float roll) {
|
||||
this.func_70096_w().func_75692_b(5, (Object)Float.valueOf(roll));
|
||||
}
|
||||
|
||||
public int getLifeTime() {
|
||||
return this.func_70096_w().func_75679_c(6);
|
||||
}
|
||||
|
||||
public void setLifeTime(int lifetime) {
|
||||
this.func_70096_w().func_75692_b(6, (Object)lifetime);
|
||||
}
|
||||
|
||||
public boolean getIsSlashDimension() {
|
||||
return this.func_70096_w().func_75683_a(7) == 1;
|
||||
}
|
||||
|
||||
public void setIsSlashDimension(boolean isSlashDimension) {
|
||||
this.func_70096_w().func_75692_b(7, (Object)((byte)(isSlashDimension ? 1 : 0)));
|
||||
}
|
||||
|
||||
public void setSpeedByTimeEvent(float initSpeed, float nextSpeed, int changeTime) {
|
||||
this.setInitSpeed(initSpeed);
|
||||
this.setNextSpeed(nextSpeed);
|
||||
this.setChangeTime(changeTime);
|
||||
}
|
||||
|
||||
public void setInitialSpeed(float f) {
|
||||
this.func_70012_b(this.thrower.field_70165_t, this.thrower.field_70163_u + (double)this.thrower.func_70047_e() / 2.0, this.thrower.field_70161_v, this.thrower.field_70177_z, this.thrower.field_70125_A);
|
||||
this.setDriveVector(f);
|
||||
}
|
||||
|
||||
public void setDriveVector(float fYVecOfst) {
|
||||
float fYawDtoR = this.field_70177_z / 180.0f * 3.141593f;
|
||||
float fPitDtoR = this.field_70125_A / 180.0f * 3.141593f;
|
||||
this.field_70159_w = -MathHelper.func_76126_a((float)fYawDtoR) * MathHelper.func_76134_b((float)fPitDtoR) * fYVecOfst;
|
||||
this.field_70181_x = -MathHelper.func_76126_a((float)fPitDtoR) * fYVecOfst;
|
||||
this.field_70179_y = MathHelper.func_76134_b((float)fYawDtoR) * MathHelper.func_76134_b((float)fPitDtoR) * fYVecOfst;
|
||||
float f3 = MathHelper.func_76133_a((double)(this.field_70159_w * this.field_70159_w + this.field_70179_y * this.field_70179_y));
|
||||
this.field_70126_B = this.field_70177_z = (float)(Math.atan2(this.field_70159_w, this.field_70179_y) * 180.0 / Math.PI);
|
||||
this.field_70127_C = this.field_70125_A = (float)(Math.atan2(this.field_70181_x, f3) * 180.0 / Math.PI);
|
||||
}
|
||||
|
||||
public void 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) {
|
||||
int nPosZ;
|
||||
int nPosY;
|
||||
int nPosX;
|
||||
Block nBlock;
|
||||
double dAmbit = 1.5;
|
||||
AxisAlignedBB bb = AxisAlignedBB.func_72330_a((double)(this.field_70165_t - dAmbit), (double)(this.field_70163_u - dAmbit), (double)(this.field_70161_v - dAmbit), (double)(this.field_70165_t + dAmbit), (double)(this.field_70163_u + dAmbit), (double)(this.field_70161_v + dAmbit));
|
||||
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 / 5.0f);
|
||||
} 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.getIsMultiHit() || 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.getIsMultiHit()) {
|
||||
this.alreadyHitEntity.addAll(list);
|
||||
}
|
||||
float magicDamage = Math.max(1.0f, this.AttackLevel);
|
||||
if (this.getIsMultiHit()) {
|
||||
StylishRankManager.setNextAttackType((Entity)this.thrower, (String)StylishRankManager.AttackTypes.QuickDrive);
|
||||
} else {
|
||||
StylishRankManager.setNextAttackType((Entity)this.thrower, (String)StylishRankManager.AttackTypes.Drive);
|
||||
}
|
||||
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);
|
||||
}
|
||||
curEntity.field_70172_ad = 0;
|
||||
DamageSource ds = new EntityDamageSource("directMagic", this.getThrower()).func_76348_h().func_82726_p();
|
||||
curEntity.func_70097_a(ds, magicDamage / 5.0f);
|
||||
if (this.blade == null || !(curEntity instanceof EntityLivingBase)) continue;
|
||||
((ItemSlashBlade)this.blade.func_77973_b()).func_77644_a(this.blade, (EntityLivingBase)curEntity, (EntityLivingBase)this.thrower);
|
||||
}
|
||||
}
|
||||
if (!(nBlock = this.field_70170_p.func_147439_a(nPosX = MathHelper.func_76128_c((double)this.field_70165_t), nPosY = MathHelper.func_76128_c((double)this.field_70163_u), nPosZ = MathHelper.func_76128_c((double)this.field_70161_v))).isAir((IBlockAccess)this.field_70170_p, nPosX, nPosY, nPosZ) && nBlock.func_149668_a(this.field_70170_p, nPosX, nPosY, nPosZ) != null) {
|
||||
this.func_70106_y();
|
||||
}
|
||||
}
|
||||
this.field_70159_w *= 1.049999952316284;
|
||||
this.field_70181_x *= 1.049999952316284;
|
||||
this.field_70179_y *= 1.049999952316284;
|
||||
double m_x = this.field_70159_w;
|
||||
double m_y = this.field_70181_x;
|
||||
double m_z = this.field_70179_y;
|
||||
this.field_70165_t += this.field_70159_w;
|
||||
this.field_70163_u += this.field_70181_x;
|
||||
this.field_70161_v += this.field_70179_y;
|
||||
this.func_70107_b(this.field_70165_t, this.field_70163_u, this.field_70161_v);
|
||||
int changeTime = this.getChangeTime();
|
||||
if (changeTime != 0 && this.field_70173_aa >= changeTime) {
|
||||
float nextSpeed = this.getNextSpeed();
|
||||
this.playSound();
|
||||
this.field_70159_w = m_x *= (double)nextSpeed;
|
||||
this.field_70181_x = m_y *= (double)nextSpeed;
|
||||
this.field_70179_y = m_z *= (double)nextSpeed;
|
||||
this.field_70165_t += m_x;
|
||||
this.field_70163_u += m_y;
|
||||
this.field_70161_v += m_z;
|
||||
} else {
|
||||
float initSpeed = this.getInitSpeed();
|
||||
if (initSpeed >= 1.05f) {
|
||||
this.field_70159_w = m_x *= (double)initSpeed;
|
||||
this.field_70181_x = m_y *= (double)initSpeed;
|
||||
this.field_70179_y = m_z *= (double)initSpeed;
|
||||
this.field_70165_t += m_x;
|
||||
this.field_70163_u += m_y;
|
||||
this.field_70161_v += m_z;
|
||||
} else {
|
||||
this.field_70165_t += this.field_70159_w * 0.1;
|
||||
this.field_70163_u += this.field_70181_x * 0.1;
|
||||
this.field_70161_v += this.field_70179_y * 0.1;
|
||||
}
|
||||
}
|
||||
this.playParticle();
|
||||
this.func_70107_b(this.field_70165_t, this.field_70163_u, this.field_70161_v);
|
||||
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;
|
||||
}
|
||||
|
||||
public boolean func_70058_J() {
|
||||
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 float func_70053_R() {
|
||||
return 0.0f;
|
||||
}
|
||||
|
||||
public void func_70078_a(Entity par1Entity) {
|
||||
}
|
||||
|
||||
@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() {
|
||||
return this.thrower;
|
||||
}
|
||||
|
||||
public void setThrower(Entity entity) {
|
||||
this.thrower = entity;
|
||||
}
|
||||
|
||||
public void playParticle() {
|
||||
this.i = 0;
|
||||
while (this.i < 20) {
|
||||
String particle = this.getParticle();
|
||||
if (particle != null && !particle.equals("")) {
|
||||
Random rand = new Random();
|
||||
double var2 = rand.nextGaussian() * 0.12;
|
||||
double var4 = rand.nextGaussian() * 0.12;
|
||||
double var6 = rand.nextGaussian() * 0.12;
|
||||
double var8 = 10.0;
|
||||
this.field_70170_p.func_72869_a(particle, this.field_70165_t + (double)(rand.nextFloat() * this.field_70130_N * 2.0f) - (double)this.field_70130_N - var2 * var8, this.field_70163_u + (double)(rand.nextFloat() * this.field_70131_O) - var4 * var8, this.field_70161_v + (double)(rand.nextFloat() * this.field_70130_N * 2.0f) - (double)this.field_70130_N - var6 * var8, var2, var4, var6);
|
||||
}
|
||||
++this.i;
|
||||
}
|
||||
}
|
||||
|
||||
public void playSound() {
|
||||
if (!this.getIsPlayerSound()) {
|
||||
String sound = this.getSound();
|
||||
if (sound != null && !sound.equals("") && this.thrower instanceof EntityPlayer) {
|
||||
this.thrower.func_85030_a(sound, 1.0f, 1.5f);
|
||||
}
|
||||
this.setIsPlayerSound(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,470 @@
|
||||
/*
|
||||
* 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
|
||||
* net.minecraft.block.Block
|
||||
* net.minecraft.block.material.Material
|
||||
* net.minecraft.entity.Entity
|
||||
* net.minecraft.entity.EntityLivingBase
|
||||
* net.minecraft.entity.player.EntityPlayer
|
||||
* 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.MathHelper
|
||||
* net.minecraft.world.IBlockAccess
|
||||
* net.minecraft.world.World
|
||||
*/
|
||||
package com.tanzanite.SA.entities;
|
||||
|
||||
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 net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
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.MathHelper;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class EntityDriveCure
|
||||
extends Entity
|
||||
implements IThrowableEntity {
|
||||
protected Entity thrower;
|
||||
protected ItemStack blade = null;
|
||||
protected List<Entity> alreadyHitEntity = new ArrayList<Entity>();
|
||||
protected float AttackLevel = 0.0f;
|
||||
private int i;
|
||||
|
||||
public EntityDriveCure(World par1World) {
|
||||
super(par1World);
|
||||
}
|
||||
|
||||
public EntityDriveCure(World par1World, EntityLivingBase entityLiving, float AttackLevel, boolean multiHit, float roll) {
|
||||
this(par1World, entityLiving, AttackLevel, multiHit);
|
||||
this.setRoll(roll);
|
||||
}
|
||||
|
||||
public EntityDriveCure(World par1World, EntityLivingBase entityLiving, float AttackLevel, boolean multiHit) {
|
||||
this(par1World, entityLiving, AttackLevel);
|
||||
this.setIsMultiHit(multiHit);
|
||||
}
|
||||
|
||||
public EntityDriveCure(World par1World, EntityLivingBase entityLiving, float AttackLevel) {
|
||||
this(par1World);
|
||||
this.AttackLevel = AttackLevel;
|
||||
this.field_70129_M = entityLiving.func_70047_e() / 2.0f;
|
||||
this.thrower = entityLiving;
|
||||
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(3.0f, 6.0f);
|
||||
this.func_70012_b(this.thrower.field_70165_t, this.thrower.field_70163_u + (double)this.thrower.func_70047_e() / 2.0, this.thrower.field_70161_v, this.thrower.field_70177_z, this.thrower.field_70125_A);
|
||||
this.setDriveVector(0.75f);
|
||||
this.func_70107_b(this.field_70165_t + this.field_70159_w, this.field_70163_u + this.field_70181_x, this.field_70161_v + this.field_70179_y);
|
||||
}
|
||||
|
||||
protected void func_70088_a() {
|
||||
this.func_70096_w().func_75682_a(4, (Object)0);
|
||||
this.func_70096_w().func_75682_a(5, (Object)Float.valueOf(0.0f));
|
||||
this.func_70096_w().func_75682_a(10, (Object)25);
|
||||
this.func_70096_w().func_75682_a(11, (Object)Float.valueOf(1.0f));
|
||||
this.func_70096_w().func_75682_a(12, (Object)Float.valueOf(0.25f));
|
||||
this.func_70096_w().func_75682_a(13, (Object)Float.valueOf(1.0f));
|
||||
this.func_70096_w().func_75682_a(6, (Object)20);
|
||||
this.func_70096_w().func_75682_a(21, (Object)Float.valueOf(1.05f));
|
||||
this.func_70096_w().func_75682_a(22, (Object)Float.valueOf(0.0f));
|
||||
this.func_70096_w().func_75682_a(23, (Object)0);
|
||||
this.func_70096_w().func_75682_a(24, (Object)String.valueOf(""));
|
||||
this.func_70096_w().func_75682_a(25, (Object)String.valueOf(""));
|
||||
this.func_70096_w().func_75682_a(7, (Object)0);
|
||||
this.func_70096_w().func_75682_a(26, (Object)1);
|
||||
}
|
||||
|
||||
public boolean getIsPlayerSound() {
|
||||
return this.func_70096_w().func_75683_a(26) == 0;
|
||||
}
|
||||
|
||||
public void setIsPlayerSound(boolean isPlaySound) {
|
||||
this.func_70096_w().func_75692_b(26, (Object)((byte)(!isPlaySound ? 1 : 0)));
|
||||
}
|
||||
|
||||
public float getInitSpeed() {
|
||||
return this.func_70096_w().func_111145_d(21);
|
||||
}
|
||||
|
||||
public void setInitSpeed(float value) {
|
||||
this.func_70096_w().func_75692_b(21, (Object)Float.valueOf(value));
|
||||
}
|
||||
|
||||
public float getNextSpeed() {
|
||||
return this.func_70096_w().func_111145_d(22);
|
||||
}
|
||||
|
||||
public void setNextSpeed(float value) {
|
||||
this.func_70096_w().func_75692_b(22, (Object)Float.valueOf(value));
|
||||
}
|
||||
|
||||
public int getChangeTime() {
|
||||
return this.func_70096_w().func_75679_c(23);
|
||||
}
|
||||
|
||||
public void setChangeTime(int value) {
|
||||
this.func_70096_w().func_75692_b(23, (Object)value);
|
||||
}
|
||||
|
||||
public String getSound() {
|
||||
return this.func_70096_w().func_75681_e(24);
|
||||
}
|
||||
|
||||
public void setSound(String value) {
|
||||
this.func_70096_w().func_75692_b(24, (Object)String.valueOf(value));
|
||||
}
|
||||
|
||||
public String getParticle() {
|
||||
return this.func_70096_w().func_75681_e(25);
|
||||
}
|
||||
|
||||
public void setParticle(String value) {
|
||||
this.func_70096_w().func_75692_b(25, (Object)String.valueOf(value));
|
||||
}
|
||||
|
||||
public float getc() {
|
||||
return this.func_70096_w().func_111145_d(11);
|
||||
}
|
||||
|
||||
public void setc(Float value) {
|
||||
this.func_70096_w().func_75692_b(11, (Object)Float.valueOf(value.floatValue()));
|
||||
}
|
||||
|
||||
public float getk() {
|
||||
return this.func_70096_w().func_111145_d(12);
|
||||
}
|
||||
|
||||
public void setk(Float value) {
|
||||
this.func_70096_w().func_75692_b(12, (Object)Float.valueOf(value.floatValue()));
|
||||
}
|
||||
|
||||
public float getg() {
|
||||
return this.func_70096_w().func_111145_d(13);
|
||||
}
|
||||
|
||||
public void setg(Float value) {
|
||||
this.func_70096_w().func_75692_b(13, (Object)Float.valueOf(value.floatValue()));
|
||||
}
|
||||
|
||||
public int getColor() {
|
||||
return this.func_70096_w().func_75679_c(10);
|
||||
}
|
||||
|
||||
public void setColor(int value) {
|
||||
this.func_70096_w().func_75692_b(10, (Object)value);
|
||||
}
|
||||
|
||||
public boolean getIsMultiHit() {
|
||||
return this.func_70096_w().func_75683_a(4) == 0;
|
||||
}
|
||||
|
||||
public void setIsMultiHit(boolean isMultiHit) {
|
||||
this.func_70096_w().func_75692_b(4, (Object)((byte)(isMultiHit ? 1 : 0)));
|
||||
}
|
||||
|
||||
public float getRoll() {
|
||||
return this.func_70096_w().func_111145_d(5);
|
||||
}
|
||||
|
||||
public void setRoll(float roll) {
|
||||
this.func_70096_w().func_75692_b(5, (Object)Float.valueOf(roll));
|
||||
}
|
||||
|
||||
public int getLifeTime() {
|
||||
return this.func_70096_w().func_75679_c(6);
|
||||
}
|
||||
|
||||
public void setLifeTime(int lifetime) {
|
||||
this.func_70096_w().func_75692_b(6, (Object)lifetime);
|
||||
}
|
||||
|
||||
public boolean getIsSlashDimension() {
|
||||
return this.func_70096_w().func_75683_a(7) == 1;
|
||||
}
|
||||
|
||||
public void setIsSlashDimension(boolean isSlashDimension) {
|
||||
this.func_70096_w().func_75692_b(7, (Object)((byte)(isSlashDimension ? 1 : 0)));
|
||||
}
|
||||
|
||||
public void setInitialSpeed(float f) {
|
||||
this.func_70012_b(this.thrower.field_70165_t, this.thrower.field_70163_u + (double)this.thrower.func_70047_e() / 2.0, this.thrower.field_70161_v, this.thrower.field_70177_z, this.thrower.field_70125_A);
|
||||
this.setDriveVector(f);
|
||||
}
|
||||
|
||||
public void setDriveVector(float fYVecOfst) {
|
||||
float fYawDtoR = this.field_70177_z / 180.0f * 3.141593f;
|
||||
float fPitDtoR = this.field_70125_A / 180.0f * 3.141593f;
|
||||
this.field_70159_w = -MathHelper.func_76126_a((float)fYawDtoR) * MathHelper.func_76134_b((float)fPitDtoR) * fYVecOfst;
|
||||
this.field_70181_x = -MathHelper.func_76126_a((float)fPitDtoR) * fYVecOfst;
|
||||
this.field_70179_y = MathHelper.func_76134_b((float)fYawDtoR) * MathHelper.func_76134_b((float)fPitDtoR) * fYVecOfst;
|
||||
float f3 = MathHelper.func_76133_a((double)(this.field_70159_w * this.field_70159_w + this.field_70179_y * this.field_70179_y));
|
||||
this.field_70126_B = this.field_70177_z = (float)(Math.atan2(this.field_70159_w, this.field_70179_y) * 180.0 / Math.PI);
|
||||
this.field_70127_C = this.field_70125_A = (float)(Math.atan2(this.field_70181_x, f3) * 180.0 / Math.PI);
|
||||
}
|
||||
|
||||
public void 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) {
|
||||
int nPosZ;
|
||||
int nPosY;
|
||||
int nPosX;
|
||||
Block nBlock;
|
||||
double dAmbit = 1.5;
|
||||
AxisAlignedBB bb = AxisAlignedBB.func_72330_a((double)(this.field_70165_t - dAmbit), (double)(this.field_70163_u - dAmbit), (double)(this.field_70161_v - dAmbit), (double)(this.field_70165_t + dAmbit), (double)(this.field_70163_u + dAmbit), (double)(this.field_70161_v + dAmbit));
|
||||
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 / 5.0f);
|
||||
} 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.getIsMultiHit() || 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.getIsMultiHit()) {
|
||||
this.alreadyHitEntity.addAll(list);
|
||||
}
|
||||
if (this.getIsMultiHit()) {
|
||||
StylishRankManager.setNextAttackType((Entity)this.thrower, (String)StylishRankManager.AttackTypes.QuickDrive);
|
||||
} else {
|
||||
StylishRankManager.setNextAttackType((Entity)this.thrower, (String)StylishRankManager.AttackTypes.Drive);
|
||||
}
|
||||
for (Entity curEntity : (java.util.List<Entity>)(java.util.List<?>)list) {
|
||||
if (this.getIsSlashDimension() && curEntity instanceof EntityLivingBase) {
|
||||
float var1 = ((EntityLivingBase)curEntity).func_110143_aJ();
|
||||
}
|
||||
curEntity.field_70172_ad = 0;
|
||||
if (this.blade == null || !(curEntity instanceof EntityLivingBase)) continue;
|
||||
((ItemSlashBlade)this.blade.func_77973_b()).func_77644_a(this.blade, (EntityLivingBase)curEntity, (EntityLivingBase)this.thrower);
|
||||
}
|
||||
}
|
||||
if (!(nBlock = this.field_70170_p.func_147439_a(nPosX = MathHelper.func_76128_c((double)this.field_70165_t), nPosY = MathHelper.func_76128_c((double)this.field_70163_u), nPosZ = MathHelper.func_76128_c((double)this.field_70161_v))).isAir((IBlockAccess)this.field_70170_p, nPosX, nPosY, nPosZ) && nBlock.func_149668_a(this.field_70170_p, nPosX, nPosY, nPosZ) != null) {
|
||||
this.func_70106_y();
|
||||
}
|
||||
}
|
||||
this.field_70159_w *= 1.049999952316284;
|
||||
this.field_70181_x *= 1.049999952316284;
|
||||
this.field_70179_y *= 1.049999952316284;
|
||||
double m_x = this.field_70159_w;
|
||||
double m_y = this.field_70181_x;
|
||||
double m_z = this.field_70179_y;
|
||||
this.field_70165_t += this.field_70159_w;
|
||||
this.field_70163_u += this.field_70181_x;
|
||||
this.field_70161_v += this.field_70179_y;
|
||||
this.func_70107_b(this.field_70165_t, this.field_70163_u, this.field_70161_v);
|
||||
int changeTime = this.getChangeTime();
|
||||
if (changeTime != 0 && this.field_70173_aa >= changeTime) {
|
||||
float nextSpeed = this.getNextSpeed();
|
||||
this.playSound();
|
||||
this.field_70159_w = m_x *= (double)nextSpeed;
|
||||
this.field_70181_x = m_y *= (double)nextSpeed;
|
||||
this.field_70179_y = m_z *= (double)nextSpeed;
|
||||
this.field_70165_t += m_x;
|
||||
this.field_70163_u += m_y;
|
||||
this.field_70161_v += m_z;
|
||||
} else {
|
||||
float initSpeed = this.getInitSpeed();
|
||||
if (initSpeed >= 1.05f) {
|
||||
this.field_70159_w = m_x *= (double)initSpeed;
|
||||
this.field_70181_x = m_y *= (double)initSpeed;
|
||||
this.field_70179_y = m_z *= (double)initSpeed;
|
||||
this.field_70165_t += m_x;
|
||||
this.field_70163_u += m_y;
|
||||
this.field_70161_v += m_z;
|
||||
} else {
|
||||
this.field_70165_t += this.field_70159_w * 0.1;
|
||||
this.field_70163_u += this.field_70181_x * 0.1;
|
||||
this.field_70161_v += this.field_70179_y * 0.1;
|
||||
}
|
||||
}
|
||||
this.playParticle();
|
||||
this.func_70107_b(this.field_70165_t, this.field_70163_u, this.field_70161_v);
|
||||
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) {
|
||||
}
|
||||
|
||||
public boolean func_70072_I() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean func_70055_a(Material par1Material) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean func_70058_J() {
|
||||
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 float func_70053_R() {
|
||||
return 0.0f;
|
||||
}
|
||||
|
||||
public void func_70078_a(Entity par1Entity) {
|
||||
}
|
||||
|
||||
@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() {
|
||||
return this.thrower;
|
||||
}
|
||||
|
||||
public void setThrower(Entity entity) {
|
||||
this.thrower = entity;
|
||||
}
|
||||
|
||||
public void playParticle() {
|
||||
this.i = 0;
|
||||
while (this.i < 20) {
|
||||
String particle = this.getParticle();
|
||||
if (particle != null && !particle.equals("")) {
|
||||
Random rand = new Random();
|
||||
double var2 = rand.nextGaussian() * 0.12;
|
||||
double var4 = rand.nextGaussian() * 0.12;
|
||||
double var6 = rand.nextGaussian() * 0.12;
|
||||
double var8 = 10.0;
|
||||
this.field_70170_p.func_72869_a(particle, this.field_70165_t + (double)(rand.nextFloat() * this.field_70130_N * 2.0f) - (double)this.field_70130_N - var2 * var8, this.field_70163_u + (double)(rand.nextFloat() * this.field_70131_O) - var4 * var8, this.field_70161_v + (double)(rand.nextFloat() * this.field_70130_N * 2.0f) - (double)this.field_70130_N - var6 * var8, var2, var4, var6);
|
||||
}
|
||||
++this.i;
|
||||
}
|
||||
}
|
||||
|
||||
public void playSound() {
|
||||
if (!this.getIsPlayerSound()) {
|
||||
String sound = this.getSound();
|
||||
if (sound != null && !sound.equals("") && this.thrower instanceof EntityPlayer) {
|
||||
this.thrower.func_85030_a(sound, 1.0f, 1.5f);
|
||||
}
|
||||
this.setIsPlayerSound(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.relauncher.Side
|
||||
* cpw.mods.fml.relauncher.SideOnly
|
||||
* net.minecraft.client.renderer.Tessellator
|
||||
* net.minecraft.client.renderer.entity.Render
|
||||
* net.minecraft.entity.Entity
|
||||
* net.minecraft.util.ResourceLocation
|
||||
* org.lwjgl.opengl.GL11
|
||||
*/
|
||||
package com.tanzanite.SA.render;
|
||||
|
||||
import com.tanzanite.SA.entities.EntityDriveAlt;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
@SideOnly(value=Side.CLIENT)
|
||||
public class RenderDriveAlt
|
||||
extends Render {
|
||||
private static double[][] dVec = new double[][]{{0.0, 1.0, -0.5}, {0.0, 0.75, 0.0}, {0.1, 0.6, -0.15}, {0.0, 0.5, -0.25}, {-0.1, 0.6, -0.15}, {0.0, 0.0, 0.25}, {0.25, 0.0, 0.0}, {0.0, 0.0, -0.25}, {-0.25, 0.0, 0.0}, {0.0, -0.75, 0.0}, {0.1, -0.6, -0.15}, {0.0, -0.5, -0.25}, {-0.1, -0.6, -0.15}, {0.0, -1.0, -0.5}};
|
||||
private static int[][] nVecPos = new int[][]{{0, 1, 2, 3}, {0, 3, 4, 1}, {1, 5, 6, 2}, {3, 2, 6, 7}, {3, 7, 8, 4}, {1, 4, 8, 5}, {6, 5, 9, 10}, {6, 10, 11, 7}, {8, 7, 11, 12}, {8, 12, 9, 5}, {10, 9, 13, 11}, {12, 11, 13, 9}};
|
||||
|
||||
public void func_76986_a(Entity entity, double d0, double d1, double d2, float f, float f1) {
|
||||
if (entity instanceof EntityDriveAlt) {
|
||||
this.doDriveRender((EntityDriveAlt)entity, d0, d1, d2, f, f1);
|
||||
}
|
||||
}
|
||||
|
||||
protected ResourceLocation func_110775_a(Entity var1) {
|
||||
return null;
|
||||
}
|
||||
|
||||
private void doDriveRender(EntityDriveAlt entity, double dX, double dY, double dZ, float f, float f1) {
|
||||
Tessellator tessellator = Tessellator.field_78398_a;
|
||||
GL11.glDisable((int)3553);
|
||||
GL11.glDisable((int)2896);
|
||||
GL11.glEnable((int)3042);
|
||||
GL11.glBlendFunc((int)770, (int)1);
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef((float)((float)dX), (float)((float)dY), (float)((float)dZ));
|
||||
GL11.glRotatef((float)entity.field_70177_z, (float)0.0f, (float)1.0f, (float)0.0f);
|
||||
GL11.glRotatef((float)(-entity.field_70125_A), (float)1.0f, (float)0.0f, (float)0.0f);
|
||||
GL11.glRotatef((float)entity.getRoll(), (float)0.0f, (float)0.0f, (float)1.0f);
|
||||
float c = entity.getc();
|
||||
float k = entity.getk();
|
||||
float g = entity.getg();
|
||||
GL11.glScalef((float)k, (float)c, (float)g);
|
||||
float lifetime = entity.getLifeTime();
|
||||
float ticks = entity.field_70173_aa;
|
||||
tessellator.func_78382_b();
|
||||
tessellator.func_78384_a(entity.getColor(), (int)(255.0f * (float)Math.pow((lifetime - Math.min(lifetime, ticks)) / lifetime, 2.0)));
|
||||
double dScale = 1.0;
|
||||
for (int idx = 0; idx < nVecPos.length; ++idx) {
|
||||
tessellator.func_78377_a(dVec[nVecPos[idx][0]][0] * dScale, dVec[nVecPos[idx][0]][1] * dScale, dVec[nVecPos[idx][0]][2] * dScale);
|
||||
tessellator.func_78377_a(dVec[nVecPos[idx][1]][0] * dScale, dVec[nVecPos[idx][1]][1] * dScale, dVec[nVecPos[idx][1]][2] * dScale);
|
||||
tessellator.func_78377_a(dVec[nVecPos[idx][2]][0] * dScale, dVec[nVecPos[idx][2]][1] * dScale, dVec[nVecPos[idx][2]][2] * dScale);
|
||||
tessellator.func_78377_a(dVec[nVecPos[idx][3]][0] * dScale, dVec[nVecPos[idx][3]][1] * dScale, dVec[nVecPos[idx][3]][2] * dScale);
|
||||
}
|
||||
tessellator.func_78381_a();
|
||||
GL11.glPopMatrix();
|
||||
GL11.glDisable((int)3042);
|
||||
GL11.glEnable((int)2896);
|
||||
GL11.glEnable((int)3553);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* net.minecraft.client.renderer.Tessellator
|
||||
* net.minecraft.client.renderer.entity.Render
|
||||
* net.minecraft.entity.Entity
|
||||
* net.minecraft.util.ResourceLocation
|
||||
* org.lwjgl.opengl.GL11
|
||||
*/
|
||||
package com.tanzanite.SA.render;
|
||||
|
||||
import com.tanzanite.SA.entities.EntityDriveBurst;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
public class RenderDriveBurst
|
||||
extends Render {
|
||||
private static double[][] dVec = new double[][]{{0.0, 1.0, -0.5}, {0.0, 0.75, 0.0}, {0.1, 0.6, -0.15}, {0.0, 0.5, -0.25}, {-0.1, 0.6, -0.15}, {0.0, 0.0, 0.25}, {0.25, 0.0, 0.0}, {0.0, 0.0, -0.25}, {-0.25, 0.0, 0.0}, {0.0, -0.75, 0.0}, {0.1, -0.6, -0.15}, {0.0, -0.5, -0.25}, {-0.1, -0.6, -0.15}, {0.0, -1.0, -0.5}};
|
||||
private static int[][] nVecPos = new int[][]{{0, 1, 2, 3}, {0, 3, 4, 1}, {1, 5, 6, 2}, {3, 2, 6, 7}, {3, 7, 8, 4}, {1, 4, 8, 5}, {6, 5, 9, 10}, {6, 10, 11, 7}, {8, 7, 11, 12}, {8, 12, 9, 5}, {10, 9, 13, 11}, {12, 11, 13, 9}};
|
||||
|
||||
public void func_76986_a(Entity entity, double d0, double d1, double d2, float f, float f1) {
|
||||
if (entity instanceof EntityDriveBurst) {
|
||||
this.doDriveRender((EntityDriveBurst)entity, d0, d1, d2, f, f1);
|
||||
}
|
||||
}
|
||||
|
||||
protected ResourceLocation func_110775_a(Entity var1) {
|
||||
return null;
|
||||
}
|
||||
|
||||
private void doDriveRender(EntityDriveBurst entity, double dX, double dY, double dZ, float f, float f1) {
|
||||
Tessellator tessellator = Tessellator.field_78398_a;
|
||||
GL11.glDisable((int)3553);
|
||||
GL11.glDisable((int)2896);
|
||||
GL11.glEnable((int)3042);
|
||||
GL11.glBlendFunc((int)770, (int)1);
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef((float)((float)dX), (float)((float)dY), (float)((float)dZ));
|
||||
GL11.glRotatef((float)entity.field_70177_z, (float)0.0f, (float)1.0f, (float)0.0f);
|
||||
GL11.glRotatef((float)(-entity.field_70125_A), (float)1.0f, (float)0.0f, (float)0.0f);
|
||||
GL11.glRotatef((float)entity.getRoll(), (float)0.0f, (float)0.0f, (float)1.0f);
|
||||
float c = entity.getc();
|
||||
float k = entity.getk();
|
||||
float g = entity.getg();
|
||||
GL11.glScalef((float)k, (float)c, (float)g);
|
||||
float lifetime = entity.getLifeTime();
|
||||
float ticks = entity.field_70173_aa;
|
||||
tessellator.func_78382_b();
|
||||
tessellator.func_78384_a(entity.getColor(), (int)(255.0f * (float)Math.pow((lifetime - Math.min(lifetime, ticks)) / lifetime, 2.0)));
|
||||
double dScale = 1.0;
|
||||
for (int idx = 0; idx < nVecPos.length; ++idx) {
|
||||
tessellator.func_78377_a(dVec[nVecPos[idx][0]][0] * dScale, dVec[nVecPos[idx][0]][1] * dScale, dVec[nVecPos[idx][0]][2] * dScale);
|
||||
tessellator.func_78377_a(dVec[nVecPos[idx][1]][0] * dScale, dVec[nVecPos[idx][1]][1] * dScale, dVec[nVecPos[idx][1]][2] * dScale);
|
||||
tessellator.func_78377_a(dVec[nVecPos[idx][2]][0] * dScale, dVec[nVecPos[idx][2]][1] * dScale, dVec[nVecPos[idx][2]][2] * dScale);
|
||||
tessellator.func_78377_a(dVec[nVecPos[idx][3]][0] * dScale, dVec[nVecPos[idx][3]][1] * dScale, dVec[nVecPos[idx][3]][2] * dScale);
|
||||
}
|
||||
tessellator.func_78381_a();
|
||||
GL11.glPopMatrix();
|
||||
GL11.glDisable((int)3042);
|
||||
GL11.glEnable((int)2896);
|
||||
GL11.glEnable((int)3553);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.relauncher.Side
|
||||
* cpw.mods.fml.relauncher.SideOnly
|
||||
* net.minecraft.client.renderer.Tessellator
|
||||
* net.minecraft.client.renderer.entity.Render
|
||||
* net.minecraft.entity.Entity
|
||||
* net.minecraft.util.ResourceLocation
|
||||
* org.lwjgl.opengl.GL11
|
||||
*/
|
||||
package com.tanzanite.SA.render;
|
||||
|
||||
import com.tanzanite.SA.entities.EntityDriveCure;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
@SideOnly(value=Side.CLIENT)
|
||||
public class RenderDriveCure
|
||||
extends Render {
|
||||
private static double[][] dVec = new double[][]{{0.0, 1.0, -0.5}, {0.0, 0.75, 0.0}, {0.1, 0.6, -0.15}, {0.0, 0.5, -0.25}, {-0.1, 0.6, -0.15}, {0.0, 0.0, 0.25}, {0.25, 0.0, 0.0}, {0.0, 0.0, -0.25}, {-0.25, 0.0, 0.0}, {0.0, -0.75, 0.0}, {0.1, -0.6, -0.15}, {0.0, -0.5, -0.25}, {-0.1, -0.6, -0.15}, {0.0, -1.0, -0.5}};
|
||||
private static int[][] nVecPos = new int[][]{{0, 1, 2, 3}, {0, 3, 4, 1}, {1, 5, 6, 2}, {3, 2, 6, 7}, {3, 7, 8, 4}, {1, 4, 8, 5}, {6, 5, 9, 10}, {6, 10, 11, 7}, {8, 7, 11, 12}, {8, 12, 9, 5}, {10, 9, 13, 11}, {12, 11, 13, 9}};
|
||||
|
||||
public void func_76986_a(Entity entity, double d0, double d1, double d2, float f, float f1) {
|
||||
if (entity instanceof EntityDriveCure) {
|
||||
this.doDriveRender((EntityDriveCure)entity, d0, d1, d2, f, f1);
|
||||
}
|
||||
}
|
||||
|
||||
protected ResourceLocation func_110775_a(Entity var1) {
|
||||
return null;
|
||||
}
|
||||
|
||||
private void doDriveRender(EntityDriveCure entity, double dX, double dY, double dZ, float f, float f1) {
|
||||
Tessellator tessellator = Tessellator.field_78398_a;
|
||||
GL11.glDisable((int)3553);
|
||||
GL11.glDisable((int)2896);
|
||||
GL11.glEnable((int)3042);
|
||||
GL11.glBlendFunc((int)770, (int)1);
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef((float)((float)dX), (float)((float)dY), (float)((float)dZ));
|
||||
GL11.glRotatef((float)entity.field_70177_z, (float)0.0f, (float)1.0f, (float)0.0f);
|
||||
GL11.glRotatef((float)(-entity.field_70125_A), (float)1.0f, (float)0.0f, (float)0.0f);
|
||||
GL11.glRotatef((float)entity.getRoll(), (float)0.0f, (float)0.0f, (float)1.0f);
|
||||
float c = entity.getc();
|
||||
float k = entity.getk();
|
||||
float g = entity.getg();
|
||||
GL11.glScalef((float)k, (float)c, (float)g);
|
||||
float lifetime = entity.getLifeTime();
|
||||
float ticks = entity.field_70173_aa;
|
||||
tessellator.func_78382_b();
|
||||
tessellator.func_78384_a(entity.getColor(), (int)(255.0f * (float)Math.pow((lifetime - Math.min(lifetime, ticks)) / lifetime, 2.0)));
|
||||
double dScale = 1.0;
|
||||
for (int idx = 0; idx < nVecPos.length; ++idx) {
|
||||
tessellator.func_78377_a(dVec[nVecPos[idx][0]][0] * dScale, dVec[nVecPos[idx][0]][1] * dScale, dVec[nVecPos[idx][0]][2] * dScale);
|
||||
tessellator.func_78377_a(dVec[nVecPos[idx][1]][0] * dScale, dVec[nVecPos[idx][1]][1] * dScale, dVec[nVecPos[idx][1]][2] * dScale);
|
||||
tessellator.func_78377_a(dVec[nVecPos[idx][2]][0] * dScale, dVec[nVecPos[idx][2]][1] * dScale, dVec[nVecPos[idx][2]][2] * dScale);
|
||||
tessellator.func_78377_a(dVec[nVecPos[idx][3]][0] * dScale, dVec[nVecPos[idx][3]][1] * dScale, dVec[nVecPos[idx][3]][2] * dScale);
|
||||
}
|
||||
tessellator.func_78381_a();
|
||||
GL11.glPopMatrix();
|
||||
GL11.glDisable((int)3042);
|
||||
GL11.glEnable((int)2896);
|
||||
GL11.glEnable((int)3553);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* de.teamlapen.vampirism.entity.EntityVampire
|
||||
* de.teamlapen.vampirism.entity.EntityVampireBaron
|
||||
* de.teamlapen.vampirism.entity.minions.EntityVampireMinion
|
||||
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
|
||||
* net.minecraft.entity.EntityLivingBase
|
||||
* net.minecraft.entity.player.EntityPlayer
|
||||
* net.minecraft.item.Item$ToolMaterial
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.potion.Potion
|
||||
* net.minecraft.potion.PotionEffect
|
||||
*/
|
||||
package com.tanzanite.abilities;
|
||||
|
||||
import com.tanzanite.potion.PotionDivine;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.potion.Potion;
|
||||
import net.minecraft.potion.PotionEffect;
|
||||
|
||||
public class VampireSlayer
|
||||
extends ItemSlashBladeNamed {
|
||||
public VampireSlayer(Item.ToolMaterial par2EnumToolMaterial, float baseAttackModifiers) {
|
||||
super(par2EnumToolMaterial, baseAttackModifiers);
|
||||
}
|
||||
|
||||
public boolean func_77644_a(ItemStack stack, EntityLivingBase hitEntity, EntityLivingBase player) {
|
||||
EntityPlayer Player;
|
||||
if (VampireSlayer.isInstanceOf(hitEntity, "de.teamlapen.vampirism.entity.EntityVampire")) {
|
||||
hitEntity.func_70690_d(new PotionEffect(7, 1, 99, true));
|
||||
return super.func_77644_a(stack, hitEntity, player);
|
||||
}
|
||||
if (VampireSlayer.isInstanceOf(hitEntity, "de.teamlapen.vampirism.entity.minions.EntityVampireMinion")) {
|
||||
hitEntity.func_70690_d(new PotionEffect(7, 1, 99, true));
|
||||
return super.func_77644_a(stack, hitEntity, player);
|
||||
}
|
||||
if (VampireSlayer.isInstanceOf(hitEntity, "de.teamlapen.vampirism.entity.EntityVampireBaron")) {
|
||||
hitEntity.func_70690_d(new PotionEffect(PotionDivine.potion.func_76396_c(), 150, 1));
|
||||
player.func_70690_d(new PotionEffect(Potion.field_76420_g.func_76396_c(), 20, 1));
|
||||
return super.func_77644_a(stack, hitEntity, player);
|
||||
}
|
||||
if (hitEntity instanceof EntityPlayer && (Player = (EntityPlayer)hitEntity).getDisplayName() == "Dracula") {
|
||||
hitEntity.func_70690_d(new PotionEffect(PotionDivine.potion.func_76396_c(), 150, 1));
|
||||
player.func_70690_d(new PotionEffect(Potion.field_76420_g.func_76396_c(), 20, 1));
|
||||
return super.func_77644_a(stack, hitEntity, player);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private static boolean isInstanceOf(EntityLivingBase entity, String className) {
|
||||
try {
|
||||
return Class.forName(className).isInstance(entity);
|
||||
}
|
||||
catch (ClassNotFoundException ignored) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.Loader
|
||||
* 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
|
||||
* mods.flammpfeil.slashblade.util.SlashBladeAchievementCreateEvent
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* 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
|
||||
* net.minecraft.stats.Achievement
|
||||
*/
|
||||
package com.tanzanite.blade;
|
||||
|
||||
import com.tanzanite.SA.SAdelete;
|
||||
import cpw.mods.fml.common.Loader;
|
||||
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 mods.flammpfeil.slashblade.util.SlashBladeAchievementCreateEvent;
|
||||
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;
|
||||
import net.minecraft.stats.Achievement;
|
||||
|
||||
public class Administrator {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
ItemSlashBlade.specialAttacks.put(12001, new SAdelete());
|
||||
String name = "flammpfeil.slashblade.named.administrator";
|
||||
String name2 = "flammpfeil.slashblade.named.kirisaya";
|
||||
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(133));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(2.0f));
|
||||
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
|
||||
ItemSlashBlade.BaseAttackModifier.set(tag, Float.valueOf(2.0f));
|
||||
ItemSlashBlade.TextureName.set(tag, "named/administrator/administrator");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/administrator/administrator");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(12001));
|
||||
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(1));
|
||||
ItemSlashBlade.SummonedSwordColor.set(tag, Integer.valueOf(9408445));
|
||||
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
|
||||
ItemSlashBladeNamed.NamedBlades.add(name);
|
||||
tag.func_74778_a("RepairOreDicMaterial", "ingotIron");
|
||||
customblade.func_77966_a(Enchantment.field_77347_r, 10);
|
||||
if (Loader.isModLoaded((String)"flammpfeil.slashblade.kirisaya")) {
|
||||
ItemStack custombladeRequired = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name2, (int)1);
|
||||
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeRequired);
|
||||
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(550000));
|
||||
ItemSlashBlade.ProudSoul.set(reqTag, Integer.valueOf(1500000));
|
||||
ItemSlashBlade.RepairCount.set(reqTag, Integer.valueOf(20));
|
||||
ItemStack administrator = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
|
||||
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
|
||||
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(administrator, custombladeRequired, new Object[]{"RRR", "SBS", "DYD", Character.valueOf('S'), itemSphereBladeSoul, Character.valueOf('B'), custombladeRequired, Character.valueOf('R'), new ItemStack(Items.field_151156_bN), Character.valueOf('Y'), new ItemStack(Blocks.field_150380_bt), Character.valueOf('D'), new ItemStack(Blocks.field_150368_y)}));
|
||||
}
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void onSlashBladeAchievementCreate(SlashBladeAchievementCreateEvent event1) {
|
||||
ItemStack blade = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"flammpfeil.slashblade.named.administrator", (int)1);
|
||||
Achievement achievement = AchievementList.registerCraftingAchievement((String)"flammpfeil.slashblade.named.administrator", (int)-17, (int)8, (ItemStack)blade, (Achievement)AchievementList.getAchievement((String)"kirisaya")).func_75987_b();
|
||||
AchievementList.setContent((Achievement)achievement, (String)"flammpfeil.slashblade.named.administrator");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
* 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
|
||||
* mods.flammpfeil.slashblade.util.SlashBladeAchievementCreateEvent
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* 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
|
||||
* net.minecraft.stats.Achievement
|
||||
*/
|
||||
package com.tanzanite.blade;
|
||||
|
||||
import com.tanzanite.SA.SAlunarPrayer;
|
||||
import com.tanzanite.loader.ItemLoader;
|
||||
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 mods.flammpfeil.slashblade.util.SlashBladeAchievementCreateEvent;
|
||||
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;
|
||||
import net.minecraft.stats.Achievement;
|
||||
|
||||
public class Changong {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
ItemSlashBlade.specialAttacks.put(12006, new SAlunarPrayer());
|
||||
String name = "flammpfeil.slashblade.named.changong";
|
||||
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(83));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(7.0f));
|
||||
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
|
||||
ItemSlashBlade.BaseAttackModifier.set(tag, Float.valueOf(10.0f));
|
||||
ItemSlashBlade.TextureName.set(tag, "named/changong/changong");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/changong/changong");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(12006));
|
||||
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(2));
|
||||
ItemSlashBlade.SummonedSwordColor.set(tag, Integer.valueOf(0xEAEAAE));
|
||||
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
|
||||
ItemSlashBladeNamed.NamedBlades.add(name);
|
||||
tag.func_74778_a("RepairOreDicMaterial", "IceGem");
|
||||
customblade.func_77966_a(Enchantment.field_77338_j, 3);
|
||||
customblade.func_77966_a(Enchantment.field_77339_k, 5);
|
||||
customblade.func_77966_a(Enchantment.field_77346_s, 5);
|
||||
ItemStack custombladeRequired = new ItemStack((Item)SlashBlade.bladeNamed);
|
||||
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeRequired);
|
||||
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(3650));
|
||||
ItemSlashBlade.ProudSoul.set(reqTag, Integer.valueOf(12000));
|
||||
ItemSlashBlade.RepairCount.set(reqTag, Integer.valueOf(5));
|
||||
ItemStack changong = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
|
||||
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
|
||||
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(changong, custombladeRequired, new Object[]{"DGD", "RBR", "DYD", Character.valueOf('G'), itemSphereBladeSoul, Character.valueOf('B'), custombladeRequired, Character.valueOf('Y'), new ItemStack(ItemLoader.IceGem), Character.valueOf('R'), new ItemStack(Blocks.field_150432_aD), Character.valueOf('D'), new ItemStack(Items.field_151073_bk)}));
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void onSlashBladeAchievementCreate(SlashBladeAchievementCreateEvent event1) {
|
||||
ItemStack blade = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"flammpfeil.slashblade.named.changong", (int)1);
|
||||
Achievement achievement = AchievementList.registerCraftingAchievement((String)"flammpfeil.slashblade.named.changong", (int)-4, (int)8, (ItemStack)blade, (Achievement)AchievementList.getAchievement((String)"noname")).func_75987_b();
|
||||
AchievementList.setContent((Achievement)achievement, (String)"flammpfeil.slashblade.named.changong");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* 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
|
||||
* mods.flammpfeil.slashblade.util.SlashBladeAchievementCreateEvent
|
||||
* 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
|
||||
* net.minecraft.stats.Achievement
|
||||
*/
|
||||
package com.tanzanite.blade;
|
||||
|
||||
import com.tanzanite.SA.SAdragonBurst;
|
||||
import com.tanzanite.loader.ItemLoader;
|
||||
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 mods.flammpfeil.slashblade.util.SlashBladeAchievementCreateEvent;
|
||||
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;
|
||||
import net.minecraft.stats.Achievement;
|
||||
|
||||
public class Qianyu {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
ItemSlashBlade.specialAttacks.put(12005, new SAdragonBurst());
|
||||
String name = "flammpfeil.slashblade.named.qianyu";
|
||||
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.AttackAmplifier.set(tag, Float.valueOf(7.0f));
|
||||
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
|
||||
ItemSlashBlade.BaseAttackModifier.set(tag, Float.valueOf(10.0f));
|
||||
ItemSlashBlade.TextureName.set(tag, "named/qianyu/qianyu");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/qianyu/qianyu");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(12005));
|
||||
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
|
||||
ItemSlashBlade.SummonedSwordColor.set(tag, Integer.valueOf(12326679));
|
||||
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
|
||||
ItemSlashBladeNamed.NamedBlades.add(name);
|
||||
tag.func_74778_a("RepairOreDicMaterial", "DragonGem");
|
||||
customblade.func_77966_a(Enchantment.field_77345_t, 9);
|
||||
customblade.func_77966_a(Enchantment.field_77338_j, 5);
|
||||
customblade.func_77966_a(Enchantment.field_77336_l, 5);
|
||||
ItemStack custombladeRequired = new ItemStack((Item)SlashBlade.bladeNamed);
|
||||
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeRequired);
|
||||
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(10000));
|
||||
ItemSlashBlade.ProudSoul.set(reqTag, Integer.valueOf(500000));
|
||||
ItemSlashBlade.RepairCount.set(reqTag, Integer.valueOf(3));
|
||||
ItemStack qianyu = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
|
||||
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
|
||||
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(qianyu, custombladeRequired, new Object[]{"DGD", "RBR", "DYD", Character.valueOf('G'), itemSphereBladeSoul, Character.valueOf('B'), custombladeRequired, Character.valueOf('Y'), new ItemStack(Blocks.field_150380_bt), Character.valueOf('R'), new ItemStack((Item)SlashBlade.bladeSilverBambooLight), Character.valueOf('D'), new ItemStack(ItemLoader.DragonGem)}));
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void onSlashBladeAchievementCreate(SlashBladeAchievementCreateEvent event1) {
|
||||
ItemStack blade = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"flammpfeil.slashblade.named.qianyu", (int)1);
|
||||
Achievement achievement = AchievementList.registerCraftingAchievement((String)"flammpfeil.slashblade.named.qianyu", (int)-4, (int)7, (ItemStack)blade, (Achievement)AchievementList.getAchievement((String)"noname")).func_75987_b();
|
||||
AchievementList.setContent((Achievement)achievement, (String)"flammpfeil.slashblade.named.qianyu");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.Loader
|
||||
* 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
|
||||
* mods.flammpfeil.slashblade.util.SlashBladeAchievementCreateEvent
|
||||
* 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
|
||||
* net.minecraft.stats.Achievement
|
||||
*/
|
||||
package com.tanzanite.blade;
|
||||
|
||||
import com.tanzanite.SA.SAhomerun;
|
||||
import cpw.mods.fml.common.Loader;
|
||||
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 mods.flammpfeil.slashblade.util.SlashBladeAchievementCreateEvent;
|
||||
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;
|
||||
import net.minecraft.stats.Achievement;
|
||||
|
||||
public class Wulixueshengjian {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
ItemSlashBlade.specialAttacks.put(12002, new SAhomerun());
|
||||
String name = "flammpfeil.slashblade.named.wulixueshengjian";
|
||||
String name2 = "flammpfeil.slashblade.named.fluorescentbar";
|
||||
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(203));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(0.0f));
|
||||
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
|
||||
ItemSlashBlade.BaseAttackModifier.set(tag, Float.valueOf(3.0f));
|
||||
ItemSlashBlade.TextureName.set(tag, "named/wulixueshengjian/wulixueshengjian");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/wulixueshengjian/wulixueshengjian");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(12002));
|
||||
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(2));
|
||||
ItemSlashBlade.SummonedSwordColor.set(tag, Integer.valueOf(0));
|
||||
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
|
||||
ItemSlashBladeNamed.NamedBlades.add(name);
|
||||
tag.func_74778_a("RepairOreDicMaterial", "ingotIron");
|
||||
customblade.func_77966_a(Enchantment.field_77347_r, 7);
|
||||
customblade.func_77966_a(Enchantment.field_77337_m, 7);
|
||||
customblade.func_77966_a(Enchantment.field_77332_c, 5);
|
||||
if (Loader.isModLoaded((String)"flammpfeil.fluorescentbar")) {
|
||||
ItemStack custombladeRequired = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name2, (int)1);
|
||||
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeRequired);
|
||||
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(1000));
|
||||
ItemSlashBlade.ProudSoul.set(reqTag, Integer.valueOf(1500));
|
||||
ItemSlashBlade.RepairCount.set(reqTag, Integer.valueOf(10));
|
||||
ItemStack wulixueshengjian = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
|
||||
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
|
||||
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(wulixueshengjian, custombladeRequired, new Object[]{"RSR", "SBS", "DYD", Character.valueOf('S'), itemSphereBladeSoul, Character.valueOf('B'), custombladeRequired, Character.valueOf('R'), new ItemStack(Blocks.field_150451_bX), Character.valueOf('Y'), new ItemStack(Blocks.field_150339_S), Character.valueOf('D'), new ItemStack(Blocks.field_150343_Z)}));
|
||||
}
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void onSlashBladeAchievementCreate(SlashBladeAchievementCreateEvent event1) {
|
||||
ItemStack blade = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"flammpfeil.slashblade.named.wulixueshengjian", (int)1);
|
||||
Achievement achievement = AchievementList.registerCraftingAchievement((String)"flammpfeil.slashblade.named.wulixueshengjian", (int)20, (int)-1, (ItemStack)blade, (Achievement)AchievementList.getAchievement((String)"fluorescentbar")).func_75987_b();
|
||||
AchievementList.setContent((Achievement)achievement, (String)"flammpfeil.slashblade.named.wulixueshengjian");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,97 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.Loader
|
||||
* cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* de.teamlapen.vampirism.ModItems
|
||||
* 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
|
||||
* mods.flammpfeil.slashblade.util.SlashBladeAchievementCreateEvent
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.item.crafting.IRecipe
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
* net.minecraft.stats.Achievement
|
||||
*/
|
||||
package com.tanzanite.blade;
|
||||
|
||||
import com.tanzanite.SA.SAvampireSlayer;
|
||||
import com.tanzanite.proxy.CommonProxy;
|
||||
import cpw.mods.fml.common.Loader;
|
||||
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 mods.flammpfeil.slashblade.util.SlashBladeAchievementCreateEvent;
|
||||
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;
|
||||
import net.minecraft.stats.Achievement;
|
||||
|
||||
public class Yinsezidan {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
ItemSlashBlade.specialAttacks.put(12003, new SAvampireSlayer());
|
||||
String name = "flammpfeil.slashblade.named.yinsezidan";
|
||||
ItemStack customblade = new ItemStack(CommonProxy.Yinsezidan, 1, 0);
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
customblade.func_77982_d(tag);
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
|
||||
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(77));
|
||||
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(7.0f));
|
||||
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
|
||||
ItemSlashBlade.BaseAttackModifier.set(tag, Float.valueOf(7.0f));
|
||||
ItemSlashBlade.TextureName.set(tag, "named/yinsezidan/yinsezidan");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/yinsezidan/yinsezidan");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(12003));
|
||||
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
|
||||
ItemSlashBlade.SummonedSwordColor.set(tag, Integer.valueOf(15132922));
|
||||
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
|
||||
ItemSlashBladeNamed.NamedBlades.add(name);
|
||||
tag.func_74778_a("RepairOreDicMaterial", "ingotSilver");
|
||||
customblade.func_77966_a(Enchantment.field_77339_k, 10);
|
||||
customblade.func_77966_a(Enchantment.field_77338_j, 3);
|
||||
if (Loader.isModLoaded((String)"vampirism")) {
|
||||
ItemStack custombladeRequired = new ItemStack((Item)SlashBlade.bladeSilverBambooLight);
|
||||
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeRequired);
|
||||
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(777));
|
||||
ItemSlashBlade.ProudSoul.set(reqTag, Integer.valueOf(7777));
|
||||
ItemSlashBlade.RepairCount.set(reqTag, Integer.valueOf(7));
|
||||
ItemStack yinsezidan = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
|
||||
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
|
||||
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(yinsezidan, custombladeRequired, new Object[]{"RGR", "SBS", "DYD", Character.valueOf('R'), itemSphereBladeSoul, Character.valueOf('B'), custombladeRequired, Character.valueOf('S'), new ItemStack(Yinsezidan.getVampirismItem("garlic")), Character.valueOf('G'), new ItemStack(Yinsezidan.getVampirismItem("pureBlood")), Character.valueOf('Y'), new ItemStack(Yinsezidan.getVampirismItem("leechSword")), Character.valueOf('D'), new ItemStack(Yinsezidan.getVampirismItem("weakVampireFang"))}));
|
||||
}
|
||||
}
|
||||
|
||||
private static Item getVampirismItem(String fieldName) {
|
||||
try {
|
||||
Object value = Class.forName("de.teamlapen.vampirism.ModItems").getField(fieldName).get(null);
|
||||
return (Item)value;
|
||||
}
|
||||
catch (ReflectiveOperationException e) {
|
||||
throw new IllegalStateException("Missing Vampirism item field: " + fieldName, e);
|
||||
}
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void onSlashBladeAchievementCreate(SlashBladeAchievementCreateEvent event1) {
|
||||
ItemStack blade = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"flammpfeil.slashblade.named.yinsezidan", (int)1);
|
||||
Achievement achievement = AchievementList.registerCraftingAchievement((String)"flammpfeil.slashblade.named.yinsezidan", (int)5, (int)1, (ItemStack)blade, (Achievement)AchievementList.getAchievement((String)"ginsitakemitu")).func_75987_b();
|
||||
AchievementList.setContent((Achievement)achievement, (String)"flammpfeil.slashblade.named.yinsezidan");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* 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
|
||||
* mods.flammpfeil.slashblade.util.SlashBladeAchievementCreateEvent
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* 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
|
||||
* net.minecraft.stats.Achievement
|
||||
*/
|
||||
package com.tanzanite.blade;
|
||||
|
||||
import com.tanzanite.SA.SAcureWave;
|
||||
import com.tanzanite.loader.ItemLoader;
|
||||
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 mods.flammpfeil.slashblade.util.SlashBladeAchievementCreateEvent;
|
||||
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;
|
||||
import net.minecraft.stats.Achievement;
|
||||
|
||||
public class Yuyin {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
ItemSlashBlade.specialAttacks.put(12004, new SAcureWave());
|
||||
String name = "flammpfeil.slashblade.named.yuyin";
|
||||
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.AttackAmplifier.set(tag, Float.valueOf(4.0f));
|
||||
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
|
||||
ItemSlashBlade.BaseAttackModifier.set(tag, Float.valueOf(3.0f));
|
||||
ItemSlashBlade.TextureName.set(tag, "named/yuyin/yuyin");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/yuyin/yuyin");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(12004));
|
||||
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
|
||||
ItemSlashBlade.SummonedSwordColor.set(tag, Integer.valueOf(7396315));
|
||||
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
|
||||
ItemSlashBladeNamed.NamedBlades.add(name);
|
||||
tag.func_74778_a("RepairOreDicMaterial", "WaterGem");
|
||||
customblade.func_77966_a(Enchantment.field_77332_c, 3);
|
||||
customblade.func_77966_a(Enchantment.field_77329_d, 3);
|
||||
customblade.func_77966_a(Enchantment.field_77340_h, 2);
|
||||
customblade.func_77966_a(Enchantment.field_77330_e, 2);
|
||||
ItemStack custombladeRequired = new ItemStack((Item)SlashBlade.bladeNamed);
|
||||
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeRequired);
|
||||
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(300));
|
||||
ItemSlashBlade.ProudSoul.set(reqTag, Integer.valueOf(1500));
|
||||
ItemSlashBlade.RepairCount.set(reqTag, Integer.valueOf(3));
|
||||
ItemStack yuyin = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
|
||||
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
|
||||
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(yuyin, custombladeRequired, new Object[]{"DGD", "RBR", "DYD", Character.valueOf('G'), itemSphereBladeSoul, Character.valueOf('B'), custombladeRequired, Character.valueOf('Y'), new ItemStack(ItemLoader.WaterGem), Character.valueOf('R'), new ItemStack(Blocks.field_150432_aD), Character.valueOf('D'), new ItemStack(Items.field_151131_as)}));
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void onSlashBladeAchievementCreate(SlashBladeAchievementCreateEvent event1) {
|
||||
ItemStack blade = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"flammpfeil.slashblade.named.yuyin", (int)1);
|
||||
Achievement achievement = AchievementList.registerCraftingAchievement((String)"flammpfeil.slashblade.named.yuyin", (int)-4, (int)9, (ItemStack)blade, (Achievement)AchievementList.getAchievement((String)"noname")).func_75987_b();
|
||||
AchievementList.setContent((Achievement)achievement, (String)"flammpfeil.slashblade.named.yuyin");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* 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
|
||||
* mods.flammpfeil.slashblade.util.SlashBladeAchievementCreateEvent
|
||||
* 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
|
||||
* net.minecraft.stats.Achievement
|
||||
*/
|
||||
package com.tanzanite.blade;
|
||||
|
||||
import com.tanzanite.SA.SAcrescentMoon;
|
||||
import com.tanzanite.loader.ItemLoader;
|
||||
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 mods.flammpfeil.slashblade.util.SlashBladeAchievementCreateEvent;
|
||||
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;
|
||||
import net.minecraft.stats.Achievement;
|
||||
|
||||
public class Zhanyue {
|
||||
public static ItemSlashBladeNamed bladeNamed;
|
||||
|
||||
@SubscribeEvent
|
||||
public void init(LoadEvent.InitEvent event) {
|
||||
ItemSlashBlade.specialAttacks.put(12007, new SAcrescentMoon());
|
||||
String name = "flammpfeil.slashblade.named.zangetsu";
|
||||
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(5.0f));
|
||||
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
|
||||
ItemSlashBlade.BaseAttackModifier.set(tag, Float.valueOf(8.0f));
|
||||
ItemSlashBlade.TextureName.set(tag, "named/zhanyue/zhanyue");
|
||||
ItemSlashBlade.ModelName.set(tag, "named/zhanyue/zhanyue");
|
||||
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(12007));
|
||||
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
|
||||
ItemSlashBlade.SummonedSwordColor.set(tag, Integer.valueOf(3715294));
|
||||
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
|
||||
ItemSlashBladeNamed.NamedBlades.add(name);
|
||||
tag.func_74778_a("RepairOreDicMaterial", "SoulIngot");
|
||||
customblade.func_77966_a(Enchantment.field_77345_t, 5);
|
||||
customblade.func_77966_a(Enchantment.field_77338_j, 3);
|
||||
customblade.func_77966_a(Enchantment.field_92091_k, 3);
|
||||
customblade.func_77966_a(Enchantment.field_77347_r, 3);
|
||||
ItemStack custombladeRequired = new ItemStack((Item)SlashBlade.bladeNamed);
|
||||
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeRequired);
|
||||
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(2000));
|
||||
ItemSlashBlade.ProudSoul.set(reqTag, Integer.valueOf(20000));
|
||||
ItemSlashBlade.RepairCount.set(reqTag, Integer.valueOf(5));
|
||||
ItemStack zhanyue = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
|
||||
ItemStack itemSphereBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
|
||||
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(zhanyue, custombladeRequired, new Object[]{"DGD", "GBG", "DYD", Character.valueOf('G'), itemSphereBladeSoul, Character.valueOf('B'), custombladeRequired, Character.valueOf('Y'), new ItemStack(ItemLoader.SoulIngot), Character.valueOf('D'), new ItemStack(Blocks.field_150482_ag)}));
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void onSlashBladeAchievementCreate(SlashBladeAchievementCreateEvent event1) {
|
||||
ItemStack blade = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"flammpfeil.slashblade.named.zangetsu", (int)1);
|
||||
Achievement achievement = AchievementList.registerCraftingAchievement((String)"flammpfeil.slashblade.named.zangetsu", (int)-4, (int)10, (ItemStack)blade, (Achievement)AchievementList.getAchievement((String)"noname")).func_75987_b();
|
||||
AchievementList.setContent((Achievement)achievement, (String)"flammpfeil.slashblade.named.zangetsu");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,123 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.relauncher.Side
|
||||
* cpw.mods.fml.relauncher.SideOnly
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* net.minecraft.block.Block
|
||||
* net.minecraft.block.BlockLeavesBase
|
||||
* net.minecraft.block.material.Material
|
||||
* net.minecraft.client.renderer.texture.IIconRegister
|
||||
* net.minecraft.entity.Entity
|
||||
* net.minecraft.entity.EntityLivingBase
|
||||
* net.minecraft.entity.player.EntityPlayer
|
||||
* net.minecraft.init.Items
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.util.IIcon
|
||||
* net.minecraft.world.IBlockAccess
|
||||
* net.minecraft.world.World
|
||||
*/
|
||||
package com.tanzanite.blocks;
|
||||
|
||||
import com.tanzanite.loader.BlockLoader;
|
||||
import com.tanzanite.loader.CreativeTabsLoader;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import java.util.Random;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockLeavesBase;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class BlockProudSoulLeaves
|
||||
extends BlockLeavesBase {
|
||||
private IIcon proudleaf;
|
||||
|
||||
public BlockProudSoulLeaves() {
|
||||
super(Material.field_151584_j, true);
|
||||
this.func_149711_c(0.2f);
|
||||
this.func_149713_g(1);
|
||||
this.func_149715_a(0.8f);
|
||||
this.func_149672_a(Block.field_149779_h);
|
||||
this.func_149663_c("ProudSoulLeaves");
|
||||
this.func_149647_a(CreativeTabsLoader.tabLostblade);
|
||||
}
|
||||
|
||||
@SideOnly(value=Side.CLIENT)
|
||||
public int func_149701_w() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@SideOnly(value=Side.CLIENT)
|
||||
public boolean func_149646_a(IBlockAccess p_149646_1_, int p_149646_2_, int p_149646_3_, int p_149646_4_, int p_149646_5_) {
|
||||
Block block = p_149646_1_.func_147439_a(p_149646_2_, p_149646_3_, p_149646_4_);
|
||||
return block == this ? false : super.func_149646_a(p_149646_1_, p_149646_2_, p_149646_3_, p_149646_4_, p_149646_5_);
|
||||
}
|
||||
|
||||
public boolean func_149662_c() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public IIcon func_149691_a(int i, int j) {
|
||||
return this.proudleaf;
|
||||
}
|
||||
|
||||
public void func_149674_a(World par1World, int par2, int par3, int par4, Random par5Random) {
|
||||
}
|
||||
|
||||
@SideOnly(value=Side.CLIENT)
|
||||
public void func_149734_b(World par1World, int par2, int par3, int par4, Random par5Random) {
|
||||
if (par5Random.nextInt(100) != 0) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
public void func_149724_b(World world, int i, int j, int k, Entity entity) {
|
||||
super.func_149724_b(world, i, j, k, entity);
|
||||
}
|
||||
|
||||
public int func_149745_a(Random par1Random) {
|
||||
return par1Random.nextInt(20) == 0 ? 1 : 0;
|
||||
}
|
||||
|
||||
public void func_149690_a(World par1World, int par2, int par3, int par4, int par5, float par6, int par7) {
|
||||
int var8 = this.func_149745_a(par1World.field_73012_v);
|
||||
if (var8 > 0) {
|
||||
this.func_149642_a(par1World, par2, par3, par4, new ItemStack(BlockLoader.ProudSoulTree, var8, 0));
|
||||
this.func_149642_a(par1World, par2, par3, par4, new ItemStack(SlashBlade.proudSoul, var8, 0));
|
||||
}
|
||||
}
|
||||
|
||||
public void func_149636_a(World world, EntityPlayer entityplayer, int i, int j, int k, int l) {
|
||||
if (!world.field_72995_K && entityplayer.func_71045_bC() != null && entityplayer.func_71045_bC().func_77973_b() == Items.field_151097_aZ) {
|
||||
entityplayer.func_71045_bC().func_77972_a(1, (EntityLivingBase)entityplayer);
|
||||
this.func_149642_a(world, i, j, k, new ItemStack((Block)this, 1, l));
|
||||
} else {
|
||||
int var8 = this.func_149745_a(world.field_73012_v);
|
||||
if (var8 > 0) {
|
||||
this.func_149642_a(world, i, j, k, new ItemStack(BlockLoader.ProudSoulTree, var8, 0));
|
||||
this.func_149642_a(world, i, j, k, new ItemStack(SlashBlade.proudSoul, var8, 0));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@SideOnly(value=Side.CLIENT)
|
||||
public void func_149651_a(IIconRegister par1IconRegister) {
|
||||
this.proudleaf = par1IconRegister.func_94245_a("lostblade:proud_soul_leaves");
|
||||
}
|
||||
|
||||
public int func_149692_a(int par1) {
|
||||
return par1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.relauncher.Side
|
||||
* cpw.mods.fml.relauncher.SideOnly
|
||||
* net.minecraft.block.Block
|
||||
* net.minecraft.block.BlockLog
|
||||
* net.minecraft.client.renderer.texture.IIconRegister
|
||||
* net.minecraft.util.IIcon
|
||||
* net.minecraft.world.IBlockAccess
|
||||
*/
|
||||
package com.tanzanite.blocks;
|
||||
|
||||
import com.tanzanite.loader.CreativeTabsLoader;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockLog;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
|
||||
public class BlockProudSoulLog
|
||||
extends BlockLog {
|
||||
private static IIcon top;
|
||||
private static IIcon side;
|
||||
|
||||
public BlockProudSoulLog() {
|
||||
this.func_149711_c(2.0f);
|
||||
this.func_149713_g(1);
|
||||
this.func_149715_a(0.8f);
|
||||
this.func_149672_a(Block.field_149766_f);
|
||||
this.func_149663_c("ProudSoulLog");
|
||||
this.func_149647_a(CreativeTabsLoader.tabLostblade);
|
||||
}
|
||||
|
||||
@SideOnly(value=Side.CLIENT)
|
||||
public int func_149701_w() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@SideOnly(value=Side.CLIENT)
|
||||
public boolean func_149646_a(IBlockAccess p_149646_1_, int p_149646_2_, int p_149646_3_, int p_149646_4_, int p_149646_5_) {
|
||||
Block block = p_149646_1_.func_147439_a(p_149646_2_, p_149646_3_, p_149646_4_);
|
||||
return block == this ? false : super.func_149646_a(p_149646_1_, p_149646_2_, p_149646_3_, p_149646_4_, p_149646_5_);
|
||||
}
|
||||
|
||||
public boolean func_149662_c() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public IIcon func_149691_a(int par1, int par2) {
|
||||
if (par2 == 0) {
|
||||
if (par1 == 0 || par1 == 1) {
|
||||
return top;
|
||||
}
|
||||
return side;
|
||||
}
|
||||
if (par2 == 4) {
|
||||
if (par1 == 4 || par1 == 5) {
|
||||
return top;
|
||||
}
|
||||
return side;
|
||||
}
|
||||
if (par1 == 2 || par1 == 3) {
|
||||
return top;
|
||||
}
|
||||
return side;
|
||||
}
|
||||
|
||||
@SideOnly(value=Side.CLIENT)
|
||||
public void func_149651_a(IIconRegister par1IconRegister) {
|
||||
top = par1IconRegister.func_94245_a("lostblade:proud_soul_log_top");
|
||||
side = par1IconRegister.func_94245_a("lostblade:proud_soul_log_side");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,125 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.relauncher.Side
|
||||
* cpw.mods.fml.relauncher.SideOnly
|
||||
* net.minecraft.block.Block
|
||||
* net.minecraft.block.BlockSapling
|
||||
* net.minecraft.block.IGrowable
|
||||
* net.minecraft.client.renderer.texture.IIconRegister
|
||||
* net.minecraft.creativetab.CreativeTabs
|
||||
* net.minecraft.entity.player.EntityPlayer
|
||||
* net.minecraft.init.Items
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.util.IIcon
|
||||
* net.minecraft.world.IBlockAccess
|
||||
* net.minecraft.world.World
|
||||
* net.minecraft.world.gen.feature.WorldGenerator
|
||||
*/
|
||||
package com.tanzanite.blocks;
|
||||
|
||||
import com.tanzanite.loader.CreativeTabsLoader;
|
||||
import com.tanzanite.worldgen.WorldGenProudSoulTree;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockSapling;
|
||||
import net.minecraft.block.IGrowable;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.gen.feature.WorldGenerator;
|
||||
|
||||
public class BlockProudSoulTree
|
||||
extends BlockSapling
|
||||
implements IGrowable {
|
||||
public BlockProudSoulTree() {
|
||||
this.func_149672_a(field_149779_h);
|
||||
this.func_149711_c(0.0f);
|
||||
this.func_149713_g(1);
|
||||
this.func_149715_a(0.4f);
|
||||
this.func_149658_d("proud_soul_sampling");
|
||||
this.func_149663_c("ProudSoulSampling");
|
||||
this.func_149647_a(CreativeTabsLoader.tabLostblade);
|
||||
}
|
||||
|
||||
@SideOnly(value=Side.CLIENT)
|
||||
public int func_149701_w() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@SideOnly(value=Side.CLIENT)
|
||||
public boolean func_149646_a(IBlockAccess p_149646_1_, int p_149646_2_, int p_149646_3_, int p_149646_4_, int p_149646_5_) {
|
||||
Block block = p_149646_1_.func_147439_a(p_149646_2_, p_149646_3_, p_149646_4_);
|
||||
return block == this ? false : super.func_149646_a(p_149646_1_, p_149646_2_, p_149646_3_, p_149646_4_, p_149646_5_);
|
||||
}
|
||||
|
||||
public boolean func_149662_c() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean func_149727_a(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9) {
|
||||
ItemStack is;
|
||||
if (!par1World.field_72995_K && (is = par5EntityPlayer.func_71045_bC()) != null && is.func_77973_b() == Items.field_151100_aR && is.func_77960_j() != 15) {
|
||||
if (!par5EntityPlayer.field_71075_bZ.field_75098_d) {
|
||||
is.field_77994_a -= 16;
|
||||
}
|
||||
this.growTree(par1World, par2, par3, par4, par1World.field_73012_v, is.func_77960_j());
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public void func_149674_a(World world, int i, int j, int k, Random random) {
|
||||
if (!world.field_72995_K && world.func_72957_l(i, j + 1, k) >= 9 && random.nextInt(30) == 0) {
|
||||
this.growTree(world, i, j, k, random, 15);
|
||||
}
|
||||
}
|
||||
|
||||
public void growTree(World world, int i, int j, int k, Random random, int dmg) {
|
||||
world.func_147468_f(i, j, k);
|
||||
WorldGenProudSoulTree obj = null;
|
||||
obj = new WorldGenProudSoulTree(true, dmg);
|
||||
if (!((WorldGenerator)obj).func_76484_a(world, random, i, j, k)) {
|
||||
world.func_147465_d(i, j, k, (Block)this, dmg, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@SideOnly(value=Side.CLIENT)
|
||||
public void func_149651_a(IIconRegister par1IconRegister) {
|
||||
this.field_149761_L = par1IconRegister.func_94245_a("lostblade:proud_soul_sampling");
|
||||
}
|
||||
|
||||
@SideOnly(value=Side.CLIENT)
|
||||
public void func_149666_a(Item p_149666_1_, CreativeTabs p_149666_2_, List p_149666_3_) {
|
||||
p_149666_3_.add(new ItemStack(p_149666_1_, 1, 0));
|
||||
}
|
||||
|
||||
@SideOnly(value=Side.CLIENT)
|
||||
public IIcon func_149691_a(int p_149691_1_, int p_149691_2_) {
|
||||
return this.field_149761_L;
|
||||
}
|
||||
|
||||
public boolean func_149851_a(World world, int posX, int posY, int posZ, boolean isRemote) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean func_149852_a(World world, Random rand, int posX, int posY, int posZ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public void func_149853_b(World world, Random rand, int posX, int posY, int posZ) {
|
||||
this.growTree(world, posX, posY, posZ, rand, 15);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* net.minecraft.creativetab.CreativeTabs
|
||||
* net.minecraft.item.Item
|
||||
*/
|
||||
package com.tanzanite.creativetab;
|
||||
|
||||
import com.tanzanite.loader.ItemLoader;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.item.Item;
|
||||
|
||||
public class CreativeTabsLostblade
|
||||
extends CreativeTabs {
|
||||
public CreativeTabsLostblade() {
|
||||
super("tabLostblade");
|
||||
}
|
||||
|
||||
public Item func_78016_d() {
|
||||
return ItemLoader.SoulIngot;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.util.WeightedRandomChestContent
|
||||
* net.minecraftforge.common.ChestGenHooks
|
||||
* net.minecraftforge.common.MinecraftForge
|
||||
*/
|
||||
package com.tanzanite.items;
|
||||
|
||||
import com.tanzanite.items.utils.LostbladeChestContent;
|
||||
import com.tanzanite.loader.CreativeTabsLoader;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.util.WeightedRandomChestContent;
|
||||
import net.minecraftforge.common.ChestGenHooks;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
|
||||
public class ItemDragonGem
|
||||
extends Item {
|
||||
public ItemDragonGem() {
|
||||
this.func_77655_b("DragonGem");
|
||||
this.func_111206_d("lostblade:dragon_gem");
|
||||
this.func_77637_a(CreativeTabsLoader.tabLostblade);
|
||||
LostbladeChestContent content = new LostbladeChestContent(this, 0, 1, 1, 1){
|
||||
|
||||
@Override
|
||||
public float getLotteryRate() {
|
||||
return 0.01f;
|
||||
}
|
||||
};
|
||||
ChestGenHooks.addItem((String)"pyramidDesertyChest", (WeightedRandomChestContent)content);
|
||||
ChestGenHooks.addItem((String)"pyramidJungleChest", (WeightedRandomChestContent)content);
|
||||
ChestGenHooks.addItem((String)"strongholdCorridor", (WeightedRandomChestContent)content);
|
||||
ChestGenHooks.addItem((String)"strongholdCrossing", (WeightedRandomChestContent)content);
|
||||
MinecraftForge.EVENT_BUS.register((Object)this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.util.WeightedRandomChestContent
|
||||
* net.minecraftforge.common.ChestGenHooks
|
||||
* net.minecraftforge.common.MinecraftForge
|
||||
*/
|
||||
package com.tanzanite.items;
|
||||
|
||||
import com.tanzanite.items.utils.LostbladeChestContent;
|
||||
import com.tanzanite.loader.CreativeTabsLoader;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.util.WeightedRandomChestContent;
|
||||
import net.minecraftforge.common.ChestGenHooks;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
|
||||
public class ItemIceGem
|
||||
extends Item {
|
||||
public ItemIceGem() {
|
||||
this.func_77655_b("IceGem");
|
||||
this.func_111206_d("lostblade:ice_gem");
|
||||
this.func_77637_a(CreativeTabsLoader.tabLostblade);
|
||||
LostbladeChestContent content = new LostbladeChestContent(this, 0, 1, 1, 1){
|
||||
|
||||
@Override
|
||||
public float getLotteryRate() {
|
||||
return 0.01f;
|
||||
}
|
||||
};
|
||||
ChestGenHooks.addItem((String)"pyramidDesertyChest", (WeightedRandomChestContent)content);
|
||||
ChestGenHooks.addItem((String)"pyramidJungleChest", (WeightedRandomChestContent)content);
|
||||
ChestGenHooks.addItem((String)"strongholdCorridor", (WeightedRandomChestContent)content);
|
||||
ChestGenHooks.addItem((String)"strongholdCrossing", (WeightedRandomChestContent)content);
|
||||
MinecraftForge.EVENT_BUS.register((Object)this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.util.WeightedRandomChestContent
|
||||
* net.minecraftforge.common.ChestGenHooks
|
||||
* net.minecraftforge.common.MinecraftForge
|
||||
*/
|
||||
package com.tanzanite.items;
|
||||
|
||||
import com.tanzanite.items.utils.LostbladeChestContent;
|
||||
import com.tanzanite.loader.CreativeTabsLoader;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.WeightedRandomChestContent;
|
||||
import net.minecraftforge.common.ChestGenHooks;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
|
||||
public class ItemSoulCrystal
|
||||
extends Item {
|
||||
public ItemSoulCrystal() {
|
||||
this.func_77655_b("SoulCrystal");
|
||||
this.func_111206_d("lostblade:soul_crystal");
|
||||
this.func_77637_a(CreativeTabsLoader.tabLostblade);
|
||||
LostbladeChestContent content = new LostbladeChestContent(this, 0, 1, 1, 1){
|
||||
|
||||
@Override
|
||||
public float getLotteryRate() {
|
||||
return 0.001f;
|
||||
}
|
||||
};
|
||||
ChestGenHooks.addItem((String)"pyramidDesertyChest", (WeightedRandomChestContent)content);
|
||||
ChestGenHooks.addItem((String)"pyramidJungleChest", (WeightedRandomChestContent)content);
|
||||
ChestGenHooks.addItem((String)"strongholdCorridor", (WeightedRandomChestContent)content);
|
||||
ChestGenHooks.addItem((String)"strongholdCrossing", (WeightedRandomChestContent)content);
|
||||
MinecraftForge.EVENT_BUS.register((Object)this);
|
||||
}
|
||||
|
||||
public boolean func_77636_d(ItemStack par1ItemStack) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.util.WeightedRandomChestContent
|
||||
* net.minecraftforge.common.ChestGenHooks
|
||||
* net.minecraftforge.common.MinecraftForge
|
||||
*/
|
||||
package com.tanzanite.items;
|
||||
|
||||
import com.tanzanite.items.utils.LostbladeChestContent;
|
||||
import com.tanzanite.loader.CreativeTabsLoader;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.util.WeightedRandomChestContent;
|
||||
import net.minecraftforge.common.ChestGenHooks;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
|
||||
public class ItemSoulIngot
|
||||
extends Item {
|
||||
public ItemSoulIngot() {
|
||||
this.func_77655_b("SoulIngot");
|
||||
this.func_111206_d("lostblade:soul_ingot");
|
||||
this.func_77637_a(CreativeTabsLoader.tabLostblade);
|
||||
LostbladeChestContent content = new LostbladeChestContent(this, 0, 1, 1, 1){
|
||||
|
||||
@Override
|
||||
public float getLotteryRate() {
|
||||
return 0.01f;
|
||||
}
|
||||
};
|
||||
ChestGenHooks.addItem((String)"pyramidDesertyChest", (WeightedRandomChestContent)content);
|
||||
ChestGenHooks.addItem((String)"pyramidJungleChest", (WeightedRandomChestContent)content);
|
||||
ChestGenHooks.addItem((String)"strongholdCorridor", (WeightedRandomChestContent)content);
|
||||
ChestGenHooks.addItem((String)"strongholdCrossing", (WeightedRandomChestContent)content);
|
||||
MinecraftForge.EVENT_BUS.register((Object)this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.util.WeightedRandomChestContent
|
||||
* net.minecraftforge.common.ChestGenHooks
|
||||
* net.minecraftforge.common.MinecraftForge
|
||||
*/
|
||||
package com.tanzanite.items;
|
||||
|
||||
import com.tanzanite.items.utils.LostbladeChestContent;
|
||||
import com.tanzanite.loader.CreativeTabsLoader;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.util.WeightedRandomChestContent;
|
||||
import net.minecraftforge.common.ChestGenHooks;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
|
||||
public class ItemWaterGem
|
||||
extends Item {
|
||||
public ItemWaterGem() {
|
||||
this.func_77655_b("WaterGem");
|
||||
this.func_111206_d("lostblade:water_gem");
|
||||
this.func_77637_a(CreativeTabsLoader.tabLostblade);
|
||||
LostbladeChestContent content = new LostbladeChestContent(this, 0, 1, 1, 1){
|
||||
|
||||
@Override
|
||||
public float getLotteryRate() {
|
||||
return 0.01f;
|
||||
}
|
||||
};
|
||||
ChestGenHooks.addItem((String)"pyramidDesertyChest", (WeightedRandomChestContent)content);
|
||||
ChestGenHooks.addItem((String)"pyramidJungleChest", (WeightedRandomChestContent)content);
|
||||
ChestGenHooks.addItem((String)"strongholdCorridor", (WeightedRandomChestContent)content);
|
||||
ChestGenHooks.addItem((String)"strongholdCrossing", (WeightedRandomChestContent)content);
|
||||
MinecraftForge.EVENT_BUS.register((Object)this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* net.minecraft.block.Block
|
||||
* net.minecraft.inventory.IInventory
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.util.WeightedRandomChestContent
|
||||
*/
|
||||
package com.tanzanite.items.utils;
|
||||
|
||||
import com.tanzanite.loader.BlockLoader;
|
||||
import java.util.Random;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.WeightedRandomChestContent;
|
||||
|
||||
public class LostbladeChestContent
|
||||
extends WeightedRandomChestContent {
|
||||
public LostbladeChestContent(Item par1, int par2, int par3, int par4, int par5) {
|
||||
super(par1, par2, par3, par4, par5);
|
||||
}
|
||||
|
||||
public LostbladeChestContent(ItemStack par1ItemStack, int par2, int par3, int par4) {
|
||||
super(par1ItemStack, par2, par3, par4);
|
||||
}
|
||||
|
||||
public float getLotteryRate() {
|
||||
return 0.01f;
|
||||
}
|
||||
|
||||
protected ItemStack[] generateChestContent(Random random, IInventory newInventory) {
|
||||
if (random.nextFloat() < this.getLotteryRate()) {
|
||||
return super.generateChestContent(random, newInventory);
|
||||
}
|
||||
return new ItemStack[]{new ItemStack(random.nextBoolean() ? Item.func_150898_a((Block)BlockLoader.ProudSoulTree) : Item.func_150898_a((Block)BlockLoader.ProudSoulTree), 1, 0)};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.event.FMLPreInitializationEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* net.minecraft.block.Block
|
||||
*/
|
||||
package com.tanzanite.loader;
|
||||
|
||||
import com.tanzanite.blocks.BlockProudSoulLeaves;
|
||||
import com.tanzanite.blocks.BlockProudSoulLog;
|
||||
import com.tanzanite.blocks.BlockProudSoulTree;
|
||||
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import net.minecraft.block.Block;
|
||||
|
||||
public class BlockLoader {
|
||||
public static Block ProudSoulLeaves = new BlockProudSoulLeaves();
|
||||
public static Block ProudSoulLog = new BlockProudSoulLog();
|
||||
public static Block ProudSoulTree = new BlockProudSoulTree();
|
||||
|
||||
public BlockLoader(FMLPreInitializationEvent event) {
|
||||
this.registerBlocks();
|
||||
}
|
||||
|
||||
private void registerBlocks() {
|
||||
GameRegistry.registerBlock((Block)ProudSoulLeaves, (String)"ProudSoulLeaves");
|
||||
GameRegistry.registerBlock((Block)ProudSoulLog, (String)"ProudSoulLog");
|
||||
GameRegistry.registerBlock((Block)ProudSoulTree, (String)"ProudSoulSampling");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* 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.ItemStack
|
||||
*/
|
||||
package com.tanzanite.loader;
|
||||
|
||||
import com.tanzanite.loader.BlockLoader;
|
||||
import com.tanzanite.loader.ItemLoader;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import mods.flammpfeil.slashblade.SlashBlade;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class CraftingLoader {
|
||||
public CraftingLoader() {
|
||||
CraftingLoader.registerRecipe();
|
||||
CraftingLoader.registerSmelting();
|
||||
CraftingLoader.registerFuel();
|
||||
}
|
||||
|
||||
private static void registerRecipe() {
|
||||
ItemStack tinyBladeSoul = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"tiny_bladesoul", (int)1);
|
||||
GameRegistry.addShapedRecipe((ItemStack)new ItemStack(ItemLoader.IceGem), (Object[])new Object[]{" B ", "BAB", " B ", Character.valueOf('A'), Blocks.field_150432_aD, Character.valueOf('B'), tinyBladeSoul});
|
||||
GameRegistry.addShapedRecipe((ItemStack)new ItemStack(ItemLoader.DragonGem), (Object[])new Object[]{" B ", "BAB", " B ", Character.valueOf('A'), Blocks.field_150451_bX, Character.valueOf('B'), tinyBladeSoul});
|
||||
GameRegistry.addShapedRecipe((ItemStack)new ItemStack(ItemLoader.WaterGem), (Object[])new Object[]{" B ", "BAB", " B ", Character.valueOf('A'), Items.field_151068_bn, Character.valueOf('B'), tinyBladeSoul});
|
||||
GameRegistry.addShapelessRecipe((ItemStack)new ItemStack(ItemLoader.SoulIngot), (Object[])new Object[]{Items.field_151042_j, tinyBladeSoul});
|
||||
}
|
||||
|
||||
private static void registerSmelting() {
|
||||
GameRegistry.addSmelting((Block)BlockLoader.ProudSoulLog, (ItemStack)new ItemStack(SlashBlade.proudSoul), (float)0.7f);
|
||||
GameRegistry.addSmelting((Block)BlockLoader.ProudSoulLeaves, (ItemStack)GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"tiny_bladesoul", (int)1), (float)0.3f);
|
||||
}
|
||||
|
||||
private static void registerFuel() {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.event.FMLPreInitializationEvent
|
||||
* net.minecraft.creativetab.CreativeTabs
|
||||
*/
|
||||
package com.tanzanite.loader;
|
||||
|
||||
import com.tanzanite.creativetab.CreativeTabsLostblade;
|
||||
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
|
||||
public class CreativeTabsLoader {
|
||||
public static CreativeTabs tabLostblade;
|
||||
|
||||
public CreativeTabsLoader(FMLPreInitializationEvent event) {
|
||||
tabLostblade = new CreativeTabsLostblade();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,192 @@
|
||||
/*
|
||||
* 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.TagPropertyAccessor
|
||||
* net.minecraft.enchantment.Enchantment
|
||||
* net.minecraft.enchantment.EnchantmentHelper
|
||||
* net.minecraft.entity.boss.EntityDragon
|
||||
* net.minecraft.entity.boss.EntityWither
|
||||
* net.minecraft.entity.player.EntityPlayer
|
||||
* net.minecraft.item.ItemStack
|
||||
* net.minecraft.nbt.NBTTagCompound
|
||||
* net.minecraft.potion.Potion
|
||||
* net.minecraft.potion.PotionEffect
|
||||
* net.minecraft.util.DamageSource
|
||||
* net.minecraftforge.common.MinecraftForge
|
||||
* net.minecraftforge.event.AnvilUpdateEvent
|
||||
* net.minecraftforge.event.entity.living.LivingDropsEvent
|
||||
* net.minecraftforge.event.entity.living.LivingHurtEvent
|
||||
* net.minecraftforge.event.entity.player.EntityInteractEvent
|
||||
* org.apache.commons.lang3.StringUtils
|
||||
*/
|
||||
package com.tanzanite.loader;
|
||||
|
||||
import com.tanzanite.items.ItemSoulCrystal;
|
||||
import com.tanzanite.loader.ItemLoader;
|
||||
import com.tanzanite.potion.PotionDivine;
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
import java.util.Random;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBlade;
|
||||
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
|
||||
import mods.flammpfeil.slashblade.TagPropertyAccessor;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.enchantment.EnchantmentHelper;
|
||||
import net.minecraft.entity.boss.EntityDragon;
|
||||
import net.minecraft.entity.boss.EntityWither;
|
||||
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.util.DamageSource;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
import net.minecraftforge.event.AnvilUpdateEvent;
|
||||
import net.minecraftforge.event.entity.living.LivingDropsEvent;
|
||||
import net.minecraftforge.event.entity.living.LivingHurtEvent;
|
||||
import net.minecraftforge.event.entity.player.EntityInteractEvent;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
public class EventLoader {
|
||||
public EventLoader() {
|
||||
MinecraftForge.EVENT_BUS.register((Object)this);
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void onLivingHurt(EntityInteractEvent event) {
|
||||
EntityPlayer player = event.entityPlayer;
|
||||
PotionEffect effect = event.entityLiving.func_70660_b((Potion)PotionDivine.potion);
|
||||
if (effect != null && effect.func_76458_c() >= 0 && player.func_70613_aW() && event.target instanceof EntityPlayer) {
|
||||
player.func_70097_a(DamageSource.field_76376_m, 0.5f);
|
||||
}
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void onLivingHurt(LivingHurtEvent event) {
|
||||
PotionEffect effect;
|
||||
if (event.source.func_76355_l().equals("onFire") && (effect = event.entityLiving.func_70660_b((Potion)PotionDivine.potion)) != null) {
|
||||
event.ammount = effect.func_76458_c() == 0 ? (float)((double)event.ammount * 1.5) : (float)((double)event.ammount * 3.0);
|
||||
}
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void onAnvil(AnvilUpdateEvent event) {
|
||||
float repairFactor;
|
||||
if (!(event.left.func_77973_b() instanceof ItemSlashBlade)) {
|
||||
return;
|
||||
}
|
||||
if (event.right == null) {
|
||||
return;
|
||||
}
|
||||
if (!(event.right.func_77973_b() instanceof ItemSoulCrystal)) {
|
||||
return;
|
||||
}
|
||||
event.materialCost = 1;
|
||||
ItemStack out = event.left.func_77946_l();
|
||||
NBTTagCompound tag = ItemSlashBlade.getItemTagCompound((ItemStack)out);
|
||||
int cost = event.cost;
|
||||
Map map = EnchantmentHelper.func_82781_a((ItemStack)event.left);
|
||||
Iterator localIterator = map.keySet().iterator();
|
||||
while (localIterator.hasNext()) {
|
||||
Enchantment enchantment1;
|
||||
int enchIdx = (Integer)localIterator.next();
|
||||
Enchantment enchantment = enchantment1 = 0 <= enchIdx && enchIdx < Enchantment.field_77331_b.length ? Enchantment.field_77331_b[enchIdx] : null;
|
||||
if (enchantment1 == null) continue;
|
||||
int level = (Integer)map.get(enchantment1.field_77352_x);
|
||||
int baseCost = 0;
|
||||
switch (enchantment1.func_77324_c()) {
|
||||
case 1: {
|
||||
baseCost = 8;
|
||||
break;
|
||||
}
|
||||
case 2: {
|
||||
baseCost = 4;
|
||||
}
|
||||
default: {
|
||||
break;
|
||||
}
|
||||
case 5: {
|
||||
baseCost = 2;
|
||||
break;
|
||||
}
|
||||
case 10: {
|
||||
baseCost = 1;
|
||||
}
|
||||
}
|
||||
cost += baseCost * level;
|
||||
}
|
||||
switch (event.right.func_77960_j()) {
|
||||
default:
|
||||
}
|
||||
cost = Math.max(5, cost);
|
||||
NBTTagCompound matTag = ItemSlashBlade.getItemTagCompound((ItemStack)event.right);
|
||||
if (ItemSlashBladeNamed.CurrentItemName.exists(matTag)) {
|
||||
ItemStack targetBlade = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"slashbladeNamed", (int)1);
|
||||
if (out.func_77977_a().equals(targetBlade.func_77977_a())) {
|
||||
TagPropertyAccessor[] accessors;
|
||||
if (1000 > ItemSlashBlade.ProudSoul.get(tag)) {
|
||||
return;
|
||||
}
|
||||
ItemSlashBladeNamed.CurrentItemName.set(tag, ItemSlashBladeNamed.CurrentItemName.get(matTag));
|
||||
if (ItemSlashBlade.BaseAttackModifier.exists(matTag)) {
|
||||
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)ItemSlashBlade.BaseAttackModifier.get(matTag).floatValue());
|
||||
}
|
||||
for (TagPropertyAccessor acc : accessors = new TagPropertyAccessor[]{ItemSlashBladeNamed.CustomMaxDamage, ItemSlashBlade.TextureName, ItemSlashBlade.ModelName, ItemSlashBlade.SpecialAttackType, ItemSlashBlade.StandbyRenderType, ItemSlashBladeNamed.IsDefaultBewitched, ItemSlashBladeNamed.TrueItemName, ItemSlashBlade.SummonedSwordColor, ItemSlashBlade.IsDestructable, ItemSlashBlade.IsBroken}) {
|
||||
this.copyTag(acc, tag, matTag);
|
||||
}
|
||||
}
|
||||
repairFactor = 1.0f;
|
||||
ItemSlashBlade.KillCount.add(tag, Integer.valueOf(100));
|
||||
ItemSlashBlade.ProudSoul.add(tag, Integer.valueOf(300));
|
||||
} else {
|
||||
repairFactor = 1.0f;
|
||||
ItemSlashBlade.KillCount.add(tag, Integer.valueOf(100));
|
||||
ItemSlashBlade.ProudSoul.add(tag, Integer.valueOf(300));
|
||||
}
|
||||
event.cost = cost;
|
||||
ItemSlashBlade.RepairCount.add(tag, Integer.valueOf(1));
|
||||
int repair = Math.min(out.func_77960_j(), (int)((float)out.func_77958_k() * repairFactor));
|
||||
out.func_77964_b(out.func_77960_j() - repair);
|
||||
if (StringUtils.isBlank((CharSequence)event.name)) {
|
||||
if (ItemSlashBladeNamed.IsDefaultBewitched.get(tag).booleanValue()) {
|
||||
out.func_135074_t();
|
||||
out.func_151001_c(out.func_82833_r());
|
||||
} else if (out.func_82837_s()) {
|
||||
out.func_135074_t();
|
||||
}
|
||||
} else {
|
||||
out.func_151001_c(event.name);
|
||||
}
|
||||
event.output = out;
|
||||
}
|
||||
|
||||
public void copyTag(TagPropertyAccessor acc, NBTTagCompound dest, NBTTagCompound src) {
|
||||
if (acc.exists(src)) {
|
||||
acc.set(dest, acc.get(src));
|
||||
}
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void onPassiveDrop(LivingDropsEvent event) {
|
||||
Random rand = new Random();
|
||||
float min = 0.0f;
|
||||
float max = 1.0f;
|
||||
float i = min + rand.nextFloat() * (max - min);
|
||||
if (event.source.func_76355_l().equals("player") && i <= 1.0f) {
|
||||
if (event.entityLiving instanceof EntityDragon) {
|
||||
event.entityLiving.func_145779_a(ItemLoader.SoulCrystal, 2);
|
||||
}
|
||||
if (event.entityLiving instanceof EntityWither) {
|
||||
event.entityLiving.func_145779_a(ItemLoader.SoulCrystal, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.event.FMLPreInitializationEvent
|
||||
* cpw.mods.fml.common.registry.GameRegistry
|
||||
* net.minecraft.item.Item
|
||||
*/
|
||||
package com.tanzanite.loader;
|
||||
|
||||
import com.tanzanite.items.ItemDragonGem;
|
||||
import com.tanzanite.items.ItemIceGem;
|
||||
import com.tanzanite.items.ItemSoulCrystal;
|
||||
import com.tanzanite.items.ItemSoulIngot;
|
||||
import com.tanzanite.items.ItemWaterGem;
|
||||
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import net.minecraft.item.Item;
|
||||
|
||||
public class ItemLoader {
|
||||
public static Item WaterGem = new ItemWaterGem();
|
||||
public static Item DragonGem = new ItemDragonGem();
|
||||
public static Item IceGem = new ItemIceGem();
|
||||
public static Item SoulIngot = new ItemSoulIngot();
|
||||
public static Item SoulCrystal = new ItemSoulCrystal();
|
||||
|
||||
public ItemLoader(FMLPreInitializationEvent event) {
|
||||
ItemLoader.register(WaterGem, "WaterGem");
|
||||
ItemLoader.register(DragonGem, "DragonGem");
|
||||
ItemLoader.register(IceGem, "IceGem");
|
||||
ItemLoader.register(SoulIngot, "SoulIngot");
|
||||
ItemLoader.register(SoulCrystal, "SoulCrystal");
|
||||
}
|
||||
|
||||
private static void register(Item item, String name) {
|
||||
GameRegistry.registerItem((Item)item, (String)item.func_77658_a());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.common.event.FMLPreInitializationEvent
|
||||
* net.minecraft.block.Block
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraftforge.oredict.OreDictionary
|
||||
*/
|
||||
package com.tanzanite.loader;
|
||||
|
||||
import com.tanzanite.loader.BlockLoader;
|
||||
import com.tanzanite.loader.ItemLoader;
|
||||
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
|
||||
public class OreDicLoader {
|
||||
public OreDicLoader(FMLPreInitializationEvent event) {
|
||||
OreDictionary.registerOre((String)"WaterGem", (Item)ItemLoader.WaterGem);
|
||||
OreDictionary.registerOre((String)"DragonGem", (Item)ItemLoader.DragonGem);
|
||||
OreDictionary.registerOre((String)"IceGem", (Item)ItemLoader.IceGem);
|
||||
OreDictionary.registerOre((String)"ProudSoulWood", (Block)BlockLoader.ProudSoulLog);
|
||||
OreDictionary.registerOre((String)"SoulIngot", (Item)ItemLoader.SoulIngot);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* net.minecraft.potion.Potion
|
||||
*/
|
||||
package com.tanzanite.loader;
|
||||
|
||||
import com.tanzanite.potion.PotionDivine;
|
||||
import com.tanzanite.potion.PotionHide;
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.Modifier;
|
||||
import net.minecraft.potion.Potion;
|
||||
import sun.misc.Unsafe;
|
||||
|
||||
public class PotionLoader {
|
||||
public static Potion divine;
|
||||
public static Potion hide;
|
||||
|
||||
public static void init() {
|
||||
expandPotionArray(52);
|
||||
PotionDivine.potion = new PotionDivine(50, true, 15132922);
|
||||
PotionDivine.init();
|
||||
PotionHide.potion = new PotionHide(51, false, 0);
|
||||
PotionHide.init();
|
||||
}
|
||||
|
||||
private static void expandPotionArray(int minLength) {
|
||||
for (Field field : Potion.class.getDeclaredFields()) {
|
||||
if (!field.getName().equals("potionTypes") && !field.getName().equals("field_76425_a")
|
||||
&& !field.getName().equals("a")) {
|
||||
continue;
|
||||
}
|
||||
|
||||
try {
|
||||
field.setAccessible(true);
|
||||
Potion[] current = (Potion[]) field.get(null);
|
||||
if (current.length >= minLength) {
|
||||
return;
|
||||
}
|
||||
|
||||
Potion[] expanded = new Potion[Math.max(256, minLength)];
|
||||
System.arraycopy(current, 0, expanded, 0, current.length);
|
||||
setStaticFinal(field, expanded);
|
||||
return;
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException("Lostblade could not expand Minecraft potion array", e);
|
||||
}
|
||||
}
|
||||
|
||||
throw new RuntimeException("Lostblade could not find Minecraft potion array field");
|
||||
}
|
||||
|
||||
private static void setStaticFinal(Field field, Object value) throws Exception {
|
||||
try {
|
||||
Field modifiers = Field.class.getDeclaredField("modifiers");
|
||||
modifiers.setAccessible(true);
|
||||
modifiers.setInt(field, field.getModifiers() & ~Modifier.FINAL);
|
||||
field.set(null, value);
|
||||
return;
|
||||
} catch (ReflectiveOperationException ignored) {
|
||||
}
|
||||
|
||||
Field unsafeField = Unsafe.class.getDeclaredField("theUnsafe");
|
||||
unsafeField.setAccessible(true);
|
||||
Unsafe unsafe = (Unsafe) unsafeField.get(null);
|
||||
unsafe.putObject(unsafe.staticFieldBase(field), unsafe.staticFieldOffset(field), value);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.relauncher.Side
|
||||
* cpw.mods.fml.relauncher.SideOnly
|
||||
* net.minecraft.client.Minecraft
|
||||
* net.minecraft.entity.EntityLivingBase
|
||||
* net.minecraft.potion.Potion
|
||||
* net.minecraft.util.DamageSource
|
||||
* net.minecraft.util.ResourceLocation
|
||||
*/
|
||||
package com.tanzanite.potion;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.potion.Potion;
|
||||
import net.minecraft.util.DamageSource;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class PotionDivine
|
||||
extends Potion {
|
||||
public static PotionDivine potion;
|
||||
static final ResourceLocation res;
|
||||
|
||||
public PotionDivine(int p_i1573_1_, boolean p_i1573_2_, int p_i1573_3_) {
|
||||
super(p_i1573_1_, p_i1573_2_, p_i1573_3_);
|
||||
this.func_76390_b("potion.divine");
|
||||
}
|
||||
|
||||
public static void init() {
|
||||
potion.func_76399_b(0, 0);
|
||||
}
|
||||
|
||||
@SideOnly(value=Side.CLIENT)
|
||||
public int func_76392_e() {
|
||||
Minecraft.func_71410_x().field_71446_o.func_110577_a(res);
|
||||
return super.func_76392_e();
|
||||
}
|
||||
|
||||
public void func_76394_a(EntityLivingBase p_76394_1_, int p_76394_2_) {
|
||||
p_76394_1_.func_70097_a(new DamageSource("divine").func_82726_p().func_76351_m().func_76348_h(), 3.0f);
|
||||
}
|
||||
|
||||
public boolean func_76397_a(int p_76397_1_, int p_76397_2_) {
|
||||
int k = 25 >> p_76397_2_;
|
||||
return k > 0 ? p_76397_1_ % k == 0 : true;
|
||||
}
|
||||
|
||||
static {
|
||||
res = new ResourceLocation("lostblade", "textures/misc/potion.png");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.relauncher.Side
|
||||
* cpw.mods.fml.relauncher.SideOnly
|
||||
* net.minecraft.client.Minecraft
|
||||
* net.minecraft.entity.EntityLivingBase
|
||||
* net.minecraft.potion.Potion
|
||||
* net.minecraft.util.ResourceLocation
|
||||
*/
|
||||
package com.tanzanite.potion;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.potion.Potion;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class PotionHide
|
||||
extends Potion {
|
||||
public static PotionHide potion;
|
||||
static final ResourceLocation res;
|
||||
|
||||
public PotionHide(int p_i1573_1_, boolean p_i1573_2_, int p_i1573_3_) {
|
||||
super(p_i1573_1_, p_i1573_2_, p_i1573_3_);
|
||||
this.func_76390_b("potion.hide");
|
||||
}
|
||||
|
||||
public static void init() {
|
||||
potion.func_76399_b(1, 0);
|
||||
}
|
||||
|
||||
@SideOnly(value=Side.CLIENT)
|
||||
public int func_76392_e() {
|
||||
Minecraft.func_71410_x().field_71446_o.func_110577_a(res);
|
||||
return super.func_76392_e();
|
||||
}
|
||||
|
||||
public void func_76394_a(EntityLivingBase entity, int i) {
|
||||
}
|
||||
|
||||
static {
|
||||
res = new ResourceLocation("lostblade", "textures/misc/potion.png");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cpw.mods.fml.client.registry.RenderingRegistry
|
||||
* 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 com.tanzanite.proxy;
|
||||
|
||||
import com.tanzanite.SA.entities.EntityDriveAlt;
|
||||
import com.tanzanite.SA.entities.EntityDriveBurst;
|
||||
import com.tanzanite.SA.entities.EntityDriveCure;
|
||||
import com.tanzanite.SA.render.RenderDriveAlt;
|
||||
import com.tanzanite.SA.render.RenderDriveBurst;
|
||||
import com.tanzanite.SA.render.RenderDriveCure;
|
||||
import com.tanzanite.proxy.CommonProxy;
|
||||
import cpw.mods.fml.client.registry.RenderingRegistry;
|
||||
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.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();
|
||||
MinecraftForgeClient.registerItemRenderer((Item)CommonProxy.Yinsezidan, (IItemRenderer)renderer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init(FMLInitializationEvent event) {
|
||||
super.init(event);
|
||||
RenderingRegistry.registerEntityRenderingHandler(EntityDriveAlt.class, (Render)new RenderDriveAlt());
|
||||
RenderingRegistry.registerEntityRenderingHandler(EntityDriveCure.class, (Render)new RenderDriveCure());
|
||||
RenderingRegistry.registerEntityRenderingHandler(EntityDriveBurst.class, (Render)new RenderDriveBurst());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void postInit(FMLPostInitializationEvent event) {
|
||||
super.postInit(event);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* 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
|
||||
* mods.flammpfeil.slashblade.SlashBlade
|
||||
* net.minecraft.item.Item
|
||||
* net.minecraft.item.Item$ToolMaterial
|
||||
*/
|
||||
package com.tanzanite.proxy;
|
||||
|
||||
import com.tanzanite.Lostblade;
|
||||
import com.tanzanite.SA.entities.EntityDriveAlt;
|
||||
import com.tanzanite.SA.entities.EntityDriveBurst;
|
||||
import com.tanzanite.SA.entities.EntityDriveCure;
|
||||
import com.tanzanite.abilities.VampireSlayer;
|
||||
import com.tanzanite.blade.Administrator;
|
||||
import com.tanzanite.blade.Changong;
|
||||
import com.tanzanite.blade.Qianyu;
|
||||
import com.tanzanite.blade.Wulixueshengjian;
|
||||
import com.tanzanite.blade.Yinsezidan;
|
||||
import com.tanzanite.blade.Yuyin;
|
||||
import com.tanzanite.blade.Zhanyue;
|
||||
import com.tanzanite.loader.BlockLoader;
|
||||
import com.tanzanite.loader.CraftingLoader;
|
||||
import com.tanzanite.loader.CreativeTabsLoader;
|
||||
import com.tanzanite.loader.EventLoader;
|
||||
import com.tanzanite.loader.ItemLoader;
|
||||
import com.tanzanite.loader.OreDicLoader;
|
||||
import com.tanzanite.loader.PotionLoader;
|
||||
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 mods.flammpfeil.slashblade.SlashBlade;
|
||||
import net.minecraft.item.Item;
|
||||
|
||||
public class CommonProxy {
|
||||
public static Item Yinsezidan;
|
||||
|
||||
public void preInit(FMLPreInitializationEvent event) {
|
||||
new CreativeTabsLoader(event);
|
||||
new ItemLoader(event);
|
||||
new BlockLoader(event);
|
||||
new OreDicLoader(event);
|
||||
PotionLoader.init();
|
||||
if (Loader.isModLoaded((String)"flammpfeil.slashblade.kirisaya")) {
|
||||
SlashBlade.InitEventBus.register((Object)new Administrator());
|
||||
}
|
||||
if (Loader.isModLoaded((String)"flammpfeil.fluorescentbar")) {
|
||||
SlashBlade.InitEventBus.register((Object)new Wulixueshengjian());
|
||||
}
|
||||
if (Loader.isModLoaded((String)"vampirism")) {
|
||||
Yinsezidan = new VampireSlayer(Item.ToolMaterial.IRON, 7.0f).func_111206_d("flammpfeil.slashblade:proudsoul");
|
||||
GameRegistry.registerItem((Item)Yinsezidan, (String)"Yinsezidan");
|
||||
SlashBlade.InitEventBus.register((Object)new Yinsezidan());
|
||||
}
|
||||
SlashBlade.InitEventBus.register((Object)new Yuyin());
|
||||
SlashBlade.InitEventBus.register((Object)new Qianyu());
|
||||
SlashBlade.InitEventBus.register((Object)new Changong());
|
||||
SlashBlade.InitEventBus.register((Object)new Zhanyue());
|
||||
SlashBlade.InitEventBus.register((Object)Lostblade.instance);
|
||||
EntityRegistry.registerModEntity(EntityDriveAlt.class, (String)"DriveAlt", (int)2301, (Object)Lostblade.instance, (int)250, (int)1, (boolean)true);
|
||||
EntityRegistry.registerModEntity(EntityDriveCure.class, (String)"DriveCure", (int)2302, (Object)Lostblade.instance, (int)250, (int)1, (boolean)true);
|
||||
EntityRegistry.registerModEntity(EntityDriveBurst.class, (String)"DriveBurst", (int)2303, (Object)Lostblade.instance, (int)250, (int)1, (boolean)true);
|
||||
}
|
||||
|
||||
public void init(FMLInitializationEvent event) {
|
||||
new CraftingLoader();
|
||||
new EventLoader();
|
||||
}
|
||||
|
||||
public void postInit(FMLPostInitializationEvent event) {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* net.minecraft.block.Block
|
||||
* net.minecraft.init.Blocks
|
||||
* net.minecraft.world.World
|
||||
* net.minecraft.world.gen.feature.WorldGenAbstractTree
|
||||
*/
|
||||
package com.tanzanite.worldgen;
|
||||
|
||||
import com.tanzanite.loader.BlockLoader;
|
||||
import java.util.Random;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.gen.feature.WorldGenAbstractTree;
|
||||
|
||||
public class WorldGenProudSoulTree
|
||||
extends WorldGenAbstractTree {
|
||||
int type;
|
||||
|
||||
public WorldGenProudSoulTree(boolean par1) {
|
||||
this(par1, 15);
|
||||
}
|
||||
|
||||
public WorldGenProudSoulTree(boolean par1, int dmg) {
|
||||
super(par1);
|
||||
this.type = dmg;
|
||||
}
|
||||
|
||||
public boolean func_76484_a(World world, Random random, int posX, int posY, int posZ) {
|
||||
int l = random.nextInt(3) + 4;
|
||||
boolean flag = true;
|
||||
if (posY < 1 || posY + l + 1 > 128) {
|
||||
return false;
|
||||
}
|
||||
for (int i1 = posY; i1 <= posY + 1 + l; ++i1) {
|
||||
int byte0 = 1;
|
||||
if (i1 == posY) {
|
||||
byte0 = 0;
|
||||
}
|
||||
if (i1 >= posY + 1 + l - 2) {
|
||||
byte0 = 2;
|
||||
}
|
||||
for (int i2 = posX - byte0; i2 <= posX + byte0 && flag; ++i2) {
|
||||
for (int l2 = posZ - byte0; l2 <= posZ + byte0 && flag; ++l2) {
|
||||
if (i1 >= 0) {
|
||||
world.getClass();
|
||||
if (i1 < 128) {
|
||||
Block j3 = world.func_147439_a(i2, i1, l2);
|
||||
if (j3 == Blocks.field_150350_a || j3 == BlockLoader.ProudSoulLeaves) continue;
|
||||
flag = false;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
flag = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!flag) {
|
||||
return false;
|
||||
}
|
||||
Block j1 = world.func_147439_a(posX, posY - 1, posZ);
|
||||
if (j1 != Blocks.field_150349_c && j1 != Blocks.field_150346_d && posY >= 128 - l - 1) {
|
||||
return false;
|
||||
}
|
||||
world.func_147465_d(posX, posY - 1, posZ, Blocks.field_150346_d, 0, 3);
|
||||
for (int k1 = posY - 3 + l; k1 <= posY + l; ++k1) {
|
||||
int j2 = k1 - (posY + l);
|
||||
int i3 = 1 - j2 / 2;
|
||||
for (int k3 = posX - i3; k3 <= posX + i3; ++k3) {
|
||||
int l3 = k3 - posX;
|
||||
for (int i4 = posZ - i3; i4 <= posZ + i3; ++i4) {
|
||||
int j4 = i4 - posZ;
|
||||
if (Math.abs(l3) == i3 && Math.abs(j4) == i3 && (random.nextInt(2) == 0 || j2 == 0) || world.func_147439_a(k3, k1, i4).func_149662_c()) continue;
|
||||
world.func_147465_d(k3, k1, i4, BlockLoader.ProudSoulLeaves, this.type, 3);
|
||||
}
|
||||
}
|
||||
}
|
||||
for (int l1 = 0; l1 < l; ++l1) {
|
||||
Block k2 = world.func_147439_a(posX, posY + l1, posZ);
|
||||
if (k2 != Blocks.field_150350_a && k2 != BlockLoader.ProudSoulLeaves) continue;
|
||||
world.func_147465_d(posX, posY + l1, posZ, BlockLoader.ProudSoulLog, 0, 3);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
Summary for /Users/yudiwang/TDLM/5fu/mods/[BD]遗忘Lostblade-1.0.0.jar
|
||||
Decompiled with CFR 0.152
|
||||
|
After Width: | Height: | Size: 190 KiB |
|
After Width: | Height: | Size: 116 KiB |
|
After Width: | Height: | Size: 49 KiB |
|
After Width: | Height: | Size: 106 KiB |
|
After Width: | Height: | Size: 56 KiB |
|
After Width: | Height: | Size: 596 KiB |
|
After Width: | Height: | Size: 56 KiB |
|
After Width: | Height: | Size: 99 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 98 KiB |
|
After Width: | Height: | Size: 98 KiB |
|
After Width: | Height: | Size: 101 KiB |
|
After Width: | Height: | Size: 93 KiB |
|
After Width: | Height: | Size: 96 KiB |
|
After Width: | Height: | Size: 103 KiB |
|
After Width: | Height: | Size: 101 KiB |
|
After Width: | Height: | Size: 346 KiB |
|
After Width: | Height: | Size: 43 KiB |
|
After Width: | Height: | Size: 476 KiB |
@@ -0,0 +1,133 @@
|
||||
# Created by Metasequoia
|
||||
|
||||
mtllib ÎíŇţ.mtl
|
||||
|
||||
v 0.000000 55.656200 4.000000
|
||||
v 0.000000 70.710701 0.000000
|
||||
v 70.710701 0.000000 0.000000
|
||||
v 55.656200 0.000000 4.000000
|
||||
v 0.000000 -70.710602 0.000000
|
||||
v 0.000000 -55.656101 4.000000
|
||||
v -70.710701 0.000000 0.000000
|
||||
v -55.656101 0.000000 4.000000
|
||||
v 0.000000 55.656200 -4.000000
|
||||
v 55.656200 0.000000 -4.000000
|
||||
v 0.000000 -55.656101 -4.000000
|
||||
v -55.656101 0.000000 -4.000000
|
||||
v 0.000000 55.656200 4.000000
|
||||
v 0.000000 70.710701 0.000000
|
||||
v 70.710701 0.000000 0.000000
|
||||
v 55.656200 0.000000 4.000000
|
||||
v 0.000000 -70.710602 0.000000
|
||||
v 0.000000 -55.656101 4.000000
|
||||
v -70.710701 0.000000 0.000000
|
||||
v -55.656101 0.000000 4.000000
|
||||
v 0.000000 55.656200 -4.000000
|
||||
v 55.656200 0.000000 -4.000000
|
||||
v 0.000000 -55.656101 -4.000000
|
||||
v -55.656101 0.000000 -4.000000
|
||||
v 0.000000 55.656200 4.000000
|
||||
v 0.000000 70.710701 0.000000
|
||||
v 70.710701 0.000000 0.000000
|
||||
v 55.656200 0.000000 4.000000
|
||||
v 0.000000 -70.710602 0.000000
|
||||
v 0.000000 -55.656101 4.000000
|
||||
v -70.710701 0.000000 0.000000
|
||||
v -55.656101 0.000000 4.000000
|
||||
v 0.000000 55.656200 -4.000000
|
||||
v 55.656200 0.000000 -4.000000
|
||||
v 0.000000 -55.656101 -4.000000
|
||||
v -55.656101 0.000000 -4.000000
|
||||
# 36 vertices
|
||||
|
||||
vt 0.09136 0.93623
|
||||
vt 0.08389 0.94327
|
||||
vt 0.10630 0.94327
|
||||
vt 0.09883 0.93623
|
||||
vt 0.10630 0.92214
|
||||
vt 0.09883 0.92918
|
||||
vt 0.08389 0.92214
|
||||
vt 0.09136 0.92918
|
||||
vt 1.20160 0.48013
|
||||
vt 0.53962 -0.15581
|
||||
vt -0.12236 0.48013
|
||||
vt 0.50291 1.11585
|
||||
vt 0.10630 0.91508
|
||||
vt 0.08389 0.91508
|
||||
vt 0.09136 0.90803
|
||||
vt 0.09883 0.90803
|
||||
vt 0.10630 0.89393
|
||||
vt 0.09883 0.90099
|
||||
vt 0.08389 0.89393
|
||||
vt 0.09136 0.90099
|
||||
# 20 texture vertices
|
||||
|
||||
vn 0.00000 0.00000 0.00000
|
||||
# 1 normal vertices
|
||||
|
||||
g item_blade
|
||||
usemtl mat1
|
||||
f 3/3/1 2/2/1 1/1/1
|
||||
f 4/4/1 3/3/1 1/1/1
|
||||
f 5/5/1 3/3/1 4/4/1
|
||||
f 6/6/1 5/5/1 4/4/1
|
||||
f 7/7/1 5/5/1 6/6/1
|
||||
f 8/8/1 7/7/1 6/6/1
|
||||
f 2/2/1 7/7/1 8/8/1
|
||||
f 1/1/1 2/2/1 8/8/1
|
||||
f 8/11/1 6/10/1 4/9/1
|
||||
f 1/12/1 8/11/1 4/9/1
|
||||
f 9/15/1 2/14/1 3/13/1
|
||||
f 10/16/1 9/15/1 3/13/1
|
||||
f 10/16/1 3/13/1 5/17/1
|
||||
f 11/18/1 10/16/1 5/17/1
|
||||
f 11/18/1 5/17/1 7/19/1
|
||||
f 12/20/1 11/18/1 7/19/1
|
||||
f 12/20/1 7/19/1 2/14/1
|
||||
f 9/15/1 12/20/1 2/14/1
|
||||
f 10/9/1 11/10/1 12/11/1
|
||||
f 9/12/1 10/9/1 12/11/1
|
||||
g item_damaged
|
||||
f 15/3/1 14/2/1 13/1/1
|
||||
f 16/4/1 15/3/1 13/1/1
|
||||
f 17/5/1 15/3/1 16/4/1
|
||||
f 18/6/1 17/5/1 16/4/1
|
||||
f 19/7/1 17/5/1 18/6/1
|
||||
f 20/8/1 19/7/1 18/6/1
|
||||
f 14/2/1 19/7/1 20/8/1
|
||||
f 13/1/1 14/2/1 20/8/1
|
||||
f 20/11/1 18/10/1 16/9/1
|
||||
f 13/12/1 20/11/1 16/9/1
|
||||
f 21/15/1 14/14/1 15/13/1
|
||||
f 22/16/1 21/15/1 15/13/1
|
||||
f 22/16/1 15/13/1 17/17/1
|
||||
f 23/18/1 22/16/1 17/17/1
|
||||
f 23/18/1 17/17/1 19/19/1
|
||||
f 24/20/1 23/18/1 19/19/1
|
||||
f 24/20/1 19/19/1 14/14/1
|
||||
f 21/15/1 24/20/1 14/14/1
|
||||
f 22/9/1 23/10/1 24/11/1
|
||||
f 21/12/1 22/9/1 24/11/1
|
||||
g item_bladens
|
||||
f 27/3/1 26/2/1 25/1/1
|
||||
f 28/4/1 27/3/1 25/1/1
|
||||
f 29/5/1 27/3/1 28/4/1
|
||||
f 30/6/1 29/5/1 28/4/1
|
||||
f 31/7/1 29/5/1 30/6/1
|
||||
f 32/8/1 31/7/1 30/6/1
|
||||
f 26/2/1 31/7/1 32/8/1
|
||||
f 25/1/1 26/2/1 32/8/1
|
||||
f 32/11/1 30/10/1 28/9/1
|
||||
f 25/12/1 32/11/1 28/9/1
|
||||
f 33/15/1 26/14/1 27/13/1
|
||||
f 34/16/1 33/15/1 27/13/1
|
||||
f 34/16/1 27/13/1 29/17/1
|
||||
f 35/18/1 34/16/1 29/17/1
|
||||
f 35/18/1 29/17/1 31/19/1
|
||||
f 36/20/1 35/18/1 31/19/1
|
||||
f 36/20/1 31/19/1 26/14/1
|
||||
f 33/15/1 36/20/1 26/14/1
|
||||
f 34/9/1 35/10/1 36/11/1
|
||||
f 33/12/1 34/9/1 36/11/1
|
||||
# 60 elements
|
||||
|
||||
|
After Width: | Height: | Size: 8.5 KiB |
@@ -0,0 +1,60 @@
|
||||
|
||||
item.flammpfeil.slashblade.named.administrator.name=§7§oAdministrator Blade
|
||||
item.flammpfeil.slashblade.named.wulixueshengjian.name=§0§lCrowbar
|
||||
item.flammpfeil.slashblade.named.yinsezidan.name=§f§oVampireSlayer
|
||||
item.flammpfeil.slashblade.named.yuyin.name=§1§oYuyin Blade
|
||||
item.flammpfeil.slashblade.named.qianyu.name=§4§oQianyu Blade
|
||||
item.flammpfeil.slashblade.named.changong.name=§9§oChangong Blade
|
||||
item.flammpfeil.slashblade.named.zangetsu.name=§oZangetsu
|
||||
|
||||
flammpfeil.slashblade.specialattack.SAdelete=Delete
|
||||
flammpfeil.slashblade.specialattack.SAhomerun=Homerun
|
||||
flammpfeil.slashblade.specialattack.SAvampireSlayer=DivineNuke
|
||||
flammpfeil.slashblade.specialattack.SAcureWave=CureWave
|
||||
flammpfeil.slashblade.specialattack.SAdragonBurst=DragonBurst
|
||||
flammpfeil.slashblade.specialattack.SAlunarPrayer=LunarPrayer
|
||||
flammpfeil.slashblade.specialattack.SAcrescentMoon=CrescentMoon
|
||||
|
||||
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.administrator=§7§oAdministrator Blade
|
||||
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.administrator.desc=§8§l§oI have finally gotten the strongest blade in this game!!!<br> Is that true?
|
||||
|
||||
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.wulixueshengjian=§0§lCrowbar
|
||||
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.wulixueshengjian.desc=§8§l§oA normal blade.<br> Even though it is hard enough.<br> But is there anything strange?
|
||||
|
||||
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.yinsezidan=§f§oVampireSlayer
|
||||
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.yinsezidan.desc=§8§l§oA blade from the last vampire slayer.<br> Thousands of vampires have been slain by this blade.
|
||||
|
||||
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.qianyu=§4§oQianyu Blade
|
||||
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.qianyu.desc=§8§l§oA blade from the leader of modders group
|
||||
|
||||
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.changong=§9§oChangong Blade
|
||||
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.changong.desc=§8§l§oA blade from the photographer of modders group
|
||||
|
||||
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.yuyin=§1§oYuyin Blade
|
||||
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.yuyin.desc=§8§l§oA blade from a member of modders group
|
||||
|
||||
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.zangetsu=§oZangetsu
|
||||
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.zangetsu.desc=§8§l§oA blade from Kurosaki Ichigo
|
||||
|
||||
itemGroup.tabLostblade=LostBlade Materials
|
||||
|
||||
item.WaterGem.name=WaterGem
|
||||
item.DragonGem.name=DragonGem
|
||||
item.IceGem.name=IceGem
|
||||
item.SoulIngot.name=SoulIngot
|
||||
item.SoulCrystal.name=SoulCrystal
|
||||
|
||||
potion.divine=Divine
|
||||
potion.hide=Hide
|
||||
|
||||
tile.ProudSoulLeaves.name=ProudSoulLeaves
|
||||
tile.ProudSoulLog.name=ProudSoulLog
|
||||
tile.ProudSoulSampling.name=ProudSoulSampling
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
|
||||
item.flammpfeil.slashblade.named.administrator.name=§7§o管理员之刃「伪物」
|
||||
item.flammpfeil.slashblade.named.wulixueshengjian.name=§0§l名刀「物理学圣剑」
|
||||
item.flammpfeil.slashblade.named.yinsezidan.name=§f§o圣剑「银弹」
|
||||
item.flammpfeil.slashblade.named.yuyin.name=§1§o铭刀「鱼音」
|
||||
item.flammpfeil.slashblade.named.qianyu.name=§4§o铭刀「悭臾」
|
||||
item.flammpfeil.slashblade.named.changong.name=§9§o铭刀「蟾宫」
|
||||
item.flammpfeil.slashblade.named.zangetsu.name=§o现世刀「斩月」
|
||||
|
||||
flammpfeil.slashblade.specialattack.SAdelete=数据抹除
|
||||
flammpfeil.slashblade.specialattack.SAhomerun=星落打
|
||||
flammpfeil.slashblade.specialattack.SAvampireSlayer=圣耀
|
||||
flammpfeil.slashblade.specialattack.SAcureWave=治愈波动
|
||||
flammpfeil.slashblade.specialattack.SAdragonBurst=断魂龙啸
|
||||
flammpfeil.slashblade.specialattack.SAlunarPrayer=月祈
|
||||
flammpfeil.slashblade.specialattack.SAcrescentMoon=月牙天冲
|
||||
|
||||
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.administrator=§7§o管理员之刃「伪物」
|
||||
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.administrator.desc=§8§l§o我终于做成了游戏中的最强之刃!!!<br>吗?
|
||||
|
||||
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.wulixueshengjian=§0§l名刀「物理学圣剑」
|
||||
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.wulixueshengjian.desc=§8§l§o众星之中随手铸成的太刀的原型<br>虽感到刀的硬度极佳<br>但似乎有什么不对?
|
||||
|
||||
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.yinsezidan=§f§o圣剑「银弹」
|
||||
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.yinsezidan.desc=§8§l§o最后一名吸血鬼猎杀小组成员的随身佩剑<br>剑锋上嘶嚎着无数吸血鬼的亡魂
|
||||
|
||||
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.qianyu=§4§o铭刀「悭臾」
|
||||
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.qianyu.desc=§8§l§o今夕为水虺<br>明朝化应龙
|
||||
|
||||
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.changong=§9§o铭刀「蟾宫」
|
||||
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.changong.desc=§8§l§o愿艾露恩赐予我力量...<br>没叫你拿雷劈我!
|
||||
|
||||
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.yuyin=§1§o铭刀「鱼音」
|
||||
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.yuyin.desc=§8§l§o本小组中最能鸽子的成员<br>但是是个崩崩崩的好手
|
||||
|
||||
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.zangetsu=§o现世刀「斩月」
|
||||
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.zangetsu.desc=斩月在手<br>天下我有<br>§8§l§o前提你是一护
|
||||
|
||||
itemGroup.tabLostblade=遗忘之刃材料
|
||||
|
||||
item.WaterGem.name=寒月石
|
||||
item.DragonGem.name=宿龙血晶
|
||||
item.IceGem.name=极冰
|
||||
item.SoulIngot.name=淬魂钢
|
||||
item.SoulCrystal.name=缚魂晶
|
||||
|
||||
potion.divine=净化
|
||||
potion.hide=雾隐
|
||||
|
||||
tile.ProudSoulLeaves.name=英灵木树叶
|
||||
tile.ProudSoulLog.name=英灵木树干
|
||||
tile.ProudSoulSampling.name=英灵木树苗
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"homerun": {"category": "master","sounds": ["homerun"]}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1012 B |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 676 B |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 1.8 KiB |