Initial decompiled source import

This commit is contained in:
hcs61256cs committed 2026-07-08 17:18:31 +08:00
commit 6471ccd8bd
87 files changed
+290785

No files matched your search

@@ -0,0 +1,33 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.common.event.FMLInitializationEvent
* cpw.mods.fml.common.event.FMLPostInitializationEvent
* cpw.mods.fml.common.event.FMLPreInitializationEvent
*/
package Fish.mods.slashblade;
import Fish.mods.slashblade.CommonProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
public class ClientProxy
extends CommonProxy {
@Override
public void preInit(FMLPreInitializationEvent event) {
super.preInit(event);
}
@Override
public void init(FMLInitializationEvent event) {
super.init(event);
}
@Override
public void postInit(FMLPostInitializationEvent event) {
super.postInit(event);
}
}
@@ -0,0 +1,61 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.common.event.FMLInitializationEvent
* cpw.mods.fml.common.event.FMLPostInitializationEvent
* cpw.mods.fml.common.event.FMLPreInitializationEvent
* mods.flammpfeil.slashblade.SlashBlade
*/
package Fish.mods.slashblade;
import Fish.mods.slashblade.black.Black_Blade;
import Fish.mods.slashblade.black.Blade1;
import Fish.mods.slashblade.black.Blade2;
import Fish.mods.slashblade.black.Blade3;
import Fish.mods.slashblade.black.Dimension;
import Fish.mods.slashblade.black.Dragon_Blade;
import Fish.mods.slashblade.black.Empty_Blade;
import Fish.mods.slashblade.black.Heitong;
import Fish.mods.slashblade.black.King_Blade;
import Fish.mods.slashblade.black.Kuma_Sakura;
import Fish.mods.slashblade.black.Magic_Blade;
import Fish.mods.slashblade.black.Purples_Blade;
import Fish.mods.slashblade.black.Soul_Blade;
import Fish.mods.slashblade.black.Vitex;
import Fish.mods.slashblade.black.White_Blade;
import Fish.mods.slashblade.black.X_Blades;
import Fish.mods.slashblade.black.latant;
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.SlashBlade;
public class CommonProxy {
public void preInit(FMLPreInitializationEvent event) {
SlashBlade.InitEventBus.register(new X_Blades());
SlashBlade.InitEventBus.register(new White_Blade());
SlashBlade.InitEventBus.register(new Magic_Blade());
SlashBlade.InitEventBus.register(new latant());
SlashBlade.InitEventBus.register(new Black_Blade());
SlashBlade.InitEventBus.register(new Dragon_Blade());
SlashBlade.InitEventBus.register(new Purples_Blade());
SlashBlade.InitEventBus.register(new Dimension());
SlashBlade.InitEventBus.register(new Kuma_Sakura());
SlashBlade.InitEventBus.register(new Vitex());
SlashBlade.InitEventBus.register(new King_Blade());
SlashBlade.InitEventBus.register(new Soul_Blade());
SlashBlade.InitEventBus.register(new Empty_Blade());
SlashBlade.InitEventBus.register(new Blade3());
SlashBlade.InitEventBus.register(new Blade2());
SlashBlade.InitEventBus.register(new Blade1());
SlashBlade.InitEventBus.register(new Heitong());
}
public void init(FMLInitializationEvent event) {
}
public void postInit(FMLPostInitializationEvent event) {
}
}
@@ -0,0 +1,51 @@
/*
* 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
* cpw.mods.fml.common.registry.EntityRegistry
*/
package Fish.mods.slashblade;
import Fish.mods.slashblade.CommonProxy;
import Fish.mods.slashblade.SA.entity.EntityNoFireLightningBolt;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.registry.EntityRegistry;
@Mod(modid="Pseudo", name="Pseudo", version="1.0.0", dependencies="required-after:flammpfeil.slashblade")
public class DeadWork {
public static final String MODID = "Pseudo";
public static final String NAME = "Pseudo";
public static final String VERSION = "1.0.0";
@Mod.Instance(value="Pseudo")
public static DeadWork instance;
@SidedProxy(clientSide="Fish.mods.slashblade.ClientProxy", serverSide="Fish.mods.slashblade.CommonProxy")
public static CommonProxy proxy;
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event) {
EntityRegistry.registerModEntity(EntityNoFireLightningBolt.class, (String)"NoFireLigntningBolt2", (int)3, this, (int)250, (int)1, (boolean)true);
proxy.preInit(event);
}
@Mod.EventHandler
public void init(FMLInitializationEvent event) {
proxy.init(event);
}
@Mod.EventHandler
public void postInit(FMLPostInitializationEvent event) {
proxy.postInit(event);
}
}
@@ -0,0 +1,120 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.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.enchantment.Enchantment
* net.minecraft.enchantment.EnchantmentHelper
* net.minecraft.entity.Entity
* net.minecraft.entity.EntityLivingBase
* net.minecraft.entity.player.EntityPlayer
* net.minecraft.item.ItemStack
* net.minecraft.nbt.NBTTagCompound
* net.minecraft.util.AxisAlignedBB
* net.minecraft.util.Vec3
* net.minecraft.world.World
*/
package Fish.mods.slashblade.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.enchantment.Enchantment;
import net.minecraft.enchantment.EnchantmentHelper;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.Vec3;
import net.minecraft.world.World;
public class SA_1
extends SpecialAttackBase {
public String toString() {
return "SA_1";
}
public void doSpacialAttack(ItemStack stack, EntityPlayer player) {
World world = player.worldObj;
NBTTagCompound tag = ItemSlashBlade.getItemTagCompound((ItemStack)stack);
if (!world.isRemote) {
Entity tmp;
ItemSlashBlade blade = (ItemSlashBlade)stack.getItem();
Entity target = null;
int entityId = ItemSlashBlade.TargetEntityId.get(tag);
if (entityId != 0 && (tmp = world.getEntityByID(entityId)) != null && tmp.getDistanceToEntity((Entity)player) < 30.0f) {
target = tmp;
}
if (target == null) {
target = this.getEntityToWatch(player);
}
if (target != null) {
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.SlashDim);
int cost = -30;
if (!ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(-30), 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.onCriticalHit(target);
target.motionX = 0.0;
target.motionY = 0.0;
target.motionZ = 0.0;
if (target instanceof EntityLivingBase) {
blade.setDaunting((EntityLivingBase)target);
((EntityLivingBase)target).hurtTime = 0;
((EntityLivingBase)target).hurtResistantTime = 0;
}
int level = EnchantmentHelper.getEnchantmentLevel((int)Enchantment.power.effectId, (ItemStack)stack);
float magicDamage = 5.0f + ItemSlashBlade.AttackAmplifier.get(tag).floatValue() * ((float)level / 3.0f);
int count = 1 + StylishRankManager.getStylishRank((Entity)player);
for (int i = 0; i < count; ++i) {
if (world.isRemote) continue;
boolean isBurst = i % 2 == 0;
EntityWitherSword entityDrive = new EntityWitherSword(world, (EntityLivingBase)player, magicDamage, 90.0f);
if (entityDrive == null) continue;
entityDrive.setInterval(7 + i * 2);
entityDrive.setLifeTime(30);
int color = isBurst ? 0 : 0;
entityDrive.setColor(color);
entityDrive.setBurst(isBurst);
entityDrive.setTargetEntityId(target.getEntityId());
world.spawnEntityInWorld((Entity)entityDrive);
}
}
}
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.Kiriorosi);
}
private Entity getEntityToWatch(EntityPlayer player) {
World world = player.worldObj;
Entity target = null;
for (int dist = 2; dist < 20; dist += 2) {
AxisAlignedBB bb = player.boundingBox.copy();
Vec3 vec = player.getLookVec();
vec = vec.normalize();
bb = bb.expand(2.0, 0.25, 2.0);
bb = bb.offset(vec.xCoord * (double)dist, vec.yCoord * (double)dist, vec.zCoord * (double)dist);
List<Entity> list = world.getEntitiesWithinAABBExcludingEntity((Entity)player, bb, ItemSlashBlade.AttackableSelector);
float distance = 50.0f;
for (Entity curEntity : list) {
float curDist = curEntity.getDistanceToEntity((Entity)player);
if (!(curDist < distance)) continue;
target = curEntity;
distance = curDist;
}
if (target != null) break;
}
return target;
}
}
@@ -0,0 +1,353 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* mods.flammpfeil.slashblade.EntityDrive
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ItemSlashBlade$ComboSequence
* mods.flammpfeil.slashblade.ItemSlashBlade$SwordType
* mods.flammpfeil.slashblade.ability.StylishRankManager
* mods.flammpfeil.slashblade.ability.StylishRankManager$AttackTypes
* mods.flammpfeil.slashblade.ability.UntouchableTime
* mods.flammpfeil.slashblade.entity.EntityJudgmentCutManager
* mods.flammpfeil.slashblade.entity.EntitySlashDimension
* mods.flammpfeil.slashblade.specialattack.IJustSpecialAttack
* mods.flammpfeil.slashblade.specialattack.ISuperSpecialAttack
* mods.flammpfeil.slashblade.specialattack.SpecialAttackBase
* net.minecraft.block.Block
* net.minecraft.enchantment.Enchantment
* net.minecraft.enchantment.EnchantmentHelper
* net.minecraft.entity.Entity
* net.minecraft.entity.EntityLivingBase
* net.minecraft.entity.player.EntityPlayer
* net.minecraft.item.ItemStack
* net.minecraft.nbt.NBTTagCompound
* net.minecraft.util.AxisAlignedBB
* net.minecraft.util.MathHelper
* net.minecraft.util.MovingObjectPosition
* net.minecraft.util.MovingObjectPosition$MovingObjectType
* net.minecraft.util.Vec3
* net.minecraft.world.World
*/
package Fish.mods.slashblade.SA;
import Fish.mods.slashblade.SA.entity.EntityPhantomSwordEx;
import java.util.EnumSet;
import java.util.List;
import mods.flammpfeil.slashblade.EntityDrive;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.ability.StylishRankManager;
import mods.flammpfeil.slashblade.ability.UntouchableTime;
import mods.flammpfeil.slashblade.entity.EntityJudgmentCutManager;
import mods.flammpfeil.slashblade.entity.EntitySlashDimension;
import mods.flammpfeil.slashblade.specialattack.IJustSpecialAttack;
import mods.flammpfeil.slashblade.specialattack.ISuperSpecialAttack;
import mods.flammpfeil.slashblade.specialattack.SpecialAttackBase;
import net.minecraft.block.Block;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.enchantment.EnchantmentHelper;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.MathHelper;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.util.Vec3;
import net.minecraft.world.World;
public class SA_11
extends SpecialAttackBase
implements IJustSpecialAttack,
ISuperSpecialAttack {
public static String AttackType = StylishRankManager.AttackTypes.registerAttackType((String)"SA_11", (float)0.5f);
public String toString() {
return "SA_11";
}
public void doSpacialAttack(ItemStack stack, EntityPlayer player) {
Entity tmp;
World world = player.worldObj;
NBTTagCompound tag = ItemSlashBlade.getItemTagCompound((ItemStack)stack);
Entity target = null;
int entityId = ItemSlashBlade.TargetEntityId.get(tag);
if (entityId != 0 && (tmp = world.getEntityByID(entityId)) != null && tmp.getDistanceToEntity((Entity)player) < 30.0f) {
target = tmp;
}
if (target == null) {
target = this.getEntityToWatch(player);
}
if (target == null) {
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.SlashDim);
player.playSound("mob.endermen.portal", 0.5f, 1.0f);
int cost = -20;
if (!ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(-20), false)) {
ItemSlashBlade.damageItem((ItemStack)stack, (int)10, (EntityLivingBase)player);
}
if (!player.worldObj.isRemote) {
int level = EnchantmentHelper.getEnchantmentLevel((int)Enchantment.power.effectId, (ItemStack)stack);
float magicDamage = 1.0f + ItemSlashBlade.AttackAmplifier.get(tag).floatValue() * (0.5f + (float)level / 5.0f);
EntitySlashDimension dim = new EntitySlashDimension(world, (EntityLivingBase)player, magicDamage);
if (dim != null) {
Vec3 tmppos;
Block block;
Vec3 pos = player.getLookVec();
float scale = 5.0f;
pos.xCoord *= (double)scale;
pos.yCoord *= (double)scale;
pos.zCoord *= (double)scale;
pos = pos.addVector(player.posX, player.posY, player.posZ);
pos = pos.addVector(0.0, (double)player.getEyeHeight(), 0.0);
Vec3 offset = Vec3.createVectorHelper((double)player.posX, (double)player.posY, (double)player.posZ).addVector(0.0, (double)player.getEyeHeight(), 0.0);
Vec3 look = player.getLookVec();
Vec3 offsettedLook = offset.addVector(look.xCoord * 5.0, look.yCoord * 5.0, look.zCoord * 5.0);
MovingObjectPosition movingobjectposition = world.rayTraceBlocks(offset, offsettedLook);
if (movingobjectposition != null && movingobjectposition.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK && (block = world.getBlock(movingobjectposition.blockX, movingobjectposition.blockY, movingobjectposition.blockZ)) != null && block.isCollidable() && 1.0 < (tmppos = Vec3.createVectorHelper((double)movingobjectposition.hitVec.xCoord, (double)movingobjectposition.hitVec.yCoord, (double)movingobjectposition.hitVec.zCoord)).distanceTo(Vec3.createVectorHelper((double)player.posX, (double)player.posY, (double)player.posZ))) {
pos = tmppos;
}
dim.setPosition(pos.xCoord, pos.yCoord, pos.zCoord);
dim.setLifeTime(10);
dim.setIsSlashDimension(true);
world.spawnEntityInWorld((Entity)dim);
}
}
} else {
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.SlashDim);
this.spawnParticle(world, target);
player.worldObj.playSoundEffect(player.posX, player.posY, player.posZ, "mob.endermen.portal", 0.5f, 1.0f);
int cost = -20;
if (!ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(-20), false)) {
ItemSlashBlade.damageItem((ItemStack)stack, (int)10, (EntityLivingBase)player);
}
AxisAlignedBB bb = target.boundingBox.copy();
bb = bb.expand(2.0, 0.25, 2.0);
List<Entity> list = world.getEntitiesWithinAABBExcludingEntity((Entity)player, bb, ItemSlashBlade.AttackableSelector);
if (!ItemSlashBlade.AttackableSelector.isEntityApplicable(target)) {
list.add(target);
}
ItemSlashBlade blade = (ItemSlashBlade)stack.getItem();
for (Entity curEntity : list) {
StylishRankManager.setNextAttackType((Entity)player, (String)StylishRankManager.AttackTypes.SlashDim);
blade.attackTargetEntity(stack, curEntity, player, Boolean.valueOf(true));
}
if (!target.worldObj.isRemote) {
int level = EnchantmentHelper.getEnchantmentLevel((int)Enchantment.power.effectId, (ItemStack)stack);
float magicDamage = 0.5f + ItemSlashBlade.AttackAmplifier.get(tag).floatValue() * ((float)level / 5.0f);
EntitySlashDimension dim = new EntitySlashDimension(world, (EntityLivingBase)player, magicDamage);
if (dim != null) {
dim.setPosition(target.posX, target.posY + (double)target.height / 2.0, target.posZ);
dim.setLifeTime(10);
world.spawnEntityInWorld((Entity)dim);
}
}
}
}
private Entity getEntityToWatch(EntityPlayer player) {
World world = player.worldObj;
Entity target = null;
for (int dist = 2; dist < 20; dist += 2) {
AxisAlignedBB bb = player.boundingBox.copy();
Vec3 vec = player.getLookVec();
vec = vec.normalize();
bb = bb.expand(2.0, 0.25, 2.0);
bb = bb.offset(vec.xCoord * (double)dist, vec.yCoord * (double)dist, vec.zCoord * (double)dist);
List<Entity> list = world.getEntitiesWithinAABBExcludingEntity((Entity)player, bb, ItemSlashBlade.AttackableSelector);
float distance = 30.0f;
for (Entity curEntity : list) {
float curDist = curEntity.getDistanceToEntity((Entity)player);
if (!(curDist < distance)) continue;
target = curEntity;
distance = curDist;
}
if (target != null) break;
}
return target;
}
private void spawnParticle(World world, Entity target) {
world.spawnParticle("largeexplode", target.posX, target.posY + (double)target.height, target.posZ, 3.0, 3.0, 3.0);
world.spawnParticle("largeexplode", target.posX + 1.0, target.posY + (double)target.height + 1.0, target.posZ, 3.0, 3.0, 3.0);
world.spawnParticle("largeexplode", target.posX, target.posY + (double)target.height + 0.5, target.posZ + 1.0, 3.0, 3.0, 3.0);
}
public void doJustSpacialAttack(ItemStack stack, EntityPlayer player) {
int cost;
Entity tmp;
World world = player.worldObj;
NBTTagCompound tag = ItemSlashBlade.getItemTagCompound((ItemStack)stack);
Entity target = null;
int entityId = ItemSlashBlade.TargetEntityId.get(tag);
if (entityId != 0 && (tmp = world.getEntityByID(entityId)) != null && tmp.getDistanceToEntity((Entity)player) < 30.0f) {
target = tmp;
}
if (target == null) {
target = this.getEntityToWatch(player);
}
if (target == null) {
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.SlashDim);
player.playSound("mob.endermen.portal", 0.5f, 1.0f);
cost = -20;
if (!ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(-20), false)) {
ItemSlashBlade.damageItem((ItemStack)stack, (int)10, (EntityLivingBase)player);
}
if (!player.worldObj.isRemote) {
Vec3 tmppos;
Block block;
Vec3 pos = player.getLookVec();
float scale = 5.0f;
pos.xCoord *= (double)scale;
pos.yCoord *= (double)scale;
pos.zCoord *= (double)scale;
pos = pos.addVector(player.posX, player.posY, player.posZ);
pos = pos.addVector(0.0, (double)player.getEyeHeight(), 0.0);
ItemSlashBlade blade = (ItemSlashBlade)stack.getItem();
Vec3 offset = Vec3.createVectorHelper((double)player.posX, (double)player.posY, (double)player.posZ).addVector(0.0, (double)player.getEyeHeight(), 0.0);
Vec3 look = player.getLookVec();
Vec3 offsettedLook = offset.addVector(look.xCoord * 5.0, look.yCoord * 5.0, look.zCoord * 5.0);
MovingObjectPosition movingobjectposition = world.rayTraceBlocks(offset, offsettedLook);
if (movingobjectposition != null && movingobjectposition.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK && (block = world.getBlock(movingobjectposition.blockX, movingobjectposition.blockY, movingobjectposition.blockZ)) != null && block.isCollidable() && 1.0 < (tmppos = Vec3.createVectorHelper((double)movingobjectposition.hitVec.xCoord, (double)movingobjectposition.hitVec.yCoord, (double)movingobjectposition.hitVec.zCoord)).distanceTo(Vec3.createVectorHelper((double)player.posX, (double)player.posY, (double)player.posZ))) {
pos = tmppos;
}
int level = EnchantmentHelper.getEnchantmentLevel((int)Enchantment.power.effectId, (ItemStack)stack);
float magicDamage = 1.0f + ItemSlashBlade.AttackAmplifier.get(tag).floatValue() * (0.5f + (float)level / 5.0f);
EntitySlashDimension dim = new EntitySlashDimension(world, (EntityLivingBase)player, magicDamage);
if (dim != null) {
dim.setPosition(pos.xCoord, pos.yCoord, pos.zCoord);
dim.setLifeTime(10);
dim.setIsSlashDimension(true);
world.spawnEntityInWorld((Entity)dim);
}
magicDamage = 1.0f + ItemSlashBlade.AttackAmplifier.get(tag).floatValue() * ((float)level / 5.0f);
for (int i = 0; i < 5; ++i) {
EntityDrive entityDrive = new EntityDrive(world, (EntityLivingBase)player, Math.min(1.0f, magicDamage / 3.0f), false, 0.0f);
float rotationYaw = (float)(60 * i) + (entityDrive.getRand().nextFloat() - 0.5f) * 60.0f;
float rotationPitch = (entityDrive.getRand().nextFloat() - 0.5f) * 60.0f;
float fYawDtoR = rotationYaw / 180.0f * (float)Math.PI;
float fPitDtoR = rotationPitch / 180.0f * (float)Math.PI;
float fYVecOfst = 0.5f;
float motionX = -MathHelper.sin((float)fYawDtoR) * MathHelper.cos((float)fPitDtoR) * fYVecOfst * 2.0f;
float motionY = -MathHelper.sin((float)fPitDtoR) * fYVecOfst;
float motionZ = MathHelper.cos((float)fYawDtoR) * MathHelper.cos((float)fPitDtoR) * fYVecOfst * 2.0f;
entityDrive.setLocationAndAngles(pos.xCoord - (double)motionX, pos.yCoord - (double)motionY, pos.zCoord - (double)motionZ, rotationYaw, rotationPitch);
entityDrive.setDriveVector(fYVecOfst);
entityDrive.setLifeTime(8);
entityDrive.setIsMultiHit(false);
int rank = StylishRankManager.getStylishRank((Entity)player);
if (5 <= rank) {
EnumSet type = blade.getSwordType(stack);
entityDrive.setIsSlashDimension(type.contains(ItemSlashBlade.SwordType.FiercerEdge));
}
entityDrive.setRoll(90.0f + 120.0f * (entityDrive.getRand().nextFloat() - 0.5f));
if (entityDrive == null) continue;
world.spawnEntityInWorld((Entity)entityDrive);
}
}
} else {
EntitySlashDimension dim;
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.SlashDim);
player.worldObj.playSoundEffect(player.posX, player.posY, player.posZ, "mob.endermen.portal", 0.5f, 1.0f);
cost = -20;
if (!ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(-20), false)) {
ItemSlashBlade.damageItem((ItemStack)stack, (int)10, (EntityLivingBase)player);
}
AxisAlignedBB bb = target.boundingBox.copy();
bb = bb.expand(2.0, 0.25, 2.0);
List<Entity> list = world.getEntitiesWithinAABBExcludingEntity((Entity)player, bb, ItemSlashBlade.AttackableSelector);
if (!ItemSlashBlade.AttackableSelector.isEntityApplicable(target)) {
list.add(target);
}
ItemSlashBlade blade = (ItemSlashBlade)stack.getItem();
for (Entity curEntity : list) {
StylishRankManager.setNextAttackType((Entity)player, (String)StylishRankManager.AttackTypes.SlashDim);
blade.attackTargetEntity(stack, curEntity, player, Boolean.valueOf(true));
player.onEnchantmentCritical(curEntity);
}
int level = EnchantmentHelper.getEnchantmentLevel((int)Enchantment.power.effectId, (ItemStack)stack);
float magicDamage = 1.0f + ItemSlashBlade.AttackAmplifier.get(tag).floatValue() * ((float)level / 5.0f);
if (0 < level) {
for (int i = 0; i < 5; ++i) {
EntityDrive entityDrive = new EntityDrive(world, (EntityLivingBase)player, Math.min(1.0f, magicDamage / 3.0f), false, 0.0f);
float rotationYaw = target.rotationYaw + (float)(60 * i) + (entityDrive.getRand().nextFloat() - 0.5f) * 60.0f;
float rotationPitch = (entityDrive.getRand().nextFloat() - 0.5f) * 60.0f;
float fYawDtoR = rotationYaw / 180.0f * (float)Math.PI;
float fPitDtoR = rotationPitch / 180.0f * (float)Math.PI;
float fYVecOfst = 0.5f;
float motionX = -MathHelper.sin((float)fYawDtoR) * MathHelper.cos((float)fPitDtoR) * fYVecOfst * 2.0f;
float motionY = -MathHelper.sin((float)fPitDtoR) * fYVecOfst;
float motionZ = MathHelper.cos((float)fYawDtoR) * MathHelper.cos((float)fPitDtoR) * fYVecOfst * 2.0f;
entityDrive.setLocationAndAngles(target.posX - (double)motionX, target.posY + (double)target.getEyeHeight() / 2.0 - (double)motionY, target.posZ - (double)motionZ, rotationYaw, rotationPitch);
entityDrive.setDriveVector(fYVecOfst);
entityDrive.setLifeTime(8);
entityDrive.setIsMultiHit(false);
int rank = StylishRankManager.getStylishRank((Entity)player);
if (5 <= rank) {
EnumSet type = blade.getSwordType(stack);
entityDrive.setIsSlashDimension(type.contains(ItemSlashBlade.SwordType.FiercerEdge));
}
entityDrive.setRoll(90.0f + 120.0f * (entityDrive.getRand().nextFloat() - 0.5f));
if (entityDrive == null) continue;
world.spawnEntityInWorld((Entity)entityDrive);
}
}
if (!target.worldObj.isRemote && (dim = new EntitySlashDimension(world, (EntityLivingBase)player, magicDamage)) != null) {
dim.setPosition(target.posX, target.posY + (double)target.height / 2.0, target.posZ);
dim.setLifeTime(10);
dim.setIsSlashDimension(true);
world.spawnEntityInWorld((Entity)dim);
}
}
if (target != null) {
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.SlashDim);
cost = -40;
if (!ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(cost), false)) {
stack.damageItem(10, (EntityLivingBase)player);
}
ItemSlashBlade blade = (ItemSlashBlade)stack.getItem();
StylishRankManager.setNextAttackType((Entity)player, (String)AttackType);
blade.attackTargetEntity(stack, target, player, Boolean.valueOf(true));
player.onCriticalHit(target);
target.motionX = 0.0;
target.motionY = 0.0;
target.motionZ = 0.0;
if (target instanceof EntityLivingBase) {
blade.setDaunting((EntityLivingBase)target);
}
int rank = StylishRankManager.getStylishRank((Entity)player);
int level = EnchantmentHelper.getEnchantmentLevel((int)Enchantment.power.effectId, (ItemStack)stack);
float magicDamage = 1.0f + ItemSlashBlade.AttackAmplifier.get(tag).floatValue() * ((float)level / 5.0f) * (1.5f + 5.2f * (float)rank);
int count = 3;
double rad = Math.PI * 2 / (double)(count += rank);
for (int i = 0; i < count; ++i) {
EntityPhantomSwordEx entityDrive;
if (world.isRemote || (entityDrive = new EntityPhantomSwordEx(world, (EntityLivingBase)player, magicDamage, 90.0f)) == null) continue;
float dist = 2.0f;
double ran = rad * (double)i;
double x = Math.sin(ran);
double y = 1.0 + (double)entityDrive.getRand().nextFloat();
double z = Math.cos(ran);
int dir = -((int)Math.toDegrees(Math.PI + ran));
entityDrive.setLocationAndAngles(target.posX + (x *= (double)dist), target.posY + (y *= (double)dist), target.posZ + (z *= (double)dist), dir, 90.0f);
entityDrive.setIniPitch(90.0f);
entityDrive.setIniYaw(dir);
entityDrive.setDriveVector(1.75f);
entityDrive.setColor(460552);
entityDrive.setInterval(7 + i / 2);
entityDrive.setLifeTime(30);
entityDrive.setTargetEntityId(target.getEntityId());
world.spawnEntityInWorld((Entity)entityDrive);
}
}
}
public void doSuperSpecialAttack(ItemStack stack, EntityPlayer player) {
EntityJudgmentCutManager entityDA = new EntityJudgmentCutManager(player.worldObj, (EntityLivingBase)player);
if (entityDA != null) {
player.worldObj.spawnEntityInWorld((Entity)entityDA);
}
UntouchableTime.setUntouchableTime((Entity)player, (int)30, (boolean)true);
}
}
@@ -0,0 +1,311 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* mods.flammpfeil.slashblade.EntityDrive
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ItemSlashBlade$ComboSequence
* mods.flammpfeil.slashblade.ItemSlashBlade$SwordType
* mods.flammpfeil.slashblade.ability.StylishRankManager
* mods.flammpfeil.slashblade.ability.StylishRankManager$AttackTypes
* mods.flammpfeil.slashblade.ability.UntouchableTime
* mods.flammpfeil.slashblade.entity.EntityJudgmentCutManager
* mods.flammpfeil.slashblade.entity.EntitySlashDimension
* mods.flammpfeil.slashblade.specialattack.IJustSpecialAttack
* mods.flammpfeil.slashblade.specialattack.ISuperSpecialAttack
* mods.flammpfeil.slashblade.specialattack.SpecialAttackBase
* net.minecraft.block.Block
* 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.util.MathHelper
* net.minecraft.util.MovingObjectPosition
* net.minecraft.util.MovingObjectPosition$MovingObjectType
* net.minecraft.util.Vec3
* net.minecraft.world.World
*/
package Fish.mods.slashblade.SA;
import java.util.EnumSet;
import java.util.List;
import mods.flammpfeil.slashblade.EntityDrive;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.ability.StylishRankManager;
import mods.flammpfeil.slashblade.ability.UntouchableTime;
import mods.flammpfeil.slashblade.entity.EntityJudgmentCutManager;
import mods.flammpfeil.slashblade.entity.EntitySlashDimension;
import mods.flammpfeil.slashblade.specialattack.IJustSpecialAttack;
import mods.flammpfeil.slashblade.specialattack.ISuperSpecialAttack;
import mods.flammpfeil.slashblade.specialattack.SpecialAttackBase;
import net.minecraft.block.Block;
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.util.MathHelper;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.util.Vec3;
import net.minecraft.world.World;
public class SA_2
extends SpecialAttackBase
implements IJustSpecialAttack,
ISuperSpecialAttack {
public String toString() {
return "SA_2";
}
public void doSpacialAttack(ItemStack stack, EntityPlayer player) {
Entity tmp;
World world = player.worldObj;
player.addPotionEffect(new PotionEffect(14, 400, 1, true));
NBTTagCompound tag = ItemSlashBlade.getItemTagCompound((ItemStack)stack);
Entity target = null;
int entityId = ItemSlashBlade.TargetEntityId.get(tag);
if (entityId != 0 && (tmp = world.getEntityByID(entityId)) != null && tmp.getDistanceToEntity((Entity)player) < 30.0f) {
target = tmp;
}
if (target == null) {
target = this.getEntityToWatch(player);
}
if (target == null) {
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.SlashDim);
player.playSound("mob.endermen.portal", 0.5f, 1.0f);
int cost = -100;
if (!ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(-100), false)) {
ItemSlashBlade.damageItem((ItemStack)stack, (int)20, (EntityLivingBase)player);
}
if (!player.worldObj.isRemote) {
int level = EnchantmentHelper.getEnchantmentLevel((int)Enchantment.power.effectId, (ItemStack)stack);
float magicDamage = 1.0f + ItemSlashBlade.AttackAmplifier.get(tag).floatValue() * (0.5f + (float)level / 5.0f);
EntitySlashDimension dim = new EntitySlashDimension(world, (EntityLivingBase)player, magicDamage);
if (dim != null) {
Vec3 tmppos;
Block block;
Vec3 pos = player.getLookVec();
float scale = 5.0f;
pos.xCoord *= (double)scale;
pos.yCoord *= (double)scale;
pos.zCoord *= (double)scale;
pos = pos.addVector(player.posX, player.posY, player.posZ);
pos = pos.addVector(0.0, (double)player.getEyeHeight(), 0.0);
Vec3 offset = Vec3.createVectorHelper((double)player.posX, (double)player.posY, (double)player.posZ).addVector(0.0, (double)player.getEyeHeight(), 0.0);
Vec3 look = player.getLookVec();
Vec3 offsettedLook = offset.addVector(look.xCoord * 5.0, look.yCoord * 5.0, look.zCoord * 5.0);
MovingObjectPosition movingobjectposition = world.rayTraceBlocks(offset, offsettedLook);
if (movingobjectposition != null && movingobjectposition.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK && (block = world.getBlock(movingobjectposition.blockX, movingobjectposition.blockY, movingobjectposition.blockZ)) != null && block.isCollidable() && 1.0 < (tmppos = Vec3.createVectorHelper((double)movingobjectposition.hitVec.xCoord, (double)movingobjectposition.hitVec.yCoord, (double)movingobjectposition.hitVec.zCoord)).distanceTo(Vec3.createVectorHelper((double)player.posX, (double)player.posY, (double)player.posZ))) {
pos = tmppos;
}
dim.setPosition(pos.xCoord, pos.yCoord, pos.zCoord);
dim.setLifeTime(10);
dim.setIsSlashDimension(true);
world.spawnEntityInWorld((Entity)dim);
}
}
} else {
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.SlashDim);
this.spawnParticle(world, target);
player.worldObj.playSoundEffect(player.posX, player.posY, player.posZ, "mob.endermen.portal", 0.5f, 1.0f);
int cost = -20;
if (!ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(-20), false)) {
ItemSlashBlade.damageItem((ItemStack)stack, (int)10, (EntityLivingBase)player);
}
AxisAlignedBB bb = target.boundingBox.copy();
bb = bb.expand(2.0, 0.25, 2.0);
List<Entity> list = world.getEntitiesWithinAABBExcludingEntity((Entity)player, bb, ItemSlashBlade.AttackableSelector);
if (!ItemSlashBlade.AttackableSelector.isEntityApplicable(target)) {
list.add(target);
}
ItemSlashBlade blade = (ItemSlashBlade)stack.getItem();
for (Entity curEntity : list) {
StylishRankManager.setNextAttackType((Entity)player, (String)StylishRankManager.AttackTypes.SlashDim);
blade.attackTargetEntity(stack, curEntity, player, Boolean.valueOf(true));
}
if (!target.worldObj.isRemote) {
int level = EnchantmentHelper.getEnchantmentLevel((int)Enchantment.power.effectId, (ItemStack)stack);
float magicDamage = 2.0f + ItemSlashBlade.AttackAmplifier.get(tag).floatValue() * ((float)level / 4.0f);
EntitySlashDimension dim = new EntitySlashDimension(world, (EntityLivingBase)player, magicDamage);
if (dim != null) {
dim.setPosition(target.posX, target.posY + (double)target.height / 2.0, target.posZ);
dim.setLifeTime(10);
world.spawnEntityInWorld((Entity)dim);
}
}
}
}
private Entity getEntityToWatch(EntityPlayer player) {
World world = player.worldObj;
Entity target = null;
for (int dist = 2; dist < 20; dist += 2) {
AxisAlignedBB bb = player.boundingBox.copy();
Vec3 vec = player.getLookVec();
vec = vec.normalize();
bb = bb.expand(2.0, 0.25, 2.0);
bb = bb.offset(vec.xCoord * (double)dist, vec.yCoord * (double)dist, vec.zCoord * (double)dist);
List<Entity> list = world.getEntitiesWithinAABBExcludingEntity((Entity)player, bb, ItemSlashBlade.AttackableSelector);
float distance = 50.0f;
for (Entity curEntity : list) {
float curDist = curEntity.getDistanceToEntity((Entity)player);
if (!(curDist < distance)) continue;
target = curEntity;
distance = curDist;
}
if (target != null) break;
}
return target;
}
private void spawnParticle(World world, Entity target) {
world.spawnParticle("largeexplode", target.posX, target.posY + (double)target.height, target.posZ, 3.0, 3.0, 3.0);
world.spawnParticle("largeexplode", target.posX + 1.0, target.posY + (double)target.height + 1.0, target.posZ, 3.0, 3.0, 3.0);
world.spawnParticle("largeexplode", target.posX, target.posY + (double)target.height + 0.5, target.posZ + 1.0, 3.0, 3.0, 3.0);
}
public void doJustSpacialAttack(ItemStack stack, EntityPlayer player) {
Entity tmp;
World world = player.worldObj;
NBTTagCompound tag = ItemSlashBlade.getItemTagCompound((ItemStack)stack);
Entity target = null;
int entityId = ItemSlashBlade.TargetEntityId.get(tag);
if (entityId != 0 && (tmp = world.getEntityByID(entityId)) != null && tmp.getDistanceToEntity((Entity)player) < 30.0f) {
target = tmp;
}
if (target == null) {
target = this.getEntityToWatch(player);
}
if (target == null) {
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.SlashDim);
player.playSound("mob.endermen.portal", 0.5f, 1.0f);
int cost = -20;
if (!ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(-20), false)) {
ItemSlashBlade.damageItem((ItemStack)stack, (int)10, (EntityLivingBase)player);
}
if (!player.worldObj.isRemote) {
Vec3 tmppos;
Block block;
Vec3 pos = player.getLookVec();
float scale = 5.0f;
pos.xCoord *= (double)scale;
pos.yCoord *= (double)scale;
pos.zCoord *= (double)scale;
pos = pos.addVector(player.posX, player.posY, player.posZ);
pos = pos.addVector(0.0, (double)player.getEyeHeight(), 0.0);
ItemSlashBlade blade = (ItemSlashBlade)stack.getItem();
Vec3 offset = Vec3.createVectorHelper((double)player.posX, (double)player.posY, (double)player.posZ).addVector(0.0, (double)player.getEyeHeight(), 0.0);
Vec3 look = player.getLookVec();
Vec3 offsettedLook = offset.addVector(look.xCoord * 5.0, look.yCoord * 5.0, look.zCoord * 5.0);
MovingObjectPosition movingobjectposition = world.rayTraceBlocks(offset, offsettedLook);
if (movingobjectposition != null && movingobjectposition.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK && (block = world.getBlock(movingobjectposition.blockX, movingobjectposition.blockY, movingobjectposition.blockZ)) != null && block.isCollidable() && 1.0 < (tmppos = Vec3.createVectorHelper((double)movingobjectposition.hitVec.xCoord, (double)movingobjectposition.hitVec.yCoord, (double)movingobjectposition.hitVec.zCoord)).distanceTo(Vec3.createVectorHelper((double)player.posX, (double)player.posY, (double)player.posZ))) {
pos = tmppos;
}
int level = EnchantmentHelper.getEnchantmentLevel((int)Enchantment.power.effectId, (ItemStack)stack);
float magicDamage = 1.0f + ItemSlashBlade.AttackAmplifier.get(tag).floatValue() * (0.5f + (float)level / 5.0f);
EntitySlashDimension dim = new EntitySlashDimension(world, (EntityLivingBase)player, magicDamage);
if (dim != null) {
dim.setPosition(pos.xCoord, pos.yCoord, pos.zCoord);
dim.setLifeTime(10);
dim.setIsSlashDimension(true);
world.spawnEntityInWorld((Entity)dim);
}
magicDamage = 1.0f + ItemSlashBlade.AttackAmplifier.get(tag).floatValue() * ((float)level / 5.0f);
for (int i = 0; i < 5; ++i) {
EntityDrive entityDrive = new EntityDrive(world, (EntityLivingBase)player, Math.min(1.0f, magicDamage / 3.0f), false, 0.0f);
float rotationYaw = (float)(60 * i) + (entityDrive.getRand().nextFloat() - 0.5f) * 60.0f;
float rotationPitch = (entityDrive.getRand().nextFloat() - 0.5f) * 60.0f;
float fYawDtoR = rotationYaw / 180.0f * (float)Math.PI;
float fPitDtoR = rotationPitch / 180.0f * (float)Math.PI;
float fYVecOfst = 0.5f;
float motionX = -MathHelper.sin((float)fYawDtoR) * MathHelper.cos((float)fPitDtoR) * fYVecOfst * 2.0f;
float motionY = -MathHelper.sin((float)fPitDtoR) * fYVecOfst;
float motionZ = MathHelper.cos((float)fYawDtoR) * MathHelper.cos((float)fPitDtoR) * fYVecOfst * 2.0f;
entityDrive.setLocationAndAngles(pos.xCoord - (double)motionX, pos.yCoord - (double)motionY, pos.zCoord - (double)motionZ, rotationYaw, rotationPitch);
entityDrive.setDriveVector(fYVecOfst);
entityDrive.setLifeTime(8);
entityDrive.setIsMultiHit(false);
int rank = StylishRankManager.getStylishRank((Entity)player);
if (5 <= rank) {
EnumSet type = blade.getSwordType(stack);
entityDrive.setIsSlashDimension(type.contains(ItemSlashBlade.SwordType.FiercerEdge));
}
entityDrive.setRoll(90.0f + 120.0f * (entityDrive.getRand().nextFloat() - 0.5f));
if (entityDrive == null) continue;
world.spawnEntityInWorld((Entity)entityDrive);
}
}
} else {
EntitySlashDimension dim;
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.SlashDim);
player.worldObj.playSoundEffect(player.posX, player.posY, player.posZ, "mob.endermen.portal", 0.5f, 1.0f);
int cost = -20;
if (!ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(-20), false)) {
ItemSlashBlade.damageItem((ItemStack)stack, (int)10, (EntityLivingBase)player);
}
AxisAlignedBB bb = target.boundingBox.copy();
bb = bb.expand(2.0, 0.25, 2.0);
List<Entity> list = world.getEntitiesWithinAABBExcludingEntity((Entity)player, bb, ItemSlashBlade.AttackableSelector);
if (!ItemSlashBlade.AttackableSelector.isEntityApplicable(target)) {
list.add(target);
}
ItemSlashBlade blade = (ItemSlashBlade)stack.getItem();
for (Entity curEntity : list) {
StylishRankManager.setNextAttackType((Entity)player, (String)StylishRankManager.AttackTypes.SlashDim);
blade.attackTargetEntity(stack, curEntity, player, Boolean.valueOf(true));
player.onEnchantmentCritical(curEntity);
}
int level = EnchantmentHelper.getEnchantmentLevel((int)Enchantment.power.effectId, (ItemStack)stack);
float magicDamage = 1.0f + ItemSlashBlade.AttackAmplifier.get(tag).floatValue() * ((float)level / 5.0f);
if (0 < level) {
for (int i = 0; i < 5; ++i) {
EntityDrive entityDrive = new EntityDrive(world, (EntityLivingBase)player, Math.min(1.0f, magicDamage / 3.0f), false, 0.0f);
float rotationYaw = target.rotationYaw + (float)(60 * i) + (entityDrive.getRand().nextFloat() - 0.5f) * 60.0f;
float rotationPitch = (entityDrive.getRand().nextFloat() - 0.5f) * 60.0f;
float fYawDtoR = rotationYaw / 180.0f * (float)Math.PI;
float fPitDtoR = rotationPitch / 180.0f * (float)Math.PI;
float fYVecOfst = 0.5f;
float motionX = -MathHelper.sin((float)fYawDtoR) * MathHelper.cos((float)fPitDtoR) * fYVecOfst * 2.0f;
float motionY = -MathHelper.sin((float)fPitDtoR) * fYVecOfst;
float motionZ = MathHelper.cos((float)fYawDtoR) * MathHelper.cos((float)fPitDtoR) * fYVecOfst * 2.0f;
entityDrive.setLocationAndAngles(target.posX - (double)motionX, target.posY + (double)target.getEyeHeight() / 2.0 - (double)motionY, target.posZ - (double)motionZ, rotationYaw, rotationPitch);
entityDrive.setDriveVector(fYVecOfst);
entityDrive.setLifeTime(8);
entityDrive.setIsMultiHit(false);
int rank = StylishRankManager.getStylishRank((Entity)player);
if (5 <= rank) {
EnumSet type = blade.getSwordType(stack);
entityDrive.setIsSlashDimension(type.contains(ItemSlashBlade.SwordType.FiercerEdge));
}
entityDrive.setRoll(90.0f + 120.0f * (entityDrive.getRand().nextFloat() - 0.5f));
if (entityDrive == null) continue;
world.spawnEntityInWorld((Entity)entityDrive);
}
}
if (!target.worldObj.isRemote && (dim = new EntitySlashDimension(world, (EntityLivingBase)player, magicDamage)) != null) {
dim.setPosition(target.posX, target.posY + (double)target.height / 2.0, target.posZ);
dim.setLifeTime(10);
dim.setIsSlashDimension(true);
world.spawnEntityInWorld((Entity)dim);
}
}
}
public void doSuperSpecialAttack(ItemStack stack, EntityPlayer player) {
EntityJudgmentCutManager entityDA = new EntityJudgmentCutManager(player.worldObj, (EntityLivingBase)player);
if (entityDA != null) {
player.worldObj.spawnEntityInWorld((Entity)entityDA);
}
UntouchableTime.setUntouchableTime((Entity)player, (int)30, (boolean)true);
}
}
@@ -0,0 +1,125 @@
/*
* 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.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.util.Vec3
* net.minecraft.world.World
*/
package Fish.mods.slashblade.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.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.util.Vec3;
import net.minecraft.world.World;
public class SA_3
extends SpecialAttackBase {
public String toString() {
return "SA_3";
}
public void doSpacialAttack(ItemStack stack, EntityPlayer player) {
World world = player.worldObj;
NBTTagCompound tag = ItemSlashBlade.getItemTagCompound((ItemStack)stack);
if (!world.isRemote) {
Entity tmp;
ItemSlashBlade blade = (ItemSlashBlade)stack.getItem();
Entity target = null;
int entityId = ItemSlashBlade.TargetEntityId.get(tag);
if (entityId != 0 && (tmp = world.getEntityByID(entityId)) != null && tmp.getDistanceToEntity((Entity)player) < 30.0f) {
target = tmp;
}
if (target == null) {
target = this.getEntityToWatch(player);
}
if (target != null) {
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.SlashDim);
int cost = -40;
if (!ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(-40), false)) {
ItemSlashBlade.damageItem((ItemStack)stack, (int)20, (EntityLivingBase)player);
}
StylishRankManager.setNextAttackType((Entity)player, (String)StylishRankManager.AttackTypes.PhantomSword);
blade.attackTargetEntity(stack, target, player, Boolean.valueOf(true));
player.onCriticalHit(target);
player.addPotionEffect(new PotionEffect(11, 300, 1, true));
player.addPotionEffect(new PotionEffect(5, 300, 3, true));
player.addPotionEffect(new PotionEffect(16, 1200, 3, true));
target.motionX = 0.0;
target.motionY = 0.0;
target.motionZ = 0.0;
if (target instanceof EntityLivingBase) {
blade.setDaunting((EntityLivingBase)target);
((EntityLivingBase)target).hurtTime = 0;
((EntityLivingBase)target).hurtResistantTime = 0;
}
int level = EnchantmentHelper.getEnchantmentLevel((int)Enchantment.power.effectId, (ItemStack)stack);
float magicDamage = 5.0f + ItemSlashBlade.AttackAmplifier.get(tag).floatValue() * ((float)level / 2.0f);
int count = 1 + StylishRankManager.getStylishRank((Entity)player);
for (int i = 0; i < count; ++i) {
if (world.isRemote) continue;
boolean isBurst = i % 2 == 0;
EntityWitherSword entityDrive = new EntityWitherSword(world, (EntityLivingBase)player, magicDamage, 90.0f);
if (entityDrive == null) continue;
entityDrive.setInterval(7 + i * 2);
entityDrive.setLifeTime(30);
int color = isBurst ? -14423100 : -14423100;
entityDrive.setColor(color);
entityDrive.setBurst(isBurst);
entityDrive.setTargetEntityId(target.getEntityId());
world.spawnEntityInWorld((Entity)entityDrive);
}
}
}
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.Kiriorosi);
}
private Entity getEntityToWatch(EntityPlayer player) {
World world = player.worldObj;
Entity target = null;
for (int dist = 2; dist < 20; dist += 2) {
AxisAlignedBB bb = player.boundingBox.copy();
Vec3 vec = player.getLookVec();
vec = vec.normalize();
bb = bb.expand(2.0, 0.25, 2.0);
bb = bb.offset(vec.xCoord * (double)dist, vec.yCoord * (double)dist, vec.zCoord * (double)dist);
List<Entity> list = world.getEntitiesWithinAABBExcludingEntity((Entity)player, bb, ItemSlashBlade.AttackableSelector);
float distance = 100.0f;
for (Entity curEntity : list) {
float curDist = curEntity.getDistanceToEntity((Entity)player);
if (!(curDist < distance)) continue;
target = curEntity;
distance = curDist;
}
if (target != null) break;
}
return target;
}
}
@@ -0,0 +1,59 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ItemSlashBlade$ComboSequence
* mods.flammpfeil.slashblade.entity.EntitySakuraEndManager
* 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.world.World
*/
package Fish.mods.slashblade.SA;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.entity.EntitySakuraEndManager;
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.world.World;
public class SA_4
extends SpecialAttackBase {
public String toString() {
return "SA_4";
}
public void doSpacialAttack(ItemStack stack, EntityPlayer player) {
World world = player.worldObj;
NBTTagCompound tag = ItemSlashBlade.getItemTagCompound((ItemStack)stack);
double playerDist = 3.5;
float attackDist = (float)(playerDist / 3.0);
if (!player.onGround) {
playerDist *= (double)0.35f;
}
player.motionX = -Math.sin(Math.toRadians(player.rotationYaw)) * playerDist;
player.motionZ = Math.cos(Math.toRadians(player.rotationYaw)) * playerDist;
if (!world.isRemote) {
int cost = -20;
if (!ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(-20), false)) {
ItemSlashBlade.damageItem((ItemStack)stack, (int)10, (EntityLivingBase)player);
}
ItemSlashBlade blade = (ItemSlashBlade)stack.getItem();
EntitySakuraEndManager entityDA = new EntitySakuraEndManager(world, (EntityLivingBase)player);
if (entityDA != null) {
world.spawnEntityInWorld((Entity)entityDA);
}
}
world.playSoundAtEntity((Entity)player, "random.explode", 1.0f, 1.0f);
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.SlashEdge);
}
}
@@ -0,0 +1,64 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* mods.flammpfeil.slashblade.EntityDirectAttackDummy
* 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.potion.PotionEffect
* net.minecraft.world.World
*/
package Fish.mods.slashblade.SA;
import mods.flammpfeil.slashblade.EntityDirectAttackDummy;
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.potion.PotionEffect;
import net.minecraft.world.World;
public class SA_5
extends SpecialAttackBase {
public String toString() {
return "SA_5";
}
public void doSpacialAttack(ItemStack stack, EntityPlayer player) {
World world = player.worldObj;
NBTTagCompound tag = ItemSlashBlade.getItemTagCompound((ItemStack)stack);
double playerDist = 15.0;
float attackDist = (float)(playerDist / 3.0);
if (!player.onGround) {
playerDist *= (double)0.35f;
}
player.motionX = -Math.sin(Math.toRadians(player.rotationYaw)) * playerDist;
player.motionZ = Math.cos(Math.toRadians(player.rotationYaw)) * playerDist;
if (!world.isRemote) {
int cost = -20;
if (!ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(-20), false)) {
ItemSlashBlade.damageItem((ItemStack)stack, (int)10, (EntityLivingBase)player);
}
ItemSlashBlade blade = (ItemSlashBlade)stack.getItem();
player.addPotionEffect(new PotionEffect(1, 200, 1, true));
player.addPotionEffect(new PotionEffect(9, 40, 1, true));
EntityDirectAttackDummy entityDA = new EntityDirectAttackDummy(world, (EntityLivingBase)player, false);
entityDA.setLifeTime(7);
if (entityDA != null) {
world.spawnEntityInWorld((Entity)entityDA);
}
}
world.playSoundAtEntity((Entity)player, "random.explode", 1.0f, 1.0f);
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.HiraTuki);
}
}
@@ -0,0 +1,115 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* mods.flammpfeil.slashblade.EntityDrive
* 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 Fish.mods.slashblade.SA;
import Fish.mods.slashblade.SA.entity.EntityNoFireLightningBolt;
import java.util.List;
import mods.flammpfeil.slashblade.EntityDrive;
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 SA_6
extends SpecialAttackBase {
public static String AttackType = StylishRankManager.AttackTypes.registerAttackType((String)"SA_6", (float)0.5f);
public String toString() {
return "SA_6";
}
public void doSpacialAttack(ItemStack stack, EntityPlayer player) {
World world = player.worldObj;
NBTTagCompound tag = ItemSlashBlade.getItemTagCompound((ItemStack)stack);
player.worldObj.playSoundAtEntity((Entity)player, "random.explode", 0.2f, 0.6f);
if (!world.isRemote) {
int cost = -20;
if (!ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(cost), false)) {
stack.damageItem(10, (EntityLivingBase)player);
}
ItemSlashBlade blade = (ItemSlashBlade)stack.getItem();
AxisAlignedBB bb = player.boundingBox.copy();
bb = bb.expand(5.0, 0.25, 5.0);
List<Entity> list = world.getEntitiesWithinAABBExcludingEntity((Entity)player, bb, ItemSlashBlade.AttackableSelector);
for (Entity curEntity : list) {
StylishRankManager.setNextAttackType((Entity)player, (String)"SA_6");
blade.attackTargetEntity(stack, curEntity, player, Boolean.valueOf(true));
player.onCriticalHit(curEntity);
}
for (int i = 0; i < 20; ++i) {
double d0 = player.getRNG().nextGaussian() * 0.03;
double d1 = player.getRNG().nextGaussian() * 0.03;
double d2 = player.getRNG().nextGaussian() * 0.03;
double d3 = 60.0;
world.spawnParticle("witchMagic", player.posX + (double)(player.getRNG().nextFloat() * player.width * 2.0f) - (double)player.width - d0 * d3, player.posY, player.posZ + (double)(player.getRNG().nextFloat() * player.width * 2.0f) - (double)player.width - d2 * d3, d0, d1, d2);
}
float baseModif = blade.getBaseAttackModifiers(tag);
int level = Math.max(1, EnchantmentHelper.getEnchantmentLevel((int)Enchantment.power.effectId, (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);
}
player.worldObj.playSoundAtEntity((Entity)player, "ambient.weather.thunder", 0.4f, 1.0f);
double dAmbit = 12.0;
AxisAlignedBB bb2 = AxisAlignedBB.getBoundingBox((double)(player.posX - dAmbit), (double)(player.posY - dAmbit), (double)(player.posZ - dAmbit), (double)(player.posX + dAmbit), (double)(player.posY + dAmbit), (double)(player.posZ + dAmbit));
List<Entity> list2 = world.getEntitiesWithinAABBExcludingEntity((Entity)player, bb2, ItemSlashBlade.AttackableSelector);
int count = 0;
for (Entity curEntity : list2) {
if (count >= rank * 2 + 3) break;
int i = 0;
while ((double)i < 3.0 + Math.floor(rank / 2)) {
EntityDrive entityDrive = new EntityDrive(world, (EntityLivingBase)curEntity, magicDamage, false, 0.0f);
entityDrive.setLocationAndAngles(curEntity.posX, curEntity.posY + (double)curEntity.getEyeHeight() / 2.0, curEntity.posZ, curEntity.rotationYaw + (float)(120 * i) + (entityDrive.getRand().nextFloat() - 0.5f) * 120.0f, (entityDrive.getRand().nextFloat() - 0.5f) * 120.0f);
entityDrive.setDriveVector(0.5f);
entityDrive.setLifeTime(10);
entityDrive.setIsMultiHit(true);
entityDrive.setRoll(90.0f + 120.0f * (entityDrive.getRand().nextFloat() - 0.5f));
if (entityDrive != null) {
world.spawnEntityInWorld((Entity)entityDrive);
}
++i;
}
for (int j = 0; j < 10; ++j) {
double d0 = ((EntityLivingBase)curEntity).getRNG().nextGaussian() * 0.02;
double d1 = ((EntityLivingBase)curEntity).getRNG().nextGaussian() * 0.02;
double d2 = ((EntityLivingBase)curEntity).getRNG().nextGaussian() * 0.02;
double d3 = 10.0;
world.spawnParticle("witchMagic", curEntity.posX + (double)(((EntityLivingBase)curEntity).getRNG().nextFloat() * curEntity.width * 2.0f) - (double)curEntity.width - d0 * d3, curEntity.posY, curEntity.posZ + (double)(((EntityLivingBase)curEntity).getRNG().nextFloat() * curEntity.width * 2.0f) - (double)curEntity.width - d2 * d3, d0, d1, d2);
}
if (rank >= 5) {
world.addWeatherEffect((Entity)new EntityNoFireLightningBolt(world, curEntity.posX, curEntity.posY, curEntity.posZ, curEntity, ItemSlashBlade.AttackableSelector, (Entity)player, magicDamage));
}
++count;
}
}
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.Battou);
}
}
@@ -0,0 +1,100 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* mods.flammpfeil.slashblade.EntityDrive
* 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 Fish.mods.slashblade.SA;
import java.util.List;
import mods.flammpfeil.slashblade.EntityDrive;
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 SA_7
extends SpecialAttackBase {
public static String AttackType = StylishRankManager.AttackTypes.registerAttackType((String)"SA_7", (float)0.5f);
public String toString() {
return "SA_7";
}
public void doSpacialAttack(ItemStack stack, EntityPlayer player) {
World world = player.worldObj;
NBTTagCompound tag = ItemSlashBlade.getItemTagCompound((ItemStack)stack);
double playerDist = 3.5;
float attackDist = (float)(playerDist / 3.0);
if (!player.onGround) {
playerDist *= (double)0.35f;
}
player.motionX = -Math.sin(Math.toRadians(player.rotationYaw)) * playerDist;
player.motionZ = Math.cos(Math.toRadians(player.rotationYaw)) * playerDist;
for (int i = 0; i < 20; ++i) {
double d0 = player.getRNG().nextGaussian() * 0.02;
double d1 = player.getRNG().nextGaussian() * 0.02;
double d2 = player.getRNG().nextGaussian() * 0.02;
double d3 = 10.0;
world.spawnParticle("witchMagic", player.posX + (double)(player.getRNG().nextFloat() * player.width * 2.0f) - (double)player.width - d0 * d3, player.posY, player.posZ + (double)(player.getRNG().nextFloat() * player.width * 2.0f) - (double)player.width - d2 * d3, d0, d1, d2);
}
player.worldObj.playSoundAtEntity((Entity)player, "random.explode", 0.2f, 0.6f);
if (!world.isRemote) {
int cost = -40;
if (!ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(-40), false)) {
stack.damageItem(10, (EntityLivingBase)player);
}
ItemSlashBlade blade = (ItemSlashBlade)stack.getItem();
AxisAlignedBB bb = player.boundingBox.copy();
bb = bb.expand(5.0, 0.25, 5.0);
List<Entity> list = world.getEntitiesWithinAABBExcludingEntity((Entity)player, bb, ItemSlashBlade.AttackableSelector);
for (Entity curEntity : list) {
StylishRankManager.setNextAttackType((Entity)player, (String)"SA_7");
blade.attackTargetEntity(stack, curEntity, player, Boolean.valueOf(true));
player.onCriticalHit(curEntity);
}
float baseModif = blade.getBaseAttackModifiers(tag);
int level = Math.max(1, EnchantmentHelper.getEnchantmentLevel((int)Enchantment.power.effectId, (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);
}
player.worldObj.playSoundAtEntity((Entity)player, "ambient.weather.thunder", 0.4f, 1.0f);
for (int i = 0; i < 6; ++i) {
EntityDrive entityDrive = new EntityDrive(world, (EntityLivingBase)player, magicDamage, false, 0.0f);
entityDrive.setLocationAndAngles(player.posX, player.posY + (double)player.getEyeHeight() / 2.0, player.posZ, player.rotationYaw + (float)(60 * i) + (entityDrive.getRand().nextFloat() - 0.5f) * 60.0f, (entityDrive.getRand().nextFloat() - 0.5f) * 60.0f);
entityDrive.setDriveVector(0.5f);
entityDrive.setLifeTime(10);
entityDrive.setIsMultiHit(true);
entityDrive.setRoll(90.0f + 120.0f * (entityDrive.getRand().nextFloat() - 0.5f));
if (entityDrive == null) continue;
world.spawnEntityInWorld((Entity)entityDrive);
}
}
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.Battou);
}
}
@@ -0,0 +1,108 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* mods.flammpfeil.slashblade.EntityDrive
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ItemSlashBlade$ComboSequence
* mods.flammpfeil.slashblade.ability.StylishRankManager
* mods.flammpfeil.slashblade.entity.EntityMaximumBetManager
* mods.flammpfeil.slashblade.entity.EntitySakuraEndManager
* 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 Fish.mods.slashblade.SA;
import mods.flammpfeil.slashblade.EntityDrive;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.ability.StylishRankManager;
import mods.flammpfeil.slashblade.entity.EntityMaximumBetManager;
import mods.flammpfeil.slashblade.entity.EntitySakuraEndManager;
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 SA_8
extends SpecialAttackBase {
private final float speed;
private final int lifetime;
private final boolean multihit;
private final ItemSlashBlade.ComboSequence setCombo;
public SA_8(float speed, int lifetime, boolean multihit, ItemSlashBlade.ComboSequence setCombo) {
this.speed = speed;
this.lifetime = lifetime;
this.multihit = multihit;
this.setCombo = setCombo;
}
public String toString() {
return "SA_8";
}
public void doSpacialAttack(ItemStack stack, EntityPlayer player) {
Entity entityDA;
ItemSlashBlade blade;
int cost;
World world = player.worldObj;
NBTTagCompound tag = ItemSlashBlade.getItemTagCompound((ItemStack)stack);
if (!world.isRemote) {
cost = -18;
if (!ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(-18), false)) {
ItemSlashBlade.damageItem((ItemStack)stack, (int)8, (EntityLivingBase)player);
}
blade = (ItemSlashBlade)stack.getItem();
entityDA = new EntitySakuraEndManager(world, (EntityLivingBase)player);
if (entityDA != null) {
world.spawnEntityInWorld((Entity)entityDA);
}
}
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.SlashEdge);
if (!world.isRemote) {
EntityDrive entityDrive;
cost = -1;
if (!ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(-1), false)) {
ItemSlashBlade.damageItem((ItemStack)stack, (int)1, (EntityLivingBase)player);
}
blade = (ItemSlashBlade)stack.getItem();
float baseModif = blade.getBaseAttackModifiers(tag);
int level = EnchantmentHelper.getEnchantmentLevel((int)Enchantment.power.effectId, (ItemStack)stack);
float magicDamage = baseModif;
int rank = StylishRankManager.getStylishRank((Entity)player);
if (5 <= rank) {
magicDamage += ItemSlashBlade.AttackAmplifier.get(tag).floatValue() * (5.0f + (float)level / 3.0f);
}
if ((entityDrive = new EntityDrive(world, (EntityLivingBase)player, magicDamage, this.multihit, 90.0f - this.setCombo.swingDirection)) != null) {
entityDrive.setInitialSpeed(this.speed);
entityDrive.setLifeTime(this.lifetime);
world.spawnEntityInWorld((Entity)entityDrive);
}
}
if (!world.isRemote) {
cost = -1;
if (!ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(-1), false)) {
ItemSlashBlade.damageItem((ItemStack)stack, (int)1, (EntityLivingBase)player);
}
blade = (ItemSlashBlade)stack.getItem();
entityDA = new EntityMaximumBetManager(world, (EntityLivingBase)player);
if (entityDA != null) {
world.spawnEntityInWorld((Entity)entityDA);
}
}
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.SlashEdge);
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)this.setCombo);
}
}
@@ -0,0 +1,193 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* mods.flammpfeil.slashblade.EntityDrive
* 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.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.util.Vec3
* net.minecraft.world.World
*/
package Fish.mods.slashblade.SA;
import Fish.mods.slashblade.SA.entity.EntityNoFireLightningBolt;
import java.util.List;
import mods.flammpfeil.slashblade.EntityDrive;
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.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.util.Vec3;
import net.minecraft.world.World;
public class SA_9
extends SpecialAttackBase {
public static String AttackType = StylishRankManager.AttackTypes.registerAttackType((String)"SA_9", (float)0.5f);
public String toString() {
return "SA_9";
}
public void doSpacialAttack(ItemStack stack, EntityPlayer player) {
World world = player.worldObj;
NBTTagCompound tag = ItemSlashBlade.getItemTagCompound((ItemStack)stack);
if (!world.isRemote) {
Entity tmp;
ItemSlashBlade blade = (ItemSlashBlade)stack.getItem();
Entity target = null;
int entityId = ItemSlashBlade.TargetEntityId.get(tag);
if (entityId != 0 && (tmp = world.getEntityByID(entityId)) != null && tmp.getDistanceToEntity((Entity)player) < 30.0f) {
target = tmp;
}
if (target == null) {
target = this.getEntityToWatch(player);
}
if (target != null) {
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.SlashDim);
int cost = -38;
if (!ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(-38), false)) {
ItemSlashBlade.damageItem((ItemStack)stack, (int)18, (EntityLivingBase)player);
}
StylishRankManager.setNextAttackType((Entity)player, (String)StylishRankManager.AttackTypes.PhantomSword);
blade.attackTargetEntity(stack, target, player, Boolean.valueOf(true));
player.onCriticalHit(target);
player.addPotionEffect(new PotionEffect(11, 300, 1, true));
player.addPotionEffect(new PotionEffect(5, 300, 3, true));
player.addPotionEffect(new PotionEffect(16, 1200, 3, true));
target.motionX = 0.0;
target.motionY = 0.0;
target.motionZ = 0.0;
if (target instanceof EntityLivingBase) {
blade.setDaunting((EntityLivingBase)target);
((EntityLivingBase)target).hurtTime = 0;
((EntityLivingBase)target).hurtResistantTime = 0;
}
int level = EnchantmentHelper.getEnchantmentLevel((int)Enchantment.power.effectId, (ItemStack)stack);
float magicDamage = 5.0f + ItemSlashBlade.AttackAmplifier.get(tag).floatValue() * ((float)level / 2.0f);
int count = 1 + StylishRankManager.getStylishRank((Entity)player);
for (int i = 0; i < count; ++i) {
if (world.isRemote) continue;
boolean isBurst = i % 2 == 0;
EntityWitherSword entityDrive = new EntityWitherSword(world, (EntityLivingBase)player, magicDamage, 90.0f);
if (entityDrive == null) continue;
entityDrive.setInterval(7 + i * 2);
entityDrive.setLifeTime(30);
int color = isBurst ? -14423100 : -14423100;
entityDrive.setColor(color);
entityDrive.setBurst(isBurst);
entityDrive.setTargetEntityId(target.getEntityId());
world.spawnEntityInWorld((Entity)entityDrive);
}
}
}
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.Kiriorosi);
player.worldObj.playSoundAtEntity((Entity)player, "random.explode", 0.2f, 0.6f);
if (!world.isRemote) {
int cost = -2;
if (!ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(cost), false)) {
stack.damageItem(2, (EntityLivingBase)player);
}
ItemSlashBlade blade = (ItemSlashBlade)stack.getItem();
AxisAlignedBB bb = player.boundingBox.copy();
bb = bb.expand(5.0, 0.25, 5.0);
List<Entity> list = world.getEntitiesWithinAABBExcludingEntity((Entity)player, bb, ItemSlashBlade.AttackableSelector);
for (Entity curEntity : list) {
StylishRankManager.setNextAttackType((Entity)player, (String)"SA_9");
blade.attackTargetEntity(stack, curEntity, player, Boolean.valueOf(true));
player.onCriticalHit(curEntity);
}
for (int i = 0; i < 20; ++i) {
double d0 = player.getRNG().nextGaussian() * 0.03;
double d1 = player.getRNG().nextGaussian() * 0.03;
double d2 = player.getRNG().nextGaussian() * 0.03;
double d3 = 60.0;
world.spawnParticle("witchMagic", player.posX + (double)(player.getRNG().nextFloat() * player.width * 2.0f) - (double)player.width - d0 * d3, player.posY, player.posZ + (double)(player.getRNG().nextFloat() * player.width * 2.0f) - (double)player.width - d2 * d3, d0, d1, d2);
}
float baseModif = blade.getBaseAttackModifiers(tag);
int level = Math.max(1, EnchantmentHelper.getEnchantmentLevel((int)Enchantment.power.effectId, (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);
}
player.worldObj.playSoundAtEntity((Entity)player, "ambient.weather.thunder", 0.4f, 1.0f);
double dAmbit = 12.0;
AxisAlignedBB bb2 = AxisAlignedBB.getBoundingBox((double)(player.posX - dAmbit), (double)(player.posY - dAmbit), (double)(player.posZ - dAmbit), (double)(player.posX + dAmbit), (double)(player.posY + dAmbit), (double)(player.posZ + dAmbit));
List<Entity> list2 = world.getEntitiesWithinAABBExcludingEntity((Entity)player, bb2, ItemSlashBlade.AttackableSelector);
int count = 0;
for (Entity curEntity : list2) {
if (count >= rank * 2 + 3) break;
int i = 0;
while ((double)i < 3.0 + Math.floor(rank / 2)) {
EntityDrive entityDrive = new EntityDrive(world, (EntityLivingBase)curEntity, magicDamage, false, 0.0f);
entityDrive.setLocationAndAngles(curEntity.posX, curEntity.posY + (double)curEntity.getEyeHeight() / 2.0, curEntity.posZ, curEntity.rotationYaw + (float)(120 * i) + (entityDrive.getRand().nextFloat() - 0.5f) * 120.0f, (entityDrive.getRand().nextFloat() - 0.5f) * 120.0f);
entityDrive.setDriveVector(0.5f);
entityDrive.setLifeTime(10);
entityDrive.setIsMultiHit(true);
entityDrive.setRoll(90.0f + 120.0f * (entityDrive.getRand().nextFloat() - 0.5f));
if (entityDrive != null) {
world.spawnEntityInWorld((Entity)entityDrive);
}
++i;
}
for (int j = 0; j < 10; ++j) {
double d0 = ((EntityLivingBase)curEntity).getRNG().nextGaussian() * 0.02;
double d1 = ((EntityLivingBase)curEntity).getRNG().nextGaussian() * 0.02;
double d2 = ((EntityLivingBase)curEntity).getRNG().nextGaussian() * 0.02;
double d3 = 10.0;
world.spawnParticle("witchMagic", curEntity.posX + (double)(((EntityLivingBase)curEntity).getRNG().nextFloat() * curEntity.width * 2.0f) - (double)curEntity.width - d0 * d3, curEntity.posY, curEntity.posZ + (double)(((EntityLivingBase)curEntity).getRNG().nextFloat() * curEntity.width * 2.0f) - (double)curEntity.width - d2 * d3, d0, d1, d2);
}
if (rank >= 5) {
world.addWeatherEffect((Entity)new EntityNoFireLightningBolt(world, curEntity.posX, curEntity.posY, curEntity.posZ, curEntity, ItemSlashBlade.AttackableSelector, (Entity)player, magicDamage));
}
++count;
}
}
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.Battou);
}
private Entity getEntityToWatch(EntityPlayer player) {
World world = player.worldObj;
Entity target = null;
for (int dist = 2; dist < 20; dist += 2) {
AxisAlignedBB bb = player.boundingBox.copy();
Vec3 vec = player.getLookVec();
vec = vec.normalize();
bb = bb.expand(2.0, 0.25, 2.0);
bb = bb.offset(vec.xCoord * (double)dist, vec.yCoord * (double)dist, vec.zCoord * (double)dist);
List<Entity> list = world.getEntitiesWithinAABBExcludingEntity((Entity)player, bb, ItemSlashBlade.AttackableSelector);
float distance = 100.0f;
for (Entity curEntity : list) {
float curDist = curEntity.getDistanceToEntity((Entity)player);
if (!(curDist < distance)) continue;
target = curEntity;
distance = curDist;
}
if (target != null) break;
}
return target;
}
}
@@ -0,0 +1,56 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.common.eventhandler.SubscribeEvent
* net.minecraft.entity.Entity
* net.minecraft.entity.EntityLivingBase
* net.minecraft.entity.monster.EntityEnderman
* net.minecraft.nbt.NBTTagCompound
* net.minecraftforge.event.entity.living.EnderTeleportEvent
*/
package Fish.mods.slashblade.SA.ability;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.monster.EntityEnderman;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraftforge.event.entity.living.EnderTeleportEvent;
public class EnderTeleportCanceller {
public static final String CancelingTimesStr = "SB.exsa.WarpCancel";
public static void setTeleportCancel(Entity target, int ticks) {
if (!(target instanceof EntityEnderman)) {
return;
}
target.getEntityData().setLong(CancelingTimesStr, target.worldObj.getTotalWorldTime() + (long)ticks);
}
@SubscribeEvent
public void EnderTeleportEventHandler(EnderTeleportEvent event) {
EntityLivingBase target = event.entityLiving;
if (target == null) {
return;
}
NBTTagCompound tag = target.getEntityData();
if (tag == null) {
return;
}
if (!tag.hasKey(CancelingTimesStr)) {
return;
}
long timeout = tag.getLong(CancelingTimesStr);
long now = target.worldObj.getTotalWorldTime();
if (timeout == 0L) {
return;
}
if (now < timeout && timeout - now < 12000L) {
event.setCanceled(true);
} else {
tag.removeTag(CancelingTimesStr);
}
}
}
@@ -0,0 +1,244 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.common.registry.IThrowableEntity
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ability.StylishRankManager
* mods.flammpfeil.slashblade.ability.StylishRankManager$AttackTypes
* net.minecraft.block.Block
* net.minecraft.entity.Entity
* net.minecraft.entity.EntityLivingBase
* net.minecraft.entity.projectile.EntityArrow
* net.minecraft.entity.projectile.EntityFireball
* net.minecraft.entity.projectile.EntityThrowable
* net.minecraft.util.AxisAlignedBB
* net.minecraft.util.DamageSource
* net.minecraft.util.MathHelper
* net.minecraft.util.Vec3
* net.minecraft.world.IBlockAccess
* net.minecraft.world.World
*/
package Fish.mods.slashblade.SA.entity;
import Fish.mods.slashblade.SA.entity.EntityNoFireLightningBolt;
import Fish.mods.slashblade.SA.entity.EntityPhantomSwordEx;
import cpw.mods.fml.common.registry.IThrowableEntity;
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.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.projectile.EntityArrow;
import net.minecraft.entity.projectile.EntityFireball;
import net.minecraft.entity.projectile.EntityThrowable;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.DamageSource;
import net.minecraft.util.MathHelper;
import net.minecraft.util.Vec3;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
public class EntityLightningSword
extends EntityPhantomSwordEx {
public static String AttackType = StylishRankManager.AttackTypes.registerAttackType((String)"LightningSword", (float)-0.5f);
double hitX;
double hitY;
double hitZ;
float hitYaw;
float hitPitch;
Entity ridingEntity2 = null;
float iniYaw;
float iniPitch;
boolean initIniYP = false;
public EntityLightningSword(World par1World) {
super(par1World);
}
public EntityLightningSword(World par1World, EntityLivingBase entityLiving, float AttackLevel, float roll) {
super(par1World, entityLiving, AttackLevel, roll);
}
@Override
public void onUpdate() {
if (this.thrower == null) {
this.setDead();
return;
}
if (this.ridingEntity2 != null) {
this.updateRidden();
} else {
Block nBlock;
Entity target;
List<Entity> list;
this.lastTickPosX = this.posX;
this.lastTickPosY = this.posY;
this.lastTickPosZ = this.posZ;
double dAmbit = 0.75;
AxisAlignedBB bb = AxisAlignedBB.getBoundingBox((double)(this.posX - dAmbit), (double)(this.posY - dAmbit), (double)(this.posZ - dAmbit), (double)(this.posX + dAmbit), (double)(this.posY + dAmbit), (double)(this.posZ + dAmbit));
if (this.getThrower() instanceof EntityLivingBase) {
EntityLivingBase entityLiving = (EntityLivingBase)this.getThrower();
list = this.worldObj.getEntitiesWithinAABBExcludingEntity(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 : list) {
boolean isDestruction = true;
if (curEntity instanceof EntityFireball) {
isDestruction = ((EntityFireball)curEntity).shootingEntity != null && ((EntityFireball)curEntity).shootingEntity.getEntityId() == entityLiving.getEntityId() ? false : !curEntity.attackEntityFrom(DamageSource.causeMobDamage((EntityLivingBase)entityLiving), this.AttackLevel);
} else if (curEntity instanceof EntityArrow) {
if (((EntityArrow)curEntity).shootingEntity != null && ((EntityArrow)curEntity).shootingEntity.getEntityId() == entityLiving.getEntityId()) {
isDestruction = false;
}
} else if (curEntity instanceof IThrowableEntity) {
if (((IThrowableEntity)curEntity).getThrower() != null && ((IThrowableEntity)curEntity).getThrower().getEntityId() == entityLiving.getEntityId()) {
isDestruction = false;
}
} else if (curEntity instanceof EntityThrowable && ((EntityThrowable)curEntity).getThrower() != null && ((EntityThrowable)curEntity).getThrower().getEntityId() == entityLiving.getEntityId()) {
isDestruction = false;
}
if (!isDestruction) continue;
curEntity.motionX = 0.0;
curEntity.motionY = 0.0;
curEntity.motionZ = 0.0;
curEntity.setDead();
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.worldObj.spawnParticle("explode", curEntity.posX + (double)(rand.nextFloat() * curEntity.width * 2.0f) - (double)curEntity.width - var2 * var8, curEntity.posY + (double)(rand.nextFloat() * curEntity.height) - var4 * var8, curEntity.posZ + (double)(rand.nextFloat() * curEntity.width * 2.0f) - (double)curEntity.width - var6 * var8, var2, var4, var6);
}
StylishRankManager.doAttack((Entity)this.thrower);
this.setDead();
return;
}
}
list = this.worldObj.getEntitiesWithinAABBExcludingEntity(this.getThrower(), bb, ItemSlashBlade.AttackableSelector);
list.removeAll(this.alreadyHitEntity);
if (this.getTargetEntityId() != 0 && (target = this.worldObj.getEntityByID(this.getTargetEntityId())) != null && target.isEntityAlive() && target.boundingBox.intersectsWith(bb)) {
list.add(target);
}
this.alreadyHitEntity.addAll(list);
Vec3 vec31 = Vec3.createVectorHelper((double)this.posX, (double)this.posY, (double)this.posZ);
Vec3 vec3 = Vec3.createVectorHelper((double)(this.posX + this.motionX), (double)(this.posY + this.motionY), (double)(this.posZ + this.motionZ));
double d0 = 10.0;
Entity hitEntity = null;
for (Entity curEntity : list) {
double d1;
if (!curEntity.canBeCollidedWith() || !((d1 = (double)curEntity.getDistanceToEntity((Entity)this)) < d0) && d0 != 0.0) continue;
hitEntity = curEntity;
d0 = d1;
}
if (hitEntity != null && !hitEntity.isDead) {
if (!this.worldObj.isRemote) {
this.worldObj.addWeatherEffect((Entity)new EntityNoFireLightningBolt(this.worldObj, hitEntity.posX, hitEntity.posY, hitEntity.posZ, hitEntity, ItemSlashBlade.AttackableSelector, this.thrower, this.AttackLevel));
}
StylishRankManager.doAttack((Entity)this.thrower);
this.setDead();
}
int nPosX = MathHelper.floor_double((double)this.posX);
int nPosY = MathHelper.floor_double((double)this.posY);
int nPosZ = MathHelper.floor_double((double)this.posZ);
if (this.ridingEntity2 == null && !(nBlock = this.worldObj.getBlock(nPosX, nPosY, nPosZ)).isAir((IBlockAccess)this.worldObj, nPosX, nPosY, nPosZ) && nBlock.getCollisionBoundingBoxFromPool(this.worldObj, nPosX, nPosY, nPosZ) != null) {
this.setDead();
return;
}
if (this.getInterval() < this.ticksExisted) {
this.posX += this.motionX;
this.posY += this.motionY;
this.posZ += this.motionZ;
} else {
this.doTargeting();
}
this.setPosition(this.posX, this.posY, this.posZ);
if (this.ticksExisted >= this.getLifeTime()) {
this.setDead();
}
}
}
@Override
public void mountEntity(Entity par1Entity) {
if (par1Entity != null) {
this.hitYaw = this.rotationYaw - par1Entity.rotationYaw;
this.hitPitch = this.rotationPitch - par1Entity.rotationPitch;
this.hitX = this.posX - par1Entity.posX;
this.hitY = this.posY - par1Entity.posY;
this.hitZ = this.posZ - par1Entity.posZ;
this.ridingEntity2 = par1Entity;
this.ticksExisted = Math.max(0, this.getLifeTime() - 20);
}
}
@Override
public void doTargeting() {
Entity target;
int targetid = this.getTargetEntityId();
if (targetid != 0 && (target = this.worldObj.getEntityByID(targetid)) != null && this.thrower != null && !this.thrower.isDead) {
if (!this.initIniYP) {
this.initIniYP = true;
if (this.getIniPitch() < -700.0f) {
this.iniYaw = this.thrower.rotationYaw;
this.iniPitch = this.thrower.rotationPitch;
} else {
this.iniYaw = this.getIniYaw();
this.iniPitch = this.getIniPitch();
}
}
this.faceEntity((Entity)this, target, (float)this.ticksExisted * 1.0f, (float)this.ticksExisted * 1.0f);
this.setDriveVector(1.75f, false);
}
}
@Override
public void faceEntity(Entity viewer, Entity target, float yawStep, float pitchStep) {
double d2;
double d0 = target.posX - viewer.posX;
double d1 = target.posZ - viewer.posZ;
if (target instanceof EntityLivingBase) {
EntityLivingBase entitylivingbase = (EntityLivingBase)target;
d2 = entitylivingbase.posY + (double)entitylivingbase.getEyeHeight() - (viewer.posY + (double)viewer.getEyeHeight());
} else {
d2 = (target.boundingBox.minY + target.boundingBox.maxY) / 2.0 - (viewer.posY + (double)viewer.getEyeHeight());
}
double d3 = MathHelper.sqrt_double((double)(d0 * d0 + d1 * d1));
float f2 = (float)(Math.atan2(d1, d0) * 180.0 / Math.PI) - 90.0f;
float f3 = (float)(-(Math.atan2(d2, d3) * 180.0 / Math.PI));
this.iniPitch = this.updateRotation(this.iniPitch, f3, pitchStep);
this.iniYaw = this.updateRotation(this.iniYaw, f2, yawStep);
}
private float updateRotation(float par1, float par2, float par3) {
float f3 = MathHelper.wrapAngleTo180_float((float)(par2 - par1));
if (f3 > par3) {
f3 = par3;
}
if (f3 < -par3) {
f3 = -par3;
}
return par1 + f3;
}
@Override
public void setDriveVector(float fYVecOfst, boolean init) {
super.setDriveVector(fYVecOfst, init);
float fYawDtoR = this.iniYaw / 180.0f * 3.141593f;
float fPitDtoR = this.iniPitch / 180.0f * 3.141593f;
this.motionX = -MathHelper.sin((float)fYawDtoR) * MathHelper.cos((float)fPitDtoR) * fYVecOfst;
this.motionY = -MathHelper.sin((float)fPitDtoR) * fYVecOfst;
this.motionZ = MathHelper.cos((float)fYawDtoR) * MathHelper.cos((float)fPitDtoR) * fYVecOfst;
float f3 = MathHelper.sqrt_double((double)(this.motionX * this.motionX + this.motionZ * this.motionZ));
this.rotationYaw = (float)(Math.atan2(this.motionX, this.motionZ) * 180.0 / Math.PI);
this.rotationPitch = (float)(Math.atan2(this.motionY, f3) * 180.0 / Math.PI);
if (init) {
this.prevRotationYaw = this.rotationYaw;
this.prevRotationPitch = this.rotationPitch;
}
}
}
@@ -0,0 +1,143 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ability.StylishRankManager
* net.minecraft.command.IEntitySelector
* net.minecraft.enchantment.Enchantment
* net.minecraft.enchantment.EnchantmentHelper
* net.minecraft.entity.Entity
* net.minecraft.entity.effect.EntityLightningBolt
* net.minecraft.entity.player.EntityPlayer
* net.minecraft.item.ItemStack
* net.minecraft.nbt.NBTTagCompound
* net.minecraft.util.AxisAlignedBB
* net.minecraft.util.DamageSource
* net.minecraft.world.World
* net.minecraftforge.event.ForgeEventFactory
*/
package Fish.mods.slashblade.SA.entity;
import Fish.mods.slashblade.SA.ability.EnderTeleportCanceller;
import java.util.List;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.ability.StylishRankManager;
import net.minecraft.command.IEntitySelector;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.enchantment.EnchantmentHelper;
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.util.AxisAlignedBB;
import net.minecraft.util.DamageSource;
import net.minecraft.world.World;
import net.minecraftforge.event.ForgeEventFactory;
public class EntityNoFireLightningBolt
extends EntityLightningBolt {
private int lightningState;
private int boltLivingTime;
private Entity target;
private IEntitySelector selector;
private static String doFireTickTmp = "true";
protected float AttackLevel = 0.0f;
protected Entity thrower;
private float magicDamage = 0.0f;
public static World StoreDoFireTick(World world) {
doFireTickTmp = world.getGameRules().getGameRuleStringValue("doFireTick");
world.getGameRules().setOrCreateGameRule("doFireTick", "false");
return world;
}
public static World RestoreDoFireTick(World world) {
world.getGameRules().setOrCreateGameRule("doFireTick", doFireTickTmp);
return world;
}
public EntityNoFireLightningBolt(World p_i1703_1_, double p_i1703_2_, double p_i1703_4_, double p_i1703_6_, Entity target, IEntitySelector selector, Entity thrower) {
this(p_i1703_1_, p_i1703_2_, p_i1703_4_, p_i1703_6_, target, selector, thrower, 0.0f);
}
public EntityNoFireLightningBolt(World p_i1703_1_, double p_i1703_2_, double p_i1703_4_, double p_i1703_6_, Entity target, IEntitySelector selector, Entity thrower, float magicDamage) {
super(EntityNoFireLightningBolt.StoreDoFireTick(p_i1703_1_), p_i1703_2_, p_i1703_4_, p_i1703_6_);
EntityNoFireLightningBolt.RestoreDoFireTick(p_i1703_1_);
this.lightningState = 2;
this.boltLivingTime = this.rand.nextInt(3) + 1;
this.target = target;
this.selector = selector;
this.thrower = thrower;
this.magicDamage = magicDamage;
}
public void onUpdate() {
if (this.thrower == null) {
this.setDead();
return;
}
this.onEntityUpdate();
if (this.lightningState == 2) {
this.worldObj.playSoundEffect(this.posX, this.posY, this.posZ, "ambient.weather.thunder", 10000.0f, 0.8f + this.rand.nextFloat() * 0.2f);
this.worldObj.playSoundEffect(this.posX, this.posY, this.posZ, "random.explode", 2.0f, 0.5f + this.rand.nextFloat() * 0.2f);
}
--this.lightningState;
if (this.lightningState < 0) {
if (this.boltLivingTime <= 0) {
this.setDead();
} else if (this.lightningState < -this.rand.nextInt(10)) {
--this.boltLivingTime;
this.lightningState = 1;
this.boltVertex = this.rand.nextLong();
}
}
if (this.lightningState >= 0) {
ItemStack stack;
double d0 = 3.0;
List list = this.worldObj.getEntitiesWithinAABBExcludingEntity((Entity)this, AxisAlignedBB.getBoundingBox((double)(this.posX - d0), (double)(this.posY - d0), (double)(this.posZ - d0), (double)(this.posX + d0), (double)(this.posY + 6.0 + d0), (double)(this.posZ + d0)), this.selector);
if (this.target.isEntityAlive()) {
list.add(this.target);
}
if ((stack = ((EntityPlayer)this.thrower).getHeldItem()) != null && stack.getItem() instanceof ItemSlashBlade) {
int spLightLevel;
if (this.magicDamage == 0.0f) {
NBTTagCompound tag = ItemSlashBlade.getItemTagCompound((ItemStack)stack);
int rank = StylishRankManager.getStylishRank((Entity)this.thrower);
int level = EnchantmentHelper.getEnchantmentLevel((int)Enchantment.power.effectId, (ItemStack)stack);
this.magicDamage = 1.0f + (ItemSlashBlade.AttackAmplifier.get(tag).floatValue() * -0.2f + (float)level / 20.0f + 0.04f * (float)rank);
}
stack.getItem();
NBTTagCompound nbt = ItemSlashBlade.getSpecialEffect((ItemStack)stack);
if (nbt != null && (spLightLevel = nbt.getInteger("SPLighting")) > 1) {
this.magicDamage = (float)((double)this.magicDamage * ((double)spLightLevel * 0.5));
}
if (this.magicDamage < 1.0f) {
this.magicDamage = 1.0f;
}
for (int l = 0; l < list.size(); ++l) {
Entity entity;
if (this.worldObj.isRemote || (entity = (Entity)list.get(l)) == null || entity.isDead) continue;
if (entity.hurtResistantTime != 5) {
entity.hurtResistantTime = 5;
}
EnderTeleportCanceller.setTeleportCancel(entity, 600);
if (ForgeEventFactory.onEntityStruckByLightning((Entity)entity, (EntityLightningBolt)this)) continue;
entity.attackEntityFrom(DamageSource.onFire, this.magicDamage);
entity.setFire(6);
}
}
}
}
protected void entityInit() {
}
protected void readEntityFromNBT(NBTTagCompound p_70037_1_) {
}
protected void writeEntityToNBT(NBTTagCompound p_70014_1_) {
}
}
@@ -0,0 +1,323 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.common.registry.IThrowableEntity
* mods.flammpfeil.slashblade.EntityPhantomSword
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ability.StylishRankManager
* mods.flammpfeil.slashblade.ability.StylishRankManager$AttackTypes
* net.minecraft.block.Block
* net.minecraft.entity.Entity
* net.minecraft.entity.EntityLivingBase
* net.minecraft.entity.projectile.EntityArrow
* net.minecraft.entity.projectile.EntityFireball
* net.minecraft.entity.projectile.EntityThrowable
* net.minecraft.util.AxisAlignedBB
* net.minecraft.util.DamageSource
* net.minecraft.util.EntityDamageSource
* net.minecraft.util.MathHelper
* net.minecraft.util.Vec3
* net.minecraft.world.IBlockAccess
* net.minecraft.world.World
*/
package Fish.mods.slashblade.SA.entity;
import cpw.mods.fml.common.registry.IThrowableEntity;
import java.util.List;
import java.util.Random;
import mods.flammpfeil.slashblade.EntityPhantomSword;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.ability.StylishRankManager;
import net.minecraft.block.Block;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.projectile.EntityArrow;
import net.minecraft.entity.projectile.EntityFireball;
import net.minecraft.entity.projectile.EntityThrowable;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.DamageSource;
import net.minecraft.util.EntityDamageSource;
import net.minecraft.util.MathHelper;
import net.minecraft.util.Vec3;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
public class EntityPhantomSwordEx
extends EntityPhantomSword {
double hitX;
double hitY;
double hitZ;
float hitYaw;
float hitPitch;
Entity ridingEntity2 = null;
float iniYaw;
float iniPitch;
boolean initIniYP = false;
public EntityPhantomSwordEx(World par1World) {
super(par1World);
}
public EntityPhantomSwordEx(World par1World, EntityLivingBase entityLiving, float AttackLevel, float roll) {
super(par1World, entityLiving, AttackLevel, roll);
}
protected void entityInit() {
super.entityInit();
this.getDataWatcher().addObject(7, 7);
this.getDataWatcher().addObject(8, Float.valueOf(0.0f));
this.getDataWatcher().addObject(9, Float.valueOf(-720.0f));
this.getDataWatcher().addObject(10, 0x3333FF);
}
public int getInterval() {
return this.getDataWatcher().getWatchableObjectInt(7);
}
public void setInterval(int value) {
this.getDataWatcher().updateObject(7, value);
}
public float getIniYaw() {
return this.getDataWatcher().getWatchableObjectFloat(8);
}
public void setIniYaw(float value) {
this.getDataWatcher().updateObject(8, Float.valueOf(value));
}
public float getIniPitch() {
return this.getDataWatcher().getWatchableObjectFloat(9);
}
public void setIniPitch(float value) {
this.getDataWatcher().updateObject(9, Float.valueOf(value));
}
public int getColor() {
return this.getDataWatcher().getWatchableObjectInt(10);
}
public void setColor(int value) {
this.getDataWatcher().updateObject(10, value);
}
public void updateRidden() {
Entity ridingEntity = this.ridingEntity2;
if (ridingEntity.isDead) {
this.setDead();
return;
}
this.lastTickPosX = this.posX;
this.lastTickPosY = this.posY;
this.lastTickPosZ = this.posZ;
this.posX = ridingEntity.posX + (this.hitX * Math.cos(Math.toRadians(ridingEntity.rotationYaw)) - this.hitZ * Math.sin(Math.toRadians(ridingEntity.rotationYaw)));
this.posY = ridingEntity.posY + this.hitY;
this.posZ = ridingEntity.posZ + (this.hitX * Math.sin(Math.toRadians(ridingEntity.rotationYaw)) + this.hitZ * Math.cos(Math.toRadians(ridingEntity.rotationYaw)));
this.rotationPitch = ridingEntity.rotationPitch + this.hitPitch;
this.rotationYaw = ridingEntity.rotationYaw + this.hitYaw;
this.setPosition(this.posX, this.posY, this.posZ);
this.setRotation(this.rotationYaw, this.rotationPitch);
if (this.ticksExisted >= this.getLifeTime()) {
if (!ridingEntity.isDead) {
float magicDamage = Math.max(1.0f, this.AttackLevel / 2.0f);
ridingEntity.hurtResistantTime = 0;
DamageSource ds = new EntityDamageSource("directMagic", this.getThrower()).setDamageBypassesArmor().setMagicDamage();
ridingEntity.attackEntityFrom(ds, magicDamage);
if (this.blade != null && ridingEntity instanceof EntityLivingBase) {
StylishRankManager.setNextAttackType((Entity)this.thrower, (String)StylishRankManager.AttackTypes.BreakPhantomSword);
((ItemSlashBlade)this.blade.getItem()).hitEntity(this.blade, (EntityLivingBase)ridingEntity, (EntityLivingBase)this.thrower);
ridingEntity.motionX = 0.0;
ridingEntity.motionY = 0.0;
ridingEntity.motionZ = 0.0;
ridingEntity.addVelocity(0.0, 0.1, 0.0);
}
}
this.setDead();
}
}
public void onUpdate() {
if (this.thrower == null) {
this.setDead();
return;
}
if (this.ridingEntity2 != null) {
this.updateRidden();
} else {
Block nBlock;
Entity target;
List<Entity> list;
this.lastTickPosX = this.posX;
this.lastTickPosY = this.posY;
this.lastTickPosZ = this.posZ;
double dAmbit = 0.75;
AxisAlignedBB bb = AxisAlignedBB.getBoundingBox((double)(this.posX - dAmbit), (double)(this.posY - dAmbit), (double)(this.posZ - dAmbit), (double)(this.posX + dAmbit), (double)(this.posY + dAmbit), (double)(this.posZ + dAmbit));
if (this.getThrower() instanceof EntityLivingBase) {
EntityLivingBase entityLiving = (EntityLivingBase)this.getThrower();
list = this.worldObj.getEntitiesWithinAABBExcludingEntity(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 : list) {
boolean isDestruction = true;
if (curEntity instanceof EntityFireball) {
isDestruction = ((EntityFireball)curEntity).shootingEntity != null && ((EntityFireball)curEntity).shootingEntity.getEntityId() == entityLiving.getEntityId() ? false : !curEntity.attackEntityFrom(DamageSource.causeMobDamage((EntityLivingBase)entityLiving), this.AttackLevel);
} else if (curEntity instanceof EntityArrow) {
if (((EntityArrow)curEntity).shootingEntity != null && ((EntityArrow)curEntity).shootingEntity.getEntityId() == entityLiving.getEntityId()) {
isDestruction = false;
}
} else if (curEntity instanceof IThrowableEntity) {
if (((IThrowableEntity)curEntity).getThrower() != null && ((IThrowableEntity)curEntity).getThrower().getEntityId() == entityLiving.getEntityId()) {
isDestruction = false;
}
} else if (curEntity instanceof EntityThrowable && ((EntityThrowable)curEntity).getThrower() != null && ((EntityThrowable)curEntity).getThrower().getEntityId() == entityLiving.getEntityId()) {
isDestruction = false;
}
if (!isDestruction) continue;
curEntity.motionX = 0.0;
curEntity.motionY = 0.0;
curEntity.motionZ = 0.0;
curEntity.setDead();
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.worldObj.spawnParticle("explode", curEntity.posX + (double)(rand.nextFloat() * curEntity.width * 2.0f) - (double)curEntity.width - var2 * var8, curEntity.posY + (double)(rand.nextFloat() * curEntity.height) - var4 * var8, curEntity.posZ + (double)(rand.nextFloat() * curEntity.width * 2.0f) - (double)curEntity.width - var6 * var8, var2, var4, var6);
}
StylishRankManager.doAttack((Entity)this.thrower);
this.setDead();
return;
}
}
list = this.worldObj.getEntitiesWithinAABBExcludingEntity(this.getThrower(), bb, ItemSlashBlade.AttackableSelector);
list.removeAll(this.alreadyHitEntity);
if (this.getTargetEntityId() != 0 && (target = this.worldObj.getEntityByID(this.getTargetEntityId())) != null && target.isEntityAlive() && target.boundingBox.intersectsWith(bb)) {
list.add(target);
}
this.alreadyHitEntity.addAll(list);
Vec3 vec31 = Vec3.createVectorHelper((double)this.posX, (double)this.posY, (double)this.posZ);
Vec3 vec3 = Vec3.createVectorHelper((double)(this.posX + this.motionX), (double)(this.posY + this.motionY), (double)(this.posZ + this.motionZ));
double d0 = 10.0;
Entity hitEntity = null;
for (Entity curEntity : list) {
double d1;
if (!curEntity.canBeCollidedWith() || !((d1 = (double)curEntity.getDistanceToEntity((Entity)this)) < d0) && d0 != 0.0) continue;
hitEntity = curEntity;
d0 = d1;
}
if (hitEntity != null) {
float magicDamage = Math.max(1.0f, this.AttackLevel);
hitEntity.hurtResistantTime = 5;
DamageSource ds = new EntityDamageSource("directMagic", this.getThrower()).setDamageBypassesArmor().setMagicDamage();
hitEntity.attackEntityFrom(ds, magicDamage);
if (this.blade != null && hitEntity instanceof EntityLivingBase) {
StylishRankManager.setNextAttackType((Entity)this.thrower, (String)StylishRankManager.AttackTypes.PhantomSword);
((ItemSlashBlade)this.blade.getItem()).hitEntity(this.blade, (EntityLivingBase)hitEntity, (EntityLivingBase)this.thrower);
hitEntity.motionX = 0.0;
hitEntity.motionY = 0.0;
hitEntity.motionZ = 0.0;
hitEntity.addVelocity(0.0, 0.1, 0.0);
}
this.mountEntity(hitEntity);
}
int nPosX = MathHelper.floor_double((double)this.posX);
int nPosY = MathHelper.floor_double((double)this.posY);
int nPosZ = MathHelper.floor_double((double)this.posZ);
if (this.ridingEntity2 == null && !(nBlock = this.worldObj.getBlock(nPosX, nPosY, nPosZ)).isAir((IBlockAccess)this.worldObj, nPosX, nPosY, nPosZ) && nBlock.getCollisionBoundingBoxFromPool(this.worldObj, nPosX, nPosY, nPosZ) != null) {
this.setDead();
return;
}
if (this.getInterval() < this.ticksExisted) {
this.posX += this.motionX;
this.posY += this.motionY;
this.posZ += this.motionZ;
} else {
this.doTargeting();
}
this.setPosition(this.posX, this.posY, this.posZ);
if (this.ticksExisted >= this.getLifeTime()) {
this.setDead();
}
}
}
public void mountEntity(Entity par1Entity) {
if (par1Entity != null) {
this.hitYaw = this.rotationYaw - par1Entity.rotationYaw;
this.hitPitch = this.rotationPitch - par1Entity.rotationPitch;
this.hitX = this.posX - par1Entity.posX;
this.hitY = this.posY - par1Entity.posY;
this.hitZ = this.posZ - par1Entity.posZ;
this.ridingEntity2 = par1Entity;
this.ticksExisted = Math.max(0, this.getLifeTime() - 20);
}
}
public void doTargeting() {
Entity target;
int targetid = this.getTargetEntityId();
if (targetid != 0 && (target = this.worldObj.getEntityByID(targetid)) != null && this.thrower != null && !this.thrower.isDead) {
if (!this.initIniYP) {
this.initIniYP = true;
if (this.getIniPitch() < -700.0f) {
this.iniYaw = this.thrower.rotationYaw;
this.iniPitch = this.thrower.rotationPitch;
} else {
this.iniYaw = this.getIniYaw();
this.iniPitch = this.getIniPitch();
}
}
this.faceEntity((Entity)this, target, (float)this.ticksExisted * 1.0f, (float)this.ticksExisted * 1.0f);
this.setDriveVector(1.75f, false);
}
}
public void faceEntity(Entity viewer, Entity target, float yawStep, float pitchStep) {
double d2;
double d0 = target.posX - viewer.posX;
double d1 = target.posZ - viewer.posZ;
if (target instanceof EntityLivingBase) {
EntityLivingBase entitylivingbase = (EntityLivingBase)target;
d2 = entitylivingbase.posY + (double)entitylivingbase.getEyeHeight() - (viewer.posY + (double)viewer.getEyeHeight());
} else {
d2 = (target.boundingBox.minY + target.boundingBox.maxY) / 2.0 - (viewer.posY + (double)viewer.getEyeHeight());
}
double d3 = MathHelper.sqrt_double((double)(d0 * d0 + d1 * d1));
float f2 = (float)(Math.atan2(d1, d0) * 180.0 / Math.PI) - 90.0f;
float f3 = (float)(-(Math.atan2(d2, d3) * 180.0 / Math.PI));
this.iniPitch = this.updateRotation(this.iniPitch, f3, pitchStep);
this.iniYaw = this.updateRotation(this.iniYaw, f2, yawStep);
}
private float updateRotation(float par1, float par2, float par3) {
float f3 = MathHelper.wrapAngleTo180_float((float)(par2 - par1));
if (f3 > par3) {
f3 = par3;
}
if (f3 < -par3) {
f3 = -par3;
}
return par1 + f3;
}
public void setDriveVector(float fYVecOfst, boolean init) {
super.setDriveVector(fYVecOfst, init);
float fYawDtoR = this.iniYaw / 180.0f * 3.141593f;
float fPitDtoR = this.iniPitch / 180.0f * 3.141593f;
this.motionX = -MathHelper.sin((float)fYawDtoR) * MathHelper.cos((float)fPitDtoR) * fYVecOfst;
this.motionY = -MathHelper.sin((float)fPitDtoR) * fYVecOfst;
this.motionZ = MathHelper.cos((float)fYawDtoR) * MathHelper.cos((float)fPitDtoR) * fYVecOfst;
float f3 = MathHelper.sqrt_double((double)(this.motionX * this.motionX + this.motionZ * this.motionZ));
this.rotationYaw = (float)(Math.atan2(this.motionX, this.motionZ) * 180.0 / Math.PI);
this.rotationPitch = (float)(Math.atan2(this.motionY, f3) * 180.0 / Math.PI);
if (init) {
this.prevRotationYaw = this.rotationYaw;
this.prevRotationPitch = this.rotationPitch;
}
}
}
@@ -0,0 +1,8 @@
/*
* Decompiled with CFR 0.152.
*/
package Fish.mods.slashblade.SA.entity;
public class Fish_1 {
}
@@ -0,0 +1,80 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.common.eventhandler.SubscribeEvent
* cpw.mods.fml.common.registry.GameRegistry
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
* mods.flammpfeil.slashblade.RecipeAwakeBlade
* mods.flammpfeil.slashblade.SlashBlade
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
* net.minecraft.enchantment.Enchantment
* net.minecraft.init.Blocks
* net.minecraft.item.Item
* net.minecraft.item.ItemStack
* net.minecraft.item.crafting.IRecipe
* net.minecraft.nbt.NBTTagCompound
*/
package Fish.mods.slashblade.black;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
import mods.flammpfeil.slashblade.SlashBlade;
import mods.flammpfeil.slashblade.named.event.LoadEvent;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.nbt.NBTTagCompound;
public class Black_Blade {
public static ItemSlashBladeNamed bladeNamed;
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name_heiren = "flammpfeil.slashblade.named.blackblade";
String namerust2 = "flammpfeil.slashblade.named.xblades";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
NBTTagCompound tag = new NBTTagCompound();
customblade.setTagCompound(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name_heiren);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(200));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)13.0f);
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.TextureName.set(tag, "named/sword/pseudosword");
ItemSlashBlade.ModelName.set(tag, "named/sword/sword");
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(6));
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
ItemSlashBlade.KillCount.set(tag, Integer.valueOf(1000));
ItemSlashBlade.ProudSoul.set(tag, Integer.valueOf(20000));
ItemSlashBlade.RepairCount.set(tag, Integer.valueOf(10));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(-0.2f));
ItemSlashBlade.BaseAttackModifier.set(tag, Float.valueOf(14.0f));
ItemSlashBlade.SummonedSwordColor.set(tag, Integer.valueOf(0));
GameRegistry.registerCustomItemStack((String)name_heiren, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name_heiren);
customblade.addEnchantment(Enchantment.knockback, 2);
customblade.addEnchantment(Enchantment.baneOfArthropods, 3);
customblade.addEnchantment(Enchantment.sharpness, 5);
customblade.addEnchantment(Enchantment.unbreaking, 3);
customblade.addEnchantment(Enchantment.looting, 3);
customblade.addEnchantment(Enchantment.fireAspect, 2);
ItemStack custombladeReqiredF = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)namerust2, (int)1);
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqiredF);
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(1000));
ItemSlashBlade.ProudSoul.set(reqTag, Integer.valueOf(20000));
ItemSlashBlade.RepairCount.set(reqTag, Integer.valueOf(10));
custombladeReqiredF.addEnchantment(Enchantment.knockback, 1);
custombladeReqiredF.addEnchantment(Enchantment.baneOfArthropods, 1);
custombladeReqiredF.addEnchantment(Enchantment.unbreaking, 1);
custombladeReqiredF.addEnchantment(Enchantment.looting, 1);
ItemStack blackblade = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name_heiren, (int)1);
SlashBlade.addRecipe((String)name_heiren, (IRecipe)new RecipeAwakeBlade(blackblade, custombladeReqiredF, new Object[]{"SKD", "RBD", "IKD", Character.valueOf('K'), GameRegistry.findItemStack((String)"minecraft", (String)"nether_star", (int)1), Character.valueOf('D'), GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"proudsoul", (int)1), Character.valueOf('R'), new ItemStack(Blocks.diamond_block), Character.valueOf('I'), new ItemStack(Blocks.coal_block), Character.valueOf('S'), GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1), Character.valueOf('B'), custombladeReqiredF}));
}
}
@@ -0,0 +1,59 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.common.eventhandler.SubscribeEvent
* cpw.mods.fml.common.registry.GameRegistry
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
* mods.flammpfeil.slashblade.RecipeAwakeBlade
* mods.flammpfeil.slashblade.SlashBlade
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
* net.minecraft.item.Item
* net.minecraft.item.ItemStack
* net.minecraft.item.crafting.IRecipe
* net.minecraft.nbt.NBTTagCompound
*/
package Fish.mods.slashblade.black;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
import mods.flammpfeil.slashblade.SlashBlade;
import mods.flammpfeil.slashblade.named.event.LoadEvent;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.nbt.NBTTagCompound;
public class Blade1 {
public static ItemSlashBladeNamed bladeNamed;
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.blade1";
String namerust2 = "flammpfeil.slashblade.named.xblades";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
NBTTagCompound tag = new NBTTagCompound();
customblade.setTagCompound(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(1561));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)7.0f);
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.TextureName.set(tag, "named/blade/blade1");
ItemSlashBlade.ModelName.set(tag, "named/blade/blade");
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(0));
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(-0.2f));
ItemSlashBlade.BaseAttackModifier.set(tag, Float.valueOf(7.0f));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
ItemStack NEWcustombladeReqired2 = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)namerust2, (int)1);
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)NEWcustombladeReqired2);
ItemStack whitenblade = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(whitenblade, NEWcustombladeReqired2, new Object[]{" X ", " X ", " FK", Character.valueOf('F'), GameRegistry.findItemStack((String)"minecraft", (String)"stick", (int)1), Character.valueOf('X'), GameRegistry.findItemStack((String)"minecraft", (String)"diamond", (int)1), Character.valueOf('K'), GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"proudsoul", (int)1)}));
}
}
@@ -0,0 +1,59 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.common.eventhandler.SubscribeEvent
* cpw.mods.fml.common.registry.GameRegistry
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
* mods.flammpfeil.slashblade.RecipeAwakeBlade
* mods.flammpfeil.slashblade.SlashBlade
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
* net.minecraft.item.Item
* net.minecraft.item.ItemStack
* net.minecraft.item.crafting.IRecipe
* net.minecraft.nbt.NBTTagCompound
*/
package Fish.mods.slashblade.black;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
import mods.flammpfeil.slashblade.SlashBlade;
import mods.flammpfeil.slashblade.named.event.LoadEvent;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.nbt.NBTTagCompound;
public class Blade2 {
public static ItemSlashBladeNamed bladeNamed;
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.blade2";
String namerust2 = "flammpfeil.slashblade.named.xblades";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
NBTTagCompound tag = new NBTTagCompound();
customblade.setTagCompound(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(250));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)6.0f);
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.TextureName.set(tag, "named/blade/blade2");
ItemSlashBlade.ModelName.set(tag, "named/blade/blade");
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(0));
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(-0.2f));
ItemSlashBlade.BaseAttackModifier.set(tag, Float.valueOf(6.0f));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
ItemStack NEWcustombladeReqired2 = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)namerust2, (int)1);
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)NEWcustombladeReqired2);
ItemStack whitenblade = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(whitenblade, NEWcustombladeReqired2, new Object[]{" X ", " X ", " FK", Character.valueOf('F'), GameRegistry.findItemStack((String)"minecraft", (String)"stick", (int)1), Character.valueOf('X'), GameRegistry.findItemStack((String)"minecraft", (String)"iron_ingot", (int)1), Character.valueOf('K'), GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"proudsoul", (int)1)}));
}
}
@@ -0,0 +1,61 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.common.eventhandler.SubscribeEvent
* cpw.mods.fml.common.registry.GameRegistry
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
* mods.flammpfeil.slashblade.RecipeAwakeBlade
* mods.flammpfeil.slashblade.SlashBlade
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
* net.minecraft.init.Blocks
* net.minecraft.item.Item
* net.minecraft.item.ItemStack
* net.minecraft.item.crafting.IRecipe
* net.minecraft.nbt.NBTTagCompound
*/
package Fish.mods.slashblade.black;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
import mods.flammpfeil.slashblade.SlashBlade;
import mods.flammpfeil.slashblade.named.event.LoadEvent;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.nbt.NBTTagCompound;
public class Blade3 {
public static ItemSlashBladeNamed bladeNamed;
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.blade3";
String namerust2 = "flammpfeil.slashblade.named.xblades";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
NBTTagCompound tag = new NBTTagCompound();
customblade.setTagCompound(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(131));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)5.0f);
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.TextureName.set(tag, "named/blade/blade3");
ItemSlashBlade.ModelName.set(tag, "named/blade/blade");
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(0));
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(-0.2f));
ItemSlashBlade.BaseAttackModifier.set(tag, Float.valueOf(5.0f));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
ItemStack NEWcustombladeReqired2 = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)namerust2, (int)1);
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)NEWcustombladeReqired2);
ItemStack whitenblade = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(whitenblade, NEWcustombladeReqired2, new Object[]{" X ", " X ", " FK", Character.valueOf('F'), GameRegistry.findItemStack((String)"minecraft", (String)"stick", (int)1), Character.valueOf('X'), new ItemStack(Blocks.cobblestone), Character.valueOf('K'), GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"proudsoul", (int)1)}));
}
}
@@ -0,0 +1,76 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.common.eventhandler.SubscribeEvent
* cpw.mods.fml.common.registry.GameRegistry
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
* mods.flammpfeil.slashblade.RecipeAwakeBlade
* mods.flammpfeil.slashblade.SlashBlade
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
* net.minecraft.enchantment.Enchantment
* net.minecraft.init.Blocks
* net.minecraft.item.Item
* net.minecraft.item.ItemStack
* net.minecraft.item.crafting.IRecipe
* net.minecraft.nbt.NBTTagCompound
*/
package Fish.mods.slashblade.black;
import Fish.mods.slashblade.SA.SA_5;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
import mods.flammpfeil.slashblade.SlashBlade;
import mods.flammpfeil.slashblade.named.event.LoadEvent;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.nbt.NBTTagCompound;
public class Dimension {
public static ItemSlashBladeNamed bladeNamed;
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name_heiren = "flammpfeil.slashblade.named.dimension";
String namerust2 = "flammpfeil.slashblade.named.xblades";
ItemSlashBlade.specialAttacks.put(654897, new SA_5());
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
NBTTagCompound tag = new NBTTagCompound();
customblade.setTagCompound(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name_heiren);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(200));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)13.0f);
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.TextureName.set(tag, "named/dimension/dimension");
ItemSlashBlade.ModelName.set(tag, "named/dimension/dimension");
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(654897));
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(1));
ItemSlashBlade.KillCount.set(tag, Integer.valueOf(1000));
ItemSlashBlade.ProudSoul.set(tag, Integer.valueOf(20000));
ItemSlashBlade.RepairCount.set(tag, Integer.valueOf(10));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(-0.2f));
ItemSlashBlade.BaseAttackModifier.set(tag, Float.valueOf(9.0f));
ItemSlashBlade.SummonedSwordColor.set(tag, Integer.valueOf(9662683));
GameRegistry.registerCustomItemStack((String)name_heiren, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name_heiren);
customblade.addEnchantment(Enchantment.sharpness, 5);
customblade.addEnchantment(Enchantment.unbreaking, 3);
customblade.addEnchantment(Enchantment.fireAspect, 2);
ItemStack custombladeReqiredF = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)namerust2, (int)1);
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqiredF);
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(1000));
ItemSlashBlade.ProudSoul.set(reqTag, Integer.valueOf(20000));
ItemSlashBlade.RepairCount.set(reqTag, Integer.valueOf(10));
custombladeReqiredF.addEnchantment(Enchantment.unbreaking, 1);
ItemStack blackblade = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name_heiren, (int)1);
SlashBlade.addRecipe((String)name_heiren, (IRecipe)new RecipeAwakeBlade(blackblade, custombladeReqiredF, new Object[]{"XXX", "A A", "ZXC", Character.valueOf('X'), new ItemStack(Blocks.diamond_block), Character.valueOf('A'), GameRegistry.findItemStack((String)"minecraft", (String)"nether_star", (int)1), Character.valueOf('C'), GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1), Character.valueOf('Z'), custombladeReqiredF}));
}
}
@@ -0,0 +1,80 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.common.eventhandler.SubscribeEvent
* cpw.mods.fml.common.registry.GameRegistry
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
* mods.flammpfeil.slashblade.RecipeAwakeBlade
* mods.flammpfeil.slashblade.SlashBlade
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
* net.minecraft.enchantment.Enchantment
* net.minecraft.init.Blocks
* net.minecraft.item.Item
* net.minecraft.item.ItemStack
* net.minecraft.item.crafting.IRecipe
* net.minecraft.nbt.NBTTagCompound
*/
package Fish.mods.slashblade.black;
import Fish.mods.slashblade.SA.SA_3;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
import mods.flammpfeil.slashblade.SlashBlade;
import mods.flammpfeil.slashblade.named.event.LoadEvent;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.nbt.NBTTagCompound;
public class Dragon_Blade {
public static ItemSlashBladeNamed bladeNamed;
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name_dragon = "flammpfeil.slashblade.named.dragonblade";
String namerust2 = "flammpfeil.slashblade.named.xblades";
String namerust3 = "flammpfeil.slashblade.named.blackblade";
String namerust4 = "flammpfeil.slashblade.named.whitenblade";
ItemSlashBlade.specialAttacks.put(2333, new SA_3());
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
NBTTagCompound tag = new NBTTagCompound();
customblade.setTagCompound(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name_dragon);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(120));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)17.0f);
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.TextureName.set(tag, "named/dragonblade/dragonblade");
ItemSlashBlade.ModelName.set(tag, "named/dragonblade/dragonblade");
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(2333));
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(1));
ItemSlashBlade.KillCount.set(tag, Integer.valueOf(1000));
ItemSlashBlade.ProudSoul.set(tag, Integer.valueOf(20000));
ItemSlashBlade.RepairCount.set(tag, Integer.valueOf(10));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(-0.2f));
ItemSlashBlade.BaseAttackModifier.set(tag, Float.valueOf(17.0f));
ItemSlashBlade.SummonedSwordColor.set(tag, Integer.valueOf(0));
GameRegistry.registerCustomItemStack((String)name_dragon, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name_dragon);
customblade.addEnchantment(Enchantment.sharpness, 5);
customblade.addEnchantment(Enchantment.fireAspect, 2);
customblade.addEnchantment(Enchantment.looting, 3);
customblade.addEnchantment(Enchantment.unbreaking, 3);
customblade.addEnchantment(Enchantment.knockback, 2);
customblade.addEnchantment(Enchantment.baneOfArthropods, 3);
ItemStack custombladeReqired2 = SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.xblades");
NBTTagCompound reqTag2 = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired2);
ItemSlashBlade.KillCount.set(reqTag2, Integer.valueOf(1000));
ItemSlashBlade.ProudSoul.set(reqTag2, Integer.valueOf(20000));
ItemSlashBlade.RepairCount.set(reqTag2, Integer.valueOf(10));
ItemStack dragonblade = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name_dragon, (int)1);
SlashBlade.addRecipe((String)name_dragon, (IRecipe)new RecipeAwakeBlade(dragonblade, custombladeReqired2, new Object[]{"EYU", "ASD", "YLY", Character.valueOf('E'), new ItemStack(Blocks.dragon_egg), Character.valueOf('Y'), GameRegistry.findItemStack((String)"minecraft", (String)"nether_star", (int)1), Character.valueOf('U'), new ItemStack(Blocks.glowstone), Character.valueOf('L'), new ItemStack(Blocks.end_stone), Character.valueOf('D'), new ItemStack(Blocks.quartz_block), Character.valueOf('S'), custombladeReqired2, Character.valueOf('A'), new ItemStack(Blocks.obsidian)}));
}
}
@@ -0,0 +1,82 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.common.eventhandler.SubscribeEvent
* cpw.mods.fml.common.registry.GameRegistry
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
* mods.flammpfeil.slashblade.RecipeAwakeBlade
* mods.flammpfeil.slashblade.SlashBlade
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
* net.minecraft.enchantment.Enchantment
* net.minecraft.init.Blocks
* net.minecraft.item.Item
* net.minecraft.item.ItemStack
* net.minecraft.item.crafting.IRecipe
* net.minecraft.nbt.NBTTagCompound
*/
package Fish.mods.slashblade.black;
import Fish.mods.slashblade.SA.SA_9;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
import mods.flammpfeil.slashblade.SlashBlade;
import mods.flammpfeil.slashblade.named.event.LoadEvent;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.nbt.NBTTagCompound;
public class Empty_Blade {
public static ItemSlashBladeNamed bladeNamed;
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name_dragon = "flammpfeil.slashblade.named.emptyblade";
ItemSlashBlade.specialAttacks.put(111222333, new SA_9());
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
NBTTagCompound tag = new NBTTagCompound();
customblade.setTagCompound(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name_dragon);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(100));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)16.0f);
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.TextureName.set(tag, "named/emptyblade/emptyblade");
ItemSlashBlade.ModelName.set(tag, "named/emptyblade/emptyblade");
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(111222333));
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(1));
ItemSlashBlade.KillCount.set(tag, Integer.valueOf(1200));
ItemSlashBlade.ProudSoul.set(tag, Integer.valueOf(18000));
ItemSlashBlade.RepairCount.set(tag, Integer.valueOf(10));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(-0.2f));
ItemSlashBlade.BaseAttackModifier.set(tag, Float.valueOf(16.0f));
ItemSlashBlade.SummonedSwordColor.set(tag, Integer.valueOf(0));
GameRegistry.registerCustomItemStack((String)name_dragon, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name_dragon);
customblade.addEnchantment(Enchantment.sharpness, 5);
customblade.addEnchantment(Enchantment.fireAspect, 2);
customblade.addEnchantment(Enchantment.looting, 3);
customblade.addEnchantment(Enchantment.unbreaking, 3);
customblade.addEnchantment(Enchantment.knockback, 2);
customblade.addEnchantment(Enchantment.featherFalling, 1);
ItemStack custombladeReqired2 = SlashBlade.getCustomBlade((String)"flammpfeil.slashblade.named.soulb");
NBTTagCompound reqTag2 = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired2);
ItemSlashBlade.KillCount.set(reqTag2, Integer.valueOf(1200));
ItemSlashBlade.ProudSoul.set(reqTag2, Integer.valueOf(18000));
ItemSlashBlade.RepairCount.set(reqTag2, Integer.valueOf(10));
custombladeReqired2.addEnchantment(Enchantment.sharpness, 5);
custombladeReqired2.addEnchantment(Enchantment.fireAspect, 2);
custombladeReqired2.addEnchantment(Enchantment.looting, 3);
custombladeReqired2.addEnchantment(Enchantment.knockback, 2);
custombladeReqired2.addEnchantment(Enchantment.featherFalling, 1);
ItemStack dragonblade = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name_dragon, (int)1);
SlashBlade.addRecipe((String)name_dragon, (IRecipe)new RecipeAwakeBlade(dragonblade, custombladeReqired2, new Object[]{"AS ", "SZY", " YR", Character.valueOf('A'), new ItemStack(Blocks.obsidian), Character.valueOf('Y'), GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"proudsoul", (int)1), Character.valueOf('Z'), GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1), Character.valueOf('R'), custombladeReqired2, Character.valueOf('S'), GameRegistry.findItemStack((String)"minecraft", (String)"nether_star", (int)1)}));
}
}
@@ -0,0 +1,78 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.common.eventhandler.SubscribeEvent
* cpw.mods.fml.common.registry.GameRegistry
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
* mods.flammpfeil.slashblade.RecipeAwakeBlade
* mods.flammpfeil.slashblade.SlashBlade
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
* net.minecraft.enchantment.Enchantment
* net.minecraft.init.Blocks
* net.minecraft.item.Item
* net.minecraft.item.ItemStack
* net.minecraft.item.crafting.IRecipe
* net.minecraft.nbt.NBTTagCompound
*/
package Fish.mods.slashblade.black;
import Fish.mods.slashblade.SA.SA_11;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
import mods.flammpfeil.slashblade.SlashBlade;
import mods.flammpfeil.slashblade.named.event.LoadEvent;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.nbt.NBTTagCompound;
public class Heitong {
public static ItemSlashBladeNamed bladeNamed;
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name_heiren = "flammpfeil.slashblade.named.heitong";
String namerust2 = "flammpfeil.slashblade.named.blackblade";
ItemSlashBlade.specialAttacks.put(65489747, new SA_11());
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
NBTTagCompound tag = new NBTTagCompound();
customblade.setTagCompound(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name_heiren);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(200));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)15.0f);
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.TextureName.set(tag, "named/heitong/heitong");
ItemSlashBlade.ModelName.set(tag, "named/sange/sange");
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(65489747));
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(1));
ItemSlashBlade.KillCount.set(tag, Integer.valueOf(2000));
ItemSlashBlade.ProudSoul.set(tag, Integer.valueOf(40000));
ItemSlashBlade.RepairCount.set(tag, Integer.valueOf(15));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(-0.2f));
ItemSlashBlade.BaseAttackModifier.set(tag, Float.valueOf(15.0f));
ItemSlashBlade.SummonedSwordColor.set(tag, Integer.valueOf(1));
GameRegistry.registerCustomItemStack((String)name_heiren, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name_heiren);
customblade.addEnchantment(Enchantment.knockback, 2);
customblade.addEnchantment(Enchantment.baneOfArthropods, 3);
customblade.addEnchantment(Enchantment.sharpness, 5);
customblade.addEnchantment(Enchantment.unbreaking, 3);
customblade.addEnchantment(Enchantment.looting, 3);
customblade.addEnchantment(Enchantment.fireAspect, 2);
ItemStack custombladeReqiredF = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)namerust2, (int)1);
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqiredF);
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(2000));
ItemSlashBlade.ProudSoul.set(reqTag, Integer.valueOf(40000));
ItemSlashBlade.RepairCount.set(reqTag, Integer.valueOf(15));
ItemStack blackblade = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name_heiren, (int)1);
SlashBlade.addRecipe((String)name_heiren, (IRecipe)new RecipeAwakeBlade(blackblade, custombladeReqiredF, new Object[]{"XXX", "ASA", "XXX", Character.valueOf('X'), new ItemStack(Blocks.diamond_block), Character.valueOf('A'), GameRegistry.findItemStack((String)"minecraft", (String)"nether_star", (int)1), Character.valueOf('S'), custombladeReqiredF}));
}
}
@@ -0,0 +1,77 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.common.eventhandler.SubscribeEvent
* cpw.mods.fml.common.registry.GameRegistry
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ItemSlashBlade$ComboSequence
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
* mods.flammpfeil.slashblade.RecipeAwakeBlade
* mods.flammpfeil.slashblade.SlashBlade
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
* net.minecraft.enchantment.Enchantment
* net.minecraft.init.Blocks
* net.minecraft.item.Item
* net.minecraft.item.ItemStack
* net.minecraft.item.crafting.IRecipe
* net.minecraft.nbt.NBTTagCompound
*/
package Fish.mods.slashblade.black;
import Fish.mods.slashblade.SA.SA_8;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
import mods.flammpfeil.slashblade.SlashBlade;
import mods.flammpfeil.slashblade.named.event.LoadEvent;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.nbt.NBTTagCompound;
public class King_Blade {
public static ItemSlashBladeNamed bladeNamed;
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name_dragon = "flammpfeil.slashblade.named.kingblade";
ItemSlashBlade.specialAttacks.put(23345, new SA_8(1.5f, 10, true, ItemSlashBlade.ComboSequence.Iai));
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
NBTTagCompound tag = new NBTTagCompound();
customblade.setTagCompound(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name_dragon);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(500));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)10.0f);
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.TextureName.set(tag, "named/kingblade/kingblade");
ItemSlashBlade.ModelName.set(tag, "named/kingblade/kingblade");
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(23345));
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(1));
ItemSlashBlade.KillCount.set(tag, Integer.valueOf(200));
ItemSlashBlade.ProudSoul.set(tag, Integer.valueOf(1000));
ItemSlashBlade.RepairCount.set(tag, Integer.valueOf(3));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(-0.2f));
ItemSlashBlade.BaseAttackModifier.set(tag, Float.valueOf(10.0f));
GameRegistry.registerCustomItemStack((String)name_dragon, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name_dragon);
customblade.addEnchantment(Enchantment.sharpness, 5);
customblade.addEnchantment(Enchantment.fireAspect, 2);
customblade.addEnchantment(Enchantment.unbreaking, 3);
ItemStack custombladeReqired2 = new ItemStack((Item)SlashBlade.weapon, 1, 0);
NBTTagCompound reqTag2 = ItemSlashBlade.getItemTagCompound((ItemStack)custombladeReqired2);
ItemSlashBlade.KillCount.set(reqTag2, Integer.valueOf(200));
ItemSlashBlade.ProudSoul.set(reqTag2, Integer.valueOf(1000));
ItemSlashBlade.RepairCount.set(reqTag2, Integer.valueOf(3));
custombladeReqired2.addEnchantment(Enchantment.sharpness, 5);
custombladeReqired2.addEnchantment(Enchantment.fireAspect, 2);
custombladeReqired2.addEnchantment(Enchantment.unbreaking, 3);
ItemStack dragonblade = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name_dragon, (int)1);
SlashBlade.addRecipe((String)name_dragon, (IRecipe)new RecipeAwakeBlade(dragonblade, custombladeReqired2, new Object[]{"EEE", "SAS", "EEE", Character.valueOf('E'), new ItemStack(Blocks.diamond_block), Character.valueOf('A'), custombladeReqired2, Character.valueOf('S'), new ItemStack(Blocks.obsidian)}));
}
}
@@ -0,0 +1,67 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.common.eventhandler.SubscribeEvent
* cpw.mods.fml.common.registry.GameRegistry
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
* mods.flammpfeil.slashblade.RecipeAwakeBlade
* mods.flammpfeil.slashblade.SlashBlade
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
* net.minecraft.enchantment.Enchantment
* net.minecraft.init.Blocks
* net.minecraft.item.Item
* net.minecraft.item.ItemStack
* net.minecraft.item.crafting.IRecipe
* net.minecraft.nbt.NBTTagCompound
*/
package Fish.mods.slashblade.black;
import Fish.mods.slashblade.SA.SA_6;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
import mods.flammpfeil.slashblade.SlashBlade;
import mods.flammpfeil.slashblade.named.event.LoadEvent;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.nbt.NBTTagCompound;
public class Kuma_Sakura {
public static ItemSlashBladeNamed bladeNamed;
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.kumasakura";
String namerust2 = "flammpfeil.slashblade";
ItemSlashBlade.specialAttacks.put(123456, new SA_6());
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
NBTTagCompound tag = new NBTTagCompound();
customblade.setTagCompound(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(130));
ItemSlashBlade.BaseAttackModifier.set(tag, Float.valueOf(9.0f));
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.TextureName.set(tag, "named/kumasakura/kumasakura");
ItemSlashBlade.ModelName.set(tag, "named/kumasakura/kumasakura");
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(123456));
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(1));
ItemSlashBlade.SummonedSwordColor.set(tag, Integer.valueOf(0xFF0000));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
customblade.addEnchantment(Enchantment.unbreaking, 3);
customblade.addEnchantment(Enchantment.sharpness, 3);
ItemStack NEWcustombladeReqired = new ItemStack((Item)SlashBlade.bladeWood, 1, 0);
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)NEWcustombladeReqired);
ItemStack xblades = 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(xblades, NEWcustombladeReqired, new Object[]{"QWE", "ACD", "ZXS", Character.valueOf('S'), new ItemStack(Blocks.emerald_block), Character.valueOf('Q'), new ItemStack(Blocks.diamond_block), Character.valueOf('E'), new ItemStack(Blocks.iron_block), Character.valueOf('W'), GameRegistry.findItemStack((String)"minecraft", (String)"leaves", (int)1), Character.valueOf('A'), GameRegistry.findItemStack((String)"minecraft", (String)"emerald", (int)1), Character.valueOf('D'), GameRegistry.findItemStack((String)"minecraft", (String)"diamond", (int)1), Character.valueOf('Z'), GameRegistry.findItemStack((String)"minecraft", (String)"iron_ingot", (int)1), Character.valueOf('X'), GameRegistry.findItemStack((String)"minecraft", (String)"nether_star", (int)1), Character.valueOf('C'), NEWcustombladeReqired}));
}
}
@@ -0,0 +1,76 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.common.eventhandler.SubscribeEvent
* cpw.mods.fml.common.registry.GameRegistry
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
* mods.flammpfeil.slashblade.RecipeAwakeBlade
* mods.flammpfeil.slashblade.SlashBlade
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
* net.minecraft.enchantment.Enchantment
* net.minecraft.init.Blocks
* net.minecraft.item.Item
* net.minecraft.item.ItemStack
* net.minecraft.item.crafting.IRecipe
* net.minecraft.nbt.NBTTagCompound
*/
package Fish.mods.slashblade.black;
import Fish.mods.slashblade.SA.SA_1;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
import mods.flammpfeil.slashblade.SlashBlade;
import mods.flammpfeil.slashblade.named.event.LoadEvent;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.nbt.NBTTagCompound;
public class Magic_Blade {
public static ItemSlashBladeNamed bladeNamed;
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.magicblade";
String namerust2 = "flammpfeil.slashblade.named.xblades";
ItemSlashBlade.specialAttacks.put(8888, new SA_1());
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
NBTTagCompound tag = new NBTTagCompound();
customblade.setTagCompound(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(150));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)13.0f);
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.TextureName.set(tag, "named/magicblade/magicblade");
ItemSlashBlade.ModelName.set(tag, "named/magicblade/magicblade");
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(8888));
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
ItemSlashBlade.KillCount.set(tag, Integer.valueOf(1000));
ItemSlashBlade.ProudSoul.set(tag, Integer.valueOf(20000));
ItemSlashBlade.RepairCount.set(tag, Integer.valueOf(10));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(-0.2f));
ItemSlashBlade.BaseAttackModifier.set(tag, Float.valueOf(14.0f));
ItemSlashBlade.SummonedSwordColor.set(tag, Integer.valueOf(0));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
customblade.addEnchantment(Enchantment.sharpness, 5);
customblade.addEnchantment(Enchantment.smite, 5);
customblade.addEnchantment(Enchantment.fireAspect, 2);
ItemStack NEWcustombladeReqired3 = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)namerust2, (int)1);
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)NEWcustombladeReqired3);
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(1000));
ItemSlashBlade.ProudSoul.set(reqTag, Integer.valueOf(20000));
ItemSlashBlade.RepairCount.set(reqTag, Integer.valueOf(10));
NEWcustombladeReqired3.addEnchantment(Enchantment.smite, 1);
ItemStack magicblade = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(magicblade, NEWcustombladeReqired3, new Object[]{"GBB", "BYB", "ZBX", Character.valueOf('G'), GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"proudsoul", (int)1), Character.valueOf('B'), GameRegistry.findItemStack((String)"minecraft", (String)"nether_star", (int)1), Character.valueOf('Z'), new ItemStack(Blocks.obsidian), Character.valueOf('X'), GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1), Character.valueOf('Y'), NEWcustombladeReqired3}));
}
}
@@ -0,0 +1,66 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.common.eventhandler.SubscribeEvent
* cpw.mods.fml.common.registry.GameRegistry
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
* mods.flammpfeil.slashblade.RecipeAwakeBlade
* mods.flammpfeil.slashblade.SlashBlade
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
* net.minecraft.enchantment.Enchantment
* net.minecraft.init.Blocks
* net.minecraft.item.Item
* net.minecraft.item.ItemStack
* net.minecraft.item.crafting.IRecipe
* net.minecraft.nbt.NBTTagCompound
*/
package Fish.mods.slashblade.black;
import Fish.mods.slashblade.SA.SA_4;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
import mods.flammpfeil.slashblade.SlashBlade;
import mods.flammpfeil.slashblade.named.event.LoadEvent;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.nbt.NBTTagCompound;
public class Purples_Blade {
public static ItemSlashBladeNamed bladeNamed;
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.purpleblade";
String namerust2 = "flammpfeil.slashblade";
ItemSlashBlade.specialAttacks.put(99999, new SA_4());
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
NBTTagCompound tag = new NBTTagCompound();
customblade.setTagCompound(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(2000));
ItemSlashBlade.BaseAttackModifier.set(tag, Float.valueOf(4.0f));
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.TextureName.set(tag, "named/purplesblade/purplesblade");
ItemSlashBlade.ModelName.set(tag, "named/purplesblade/purplesblade");
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(99999));
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(1));
ItemSlashBlade.SummonedSwordColor.set(tag, Integer.valueOf(8741731));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
customblade.addEnchantment(Enchantment.unbreaking, 2);
ItemStack NEWcustombladeReqired = new ItemStack((Item)SlashBlade.weapon, 1, 0);
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)NEWcustombladeReqired);
ItemStack purpleblade = 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(purpleblade, NEWcustombladeReqired, new Object[]{"ZXC", "XC ", "VB ", Character.valueOf('Z'), new ItemStack(Blocks.obsidian), Character.valueOf('X'), GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1), Character.valueOf('C'), GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1), Character.valueOf('B'), GameRegistry.findItemStack((String)"minecraft", (String)"string", (int)1), Character.valueOf('V'), NEWcustombladeReqired}));
}
}
@@ -0,0 +1,72 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.common.eventhandler.SubscribeEvent
* cpw.mods.fml.common.registry.GameRegistry
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
* mods.flammpfeil.slashblade.RecipeAwakeBlade
* mods.flammpfeil.slashblade.SlashBlade
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
* net.minecraft.enchantment.Enchantment
* net.minecraft.init.Blocks
* net.minecraft.item.Item
* net.minecraft.item.ItemStack
* net.minecraft.item.crafting.IRecipe
* net.minecraft.nbt.NBTTagCompound
*/
package Fish.mods.slashblade.black;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
import mods.flammpfeil.slashblade.SlashBlade;
import mods.flammpfeil.slashblade.named.event.LoadEvent;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.nbt.NBTTagCompound;
public class Soul_Blade {
public static ItemSlashBladeNamed bladeNamed;
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.soulb";
String namerust2 = "flammpfeil.slashblade.named.xblades";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
NBTTagCompound tag = new NBTTagCompound();
customblade.setTagCompound(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(40));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)7.0f);
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.TextureName.set(tag, "named/latent/latent");
ItemSlashBlade.ModelName.set(tag, "named/latent/latent");
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(0));
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(1));
ItemSlashBlade.KillCount.set(tag, Integer.valueOf(540));
ItemSlashBlade.ProudSoul.set(tag, Integer.valueOf(600));
ItemSlashBlade.RepairCount.set(tag, Integer.valueOf(3));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(-0.2f));
ItemSlashBlade.BaseAttackModifier.set(tag, Float.valueOf(7.0f));
ItemSlashBlade.SummonedSwordColor.set(tag, Integer.valueOf(-1));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
customblade.addEnchantment(Enchantment.unbreaking, 3);
ItemStack NEWcustombladeReqired3 = new ItemStack((Item)SlashBlade.weapon, 1, 0);
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)NEWcustombladeReqired3);
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(540));
ItemSlashBlade.ProudSoul.set(reqTag, Integer.valueOf(600));
ItemSlashBlade.RepairCount.set(reqTag, Integer.valueOf(3));
NEWcustombladeReqired3.addEnchantment(Enchantment.unbreaking, 3);
ItemStack latent = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(latent, NEWcustombladeReqired3, new Object[]{"OEO", "OYO", "OEO", Character.valueOf('E'), GameRegistry.findItemStack((String)"minecraft", (String)"lava_bucket", (int)1), Character.valueOf('O'), new ItemStack(Blocks.obsidian), Character.valueOf('Y'), NEWcustombladeReqired3}));
}
}
@@ -0,0 +1,73 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.common.eventhandler.SubscribeEvent
* cpw.mods.fml.common.registry.GameRegistry
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
* mods.flammpfeil.slashblade.RecipeAwakeBlade
* mods.flammpfeil.slashblade.SlashBlade
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
* net.minecraft.enchantment.Enchantment
* net.minecraft.init.Blocks
* net.minecraft.item.Item
* net.minecraft.item.ItemStack
* net.minecraft.item.crafting.IRecipe
* net.minecraft.nbt.NBTTagCompound
*/
package Fish.mods.slashblade.black;
import Fish.mods.slashblade.SA.SA_7;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
import mods.flammpfeil.slashblade.SlashBlade;
import mods.flammpfeil.slashblade.named.event.LoadEvent;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.nbt.NBTTagCompound;
public class Vitex {
public static ItemSlashBladeNamed bladeNamed;
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.vitex";
String namerust2 = "flammpfeil.slashblade.named.purpleblade";
ItemSlashBlade.specialAttacks.put(11111111, new SA_7());
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
NBTTagCompound tag = new NBTTagCompound();
customblade.setTagCompound(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(1500));
ItemSlashBlade.BaseAttackModifier.set(tag, Float.valueOf(10.0f));
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.TextureName.set(tag, "named/vitex/vitex");
ItemSlashBlade.ModelName.set(tag, "named/vitex/vitex");
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(11111111));
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(1));
ItemSlashBlade.KillCount.set(tag, Integer.valueOf(1000));
ItemSlashBlade.ProudSoul.set(tag, Integer.valueOf(20000));
ItemSlashBlade.RepairCount.set(tag, Integer.valueOf(10));
ItemSlashBlade.SummonedSwordColor.set(tag, Integer.valueOf(8741731));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
customblade.addEnchantment(Enchantment.unbreaking, 2);
customblade.addEnchantment(Enchantment.thorns, 3);
ItemStack NEWcustombladeReqired = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)namerust2, (int)1);
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)NEWcustombladeReqired);
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(1000));
ItemSlashBlade.ProudSoul.set(reqTag, Integer.valueOf(20000));
ItemSlashBlade.RepairCount.set(reqTag, Integer.valueOf(10));
NEWcustombladeReqired.addEnchantment(Enchantment.thorns, 1);
ItemStack purpleblade = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(purpleblade, NEWcustombladeReqired, new Object[]{"ZXC", "XSX", "CXC", Character.valueOf('Z'), new ItemStack(Blocks.obsidian), Character.valueOf('X'), GameRegistry.findItemStack((String)"minecraft", (String)"cactus", (int)1), Character.valueOf('C'), GameRegistry.findItemStack((String)"minecraft", (String)"nether_star", (int)1), Character.valueOf('S'), NEWcustombladeReqired}));
}
}
@@ -0,0 +1,74 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.common.eventhandler.SubscribeEvent
* cpw.mods.fml.common.registry.GameRegistry
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
* mods.flammpfeil.slashblade.RecipeAwakeBlade
* mods.flammpfeil.slashblade.SlashBlade
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
* net.minecraft.enchantment.Enchantment
* net.minecraft.init.Blocks
* net.minecraft.item.Item
* net.minecraft.item.ItemStack
* net.minecraft.item.crafting.IRecipe
* net.minecraft.nbt.NBTTagCompound
*/
package Fish.mods.slashblade.black;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
import mods.flammpfeil.slashblade.SlashBlade;
import mods.flammpfeil.slashblade.named.event.LoadEvent;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.nbt.NBTTagCompound;
public class White_Blade {
public static ItemSlashBladeNamed bladeNamed;
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.whitenblade";
String namerust2 = "flammpfeil.slashblade.named.xblades";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
NBTTagCompound tag = new NBTTagCompound();
customblade.setTagCompound(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(300));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)13.0f);
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.TextureName.set(tag, "named/sword/whitensword");
ItemSlashBlade.ModelName.set(tag, "named/sword/sword");
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(0));
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
ItemSlashBlade.KillCount.set(tag, Integer.valueOf(1000));
ItemSlashBlade.ProudSoul.set(tag, Integer.valueOf(20000));
ItemSlashBlade.RepairCount.set(tag, Integer.valueOf(10));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(-0.2f));
ItemSlashBlade.BaseAttackModifier.set(tag, Float.valueOf(11.0f));
ItemSlashBlade.SummonedSwordColor.set(tag, Integer.valueOf(0xFFFFFF));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
customblade.addEnchantment(Enchantment.fireAspect, 1);
customblade.addEnchantment(Enchantment.looting, 1);
customblade.addEnchantment(Enchantment.sharpness, 5);
ItemStack NEWcustombladeReqired2 = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)namerust2, (int)1);
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)NEWcustombladeReqired2);
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(1000));
ItemSlashBlade.ProudSoul.set(reqTag, Integer.valueOf(20000));
ItemSlashBlade.RepairCount.set(reqTag, Integer.valueOf(10));
NEWcustombladeReqired2.addEnchantment(Enchantment.looting, 1);
ItemStack whitenblade = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(whitenblade, NEWcustombladeReqired2, new Object[]{"GEZ", "FYX", "FFK", Character.valueOf('G'), GameRegistry.findItemStack((String)"minecraft", (String)"nether_star", (int)1), Character.valueOf('E'), new ItemStack(Blocks.quartz_block), Character.valueOf('Z'), new ItemStack(Blocks.diamond_block), Character.valueOf('F'), GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"proudsoul", (int)1), Character.valueOf('X'), new ItemStack(Blocks.coal_block), Character.valueOf('K'), GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1), Character.valueOf('Y'), NEWcustombladeReqired2}));
}
}
@@ -0,0 +1,71 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.common.eventhandler.SubscribeEvent
* cpw.mods.fml.common.registry.GameRegistry
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
* mods.flammpfeil.slashblade.RecipeAwakeBlade
* mods.flammpfeil.slashblade.SlashBlade
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
* net.minecraft.enchantment.Enchantment
* net.minecraft.item.Item
* net.minecraft.item.ItemStack
* net.minecraft.item.crafting.IRecipe
* net.minecraft.nbt.NBTTagCompound
*/
package Fish.mods.slashblade.black;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
import mods.flammpfeil.slashblade.SlashBlade;
import mods.flammpfeil.slashblade.named.event.LoadEvent;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.nbt.NBTTagCompound;
public class X_Blades {
public static ItemSlashBladeNamed bladeNamed;
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.xblades";
String namerust2 = "flammpfeil.slashblade";
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
NBTTagCompound tag = new NBTTagCompound();
customblade.setTagCompound(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(200));
ItemSlashBlade.BaseAttackModifier.set(tag, Float.valueOf(5.0f));
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.TextureName.set(tag, "named/xblades/xblades");
ItemSlashBlade.ModelName.set(tag, "named/xblades/xblades");
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(0));
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(1));
ItemSlashBlade.KillCount.set(tag, Integer.valueOf(1000));
ItemSlashBlade.ProudSoul.set(tag, Integer.valueOf(20000));
ItemSlashBlade.RepairCount.set(tag, Integer.valueOf(10));
ItemSlashBlade.SummonedSwordColor.set(tag, Integer.valueOf(0xFF0000));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
customblade.addEnchantment(Enchantment.sharpness, 5);
customblade.addEnchantment(Enchantment.fireAspect, 2);
ItemStack NEWcustombladeReqired = new ItemStack((Item)SlashBlade.weapon, 1, 0);
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)NEWcustombladeReqired);
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(1000));
ItemSlashBlade.ProudSoul.set(reqTag, Integer.valueOf(20000));
ItemSlashBlade.RepairCount.set(reqTag, Integer.valueOf(10));
NEWcustombladeReqired.addEnchantment(Enchantment.sharpness, 1);
NEWcustombladeReqired.addEnchantment(Enchantment.fireAspect, 1);
ItemStack xblades = 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(xblades, NEWcustombladeReqired, new Object[]{"EEE", "HYH", "KZX", Character.valueOf('E'), GameRegistry.findItemStack((String)"minecraft", (String)"nether_star", (int)1), Character.valueOf('H'), GameRegistry.findItemStack((String)"minecraft", (String)"netherrack", (int)1), Character.valueOf('K'), GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"ingot_bladesoul", (int)1), Character.valueOf('Z'), GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1), Character.valueOf('X'), GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"proudsoul", (int)1), Character.valueOf('Y'), NEWcustombladeReqired}));
}
}
@@ -0,0 +1,74 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.common.eventhandler.SubscribeEvent
* cpw.mods.fml.common.registry.GameRegistry
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
* mods.flammpfeil.slashblade.RecipeAwakeBlade
* mods.flammpfeil.slashblade.SlashBlade
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
* net.minecraft.enchantment.Enchantment
* net.minecraft.init.Blocks
* net.minecraft.item.Item
* net.minecraft.item.ItemStack
* net.minecraft.item.crafting.IRecipe
* net.minecraft.nbt.NBTTagCompound
*/
package Fish.mods.slashblade.black;
import Fish.mods.slashblade.SA.SA_2;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
import mods.flammpfeil.slashblade.SlashBlade;
import mods.flammpfeil.slashblade.named.event.LoadEvent;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.nbt.NBTTagCompound;
public class latant {
public static ItemSlashBladeNamed bladeNamed;
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
String name = "flammpfeil.slashblade.named.latent";
String namerust2 = "flammpfeil.slashblade.named.xblades";
ItemSlashBlade.specialAttacks.put(6666, new SA_2());
ItemStack customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
NBTTagCompound tag = new NBTTagCompound();
customblade.setTagCompound(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(100));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)13.0f);
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
ItemSlashBlade.TextureName.set(tag, "named/latent/latent");
ItemSlashBlade.ModelName.set(tag, "named/latent/latent");
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(6666));
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(3));
ItemSlashBlade.KillCount.set(tag, Integer.valueOf(1000));
ItemSlashBlade.ProudSoul.set(tag, Integer.valueOf(20000));
ItemSlashBlade.RepairCount.set(tag, Integer.valueOf(10));
ItemSlashBlade.AttackAmplifier.set(tag, Float.valueOf(-0.2f));
ItemSlashBlade.BaseAttackModifier.set(tag, Float.valueOf(8.0f));
ItemSlashBlade.SummonedSwordColor.set(tag, Integer.valueOf(0));
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add(name);
customblade.addEnchantment(Enchantment.sharpness, 5);
customblade.addEnchantment(Enchantment.fireAspect, 2);
ItemStack NEWcustombladeReqired3 = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)namerust2, (int)1);
NBTTagCompound reqTag = ItemSlashBlade.getItemTagCompound((ItemStack)NEWcustombladeReqired3);
ItemSlashBlade.KillCount.set(reqTag, Integer.valueOf(1000));
ItemSlashBlade.ProudSoul.set(reqTag, Integer.valueOf(20000));
ItemSlashBlade.RepairCount.set(reqTag, Integer.valueOf(10));
ItemStack latent = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
SlashBlade.addRecipe((String)name, (IRecipe)new RecipeAwakeBlade(latent, NEWcustombladeReqired3, new Object[]{"EOE", "EYE", "KZX", Character.valueOf('E'), GameRegistry.findItemStack((String)"minecraft", (String)"nether_star", (int)1), Character.valueOf('O'), new ItemStack(Blocks.obsidian), Character.valueOf('K'), GameRegistry.findItemStack((String)"minecraft", (String)"blaze_rod", (int)1), Character.valueOf('Z'), new ItemStack(Blocks.quartz_block), Character.valueOf('X'), GameRegistry.findItemStack((String)"minecraft", (String)"spider_eye", (int)1), Character.valueOf('Y'), NEWcustombladeReqired3}));
}
}
@@ -0,0 +1,331 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.common.registry.IThrowableEntity
* cpw.mods.fml.relauncher.Side
* cpw.mods.fml.relauncher.SideOnly
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ability.StylishRankManager
* mods.flammpfeil.slashblade.ability.StylishRankManager$AttackTypes
* mods.flammpfeil.slashblade.ability.TeleportCanceller
* net.minecraft.block.material.Material
* net.minecraft.enchantment.Enchantment
* net.minecraft.enchantment.EnchantmentHelper
* net.minecraft.entity.Entity
* net.minecraft.entity.EntityLivingBase
* net.minecraft.entity.projectile.EntityArrow
* net.minecraft.entity.projectile.EntityFireball
* net.minecraft.entity.projectile.EntityThrowable
* net.minecraft.item.ItemStack
* net.minecraft.nbt.NBTTagCompound
* net.minecraft.util.AxisAlignedBB
* net.minecraft.util.DamageSource
* net.minecraft.util.EntityDamageSource
* net.minecraft.util.Vec3
* net.minecraft.world.World
*/
package Fish.mods.slashblade.client;
import cpw.mods.fml.common.registry.IThrowableEntity;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.ability.StylishRankManager;
import mods.flammpfeil.slashblade.ability.TeleportCanceller;
import net.minecraft.block.material.Material;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.enchantment.EnchantmentHelper;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.projectile.EntityArrow;
import net.minecraft.entity.projectile.EntityFireball;
import net.minecraft.entity.projectile.EntityThrowable;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.DamageSource;
import net.minecraft.util.EntityDamageSource;
import net.minecraft.util.Vec3;
import net.minecraft.world.World;
public class EntitySlashDim
extends Entity
implements IThrowableEntity {
protected Entity thrower;
protected ItemStack blade = null;
protected List<Entity> alreadyHitEntity = new ArrayList<Entity>();
protected float AttackLevel = 0.0f;
private static final int LIFETIME = 3;
private static final int SINGLE_HIT = 4;
private static final int IS_SLASH_DIMENSION = 5;
private static final int THROWER_ENTITY_ID = 6;
private static final int INTERVAL = 7;
private static final int COLOR = 8;
public EntitySlashDim(World par1World) {
super(par1World);
this.ticksExisted = 0;
this.getEntityData().setInteger("seed", this.rand.nextInt(50));
}
public EntitySlashDim(World par1World, EntityLivingBase entityLiving, float AttackLevel, boolean multiHit) {
this(par1World, entityLiving, AttackLevel);
this.setIsSingleHit(multiHit);
}
public EntitySlashDim(World par1World, EntityLivingBase entityLiving, float AttackLevel) {
this(par1World);
this.AttackLevel = AttackLevel;
this.thrower = entityLiving;
this.blade = entityLiving.getHeldItem();
if (this.blade != null && !(this.blade.getItem() instanceof ItemSlashBlade)) {
this.blade = null;
}
this.alreadyHitEntity.clear();
this.alreadyHitEntity.add(this.thrower);
this.alreadyHitEntity.add(this.thrower.ridingEntity);
this.alreadyHitEntity.add(this.thrower.riddenByEntity);
this.ticksExisted = 0;
this.setSize(4.0f, 4.0f);
}
protected void entityInit() {
this.getDataWatcher().addObject(3, 20);
this.getDataWatcher().addObject(4, 0);
this.getDataWatcher().addObject(5, 0);
this.getDataWatcher().addObject(6, 0);
this.getDataWatcher().addObject(7, 7);
this.getDataWatcher().addObject(8, 0x3333FF);
}
public boolean getIsSingleHit() {
return this.getDataWatcher().getWatchableObjectByte(4) != 0;
}
public void setIsSingleHit(boolean isSingleHit) {
this.getDataWatcher().updateObject(4, (isSingleHit ? (byte)1 : 0));
}
public int getLifeTime() {
return this.getDataWatcher().getWatchableObjectInt(3);
}
public void setLifeTime(int lifetime) {
this.getDataWatcher().updateObject(3, lifetime);
}
public boolean getIsSlashDim() {
return this.getDataWatcher().getWatchableObjectByte(5) != 0;
}
public void setIsSlashDim(boolean isSlashDimension) {
this.getDataWatcher().updateObject(5, (isSlashDimension ? (byte)1 : 0));
}
public int getInterval() {
return this.getDataWatcher().getWatchableObjectInt(7);
}
public void setInterval(int value) {
this.getDataWatcher().updateObject(7, value);
}
public int getColor() {
return this.getDataWatcher().getWatchableObjectInt(8);
}
public void setColor(int value) {
this.getDataWatcher().updateObject(8, value);
}
public int getThrowerEntityId() {
return this.getDataWatcher().getWatchableObjectInt(6);
}
public void setThrowerEntityId(int entityid) {
this.getDataWatcher().updateObject(6, entityid);
}
public void onUpdate() {
super.onUpdate();
this.lastTickPosX = this.posX;
this.lastTickPosY = this.posY;
this.lastTickPosZ = this.posZ;
if (!this.worldObj.isRemote) {
if (this.ticksExisted < 8 && this.ticksExisted % 2 == 0) {
this.playSound("mob.wither.hurt", 0.2f, 0.5f + 0.25f * this.rand.nextFloat());
}
AxisAlignedBB bb = this.boundingBox;
if (this.getThrower() instanceof EntityLivingBase) {
EntityLivingBase entityLiving = (EntityLivingBase)this.getThrower();
List<Entity> list = this.worldObj.getEntitiesWithinAABBExcludingEntity(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 : list) {
boolean isDestruction = true;
if (curEntity instanceof EntityFireball) {
isDestruction = ((EntityFireball)curEntity).shootingEntity != null && ((EntityFireball)curEntity).shootingEntity.getEntityId() == entityLiving.getEntityId() ? false : !curEntity.attackEntityFrom(DamageSource.causeMobDamage((EntityLivingBase)entityLiving), this.AttackLevel);
} else if (curEntity instanceof EntityArrow) {
if (((EntityArrow)curEntity).shootingEntity != null && ((EntityArrow)curEntity).shootingEntity.getEntityId() == entityLiving.getEntityId()) {
isDestruction = false;
}
} else if (curEntity instanceof IThrowableEntity) {
if (((IThrowableEntity)curEntity).getThrower() != null && ((IThrowableEntity)curEntity).getThrower().getEntityId() == entityLiving.getEntityId()) {
isDestruction = false;
}
} else if (curEntity instanceof EntityThrowable && ((EntityThrowable)curEntity).getThrower() != null && ((EntityThrowable)curEntity).getThrower().getEntityId() == entityLiving.getEntityId()) {
isDestruction = false;
}
if (!isDestruction) continue;
curEntity.motionX = 0.0;
curEntity.motionY = 0.0;
curEntity.motionZ = 0.0;
curEntity.setDead();
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.worldObj.spawnParticle("explode", curEntity.posX + (double)(rand.nextFloat() * curEntity.width * 2.0f) - (double)curEntity.width - var2 * var8, curEntity.posY + (double)(rand.nextFloat() * curEntity.height) - var4 * var8, curEntity.posZ + (double)(rand.nextFloat() * curEntity.width * 2.0f) - (double)curEntity.width - var6 * var8, var2, var4, var6);
}
StylishRankManager.doAttack((Entity)this.thrower);
}
}
if (this.getIsSingleHit() || this.ticksExisted % 2 == 0) {
List<Entity> list = this.worldObj.getEntitiesWithinAABBExcludingEntity(this.getThrower(), bb, ItemSlashBlade.AttackableSelector);
list.removeAll(this.alreadyHitEntity);
if (this.getIsSingleHit()) {
this.alreadyHitEntity.addAll(list);
}
float magicDamage = Math.max(1.0f, this.AttackLevel);
StylishRankManager.setNextAttackType((Entity)this.thrower, (String)StylishRankManager.AttackTypes.SlashDimMagic);
for (Entity curEntity : list) {
float health;
if (this.getIsSlashDim() && curEntity instanceof EntityLivingBase && 0.0f < (health = ((EntityLivingBase)curEntity).getHealth())) {
health = Math.max(1.0f, health - magicDamage);
((EntityLivingBase)curEntity).setHealth(health);
}
Vec3 pos = Vec3.createVectorHelper((double)curEntity.posX, (double)curEntity.posY, (double)curEntity.posZ);
TeleportCanceller.setCancel((Entity)curEntity);
curEntity.hurtResistantTime = 0;
DamageSource ds = new EntityDamageSource("directMagic", this.getThrower()).setDamageBypassesArmor().setMagicDamage().setProjectile();
if (this.blade != null && curEntity instanceof EntityLivingBase) {
((ItemSlashBlade)this.blade.getItem()).hitEntity(this.blade, (EntityLivingBase)curEntity, (EntityLivingBase)this.thrower);
}
curEntity.motionX = 0.0;
curEntity.motionY = 0.0;
curEntity.motionZ = 0.0;
if (3 >= this.ticksExisted || this.blade == null || !(curEntity instanceof EntityLivingBase)) continue;
if (this.getIsSlashDim()) {
curEntity.addVelocity(0.0, 0.5, 0.0);
continue;
}
int level = EnchantmentHelper.getEnchantmentLevel((int)Enchantment.punch.effectId, (ItemStack)this.blade);
if (0 < level) {
curEntity.addVelocity(Math.sin(this.getThrower().rotationYaw * (float)Math.PI / 180.0f) * (double)level * 0.5, 0.2, -Math.cos(this.getThrower().rotationYaw * (float)Math.PI / 180.0f) * (double)level * 0.5);
continue;
}
curEntity.addVelocity(-Math.sin(this.getThrower().rotationYaw * (float)Math.PI / 180.0f) * 0.5, 0.2, Math.cos(this.getThrower().rotationYaw * (float)Math.PI / 180.0f) * 0.5);
}
}
}
if (this.ticksExisted >= this.getLifeTime()) {
this.alreadyHitEntity.clear();
this.alreadyHitEntity = null;
this.setDead();
}
}
public Random getRand() {
return this.rand;
}
public boolean isOffsetPositionInLiquid(double par1, double par3, double par5) {
return false;
}
public void moveEntity(double par1, double par3, double par5) {
}
protected void dealFireDamage(int par1) {
}
public boolean handleWaterMovement() {
return false;
}
public boolean isInsideOfMaterial(Material par1Material) {
return false;
}
@SideOnly(value=Side.CLIENT)
public int getBrightnessForRender(float par1) {
float f1 = 0.5f;
if (f1 < 0.0f) {
f1 = 0.0f;
}
if (f1 > 1.0f) {
f1 = 1.0f;
}
int i = super.getBrightnessForRender(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 getBrightness(float par1) {
float f1 = super.getBrightness(par1);
float f2 = 0.9f;
f2 = f2 * f2 * f2 * f2;
return f1 * (1.0f - f2) + f2;
}
protected void readEntityFromNBT(NBTTagCompound nbttagcompound) {
}
protected void writeEntityToNBT(NBTTagCompound nbttagcompound) {
}
@SideOnly(value=Side.CLIENT)
public void setPositionAndRotation2(double par1, double par3, double par5, float par7, float par8, int par9) {
}
public void setInPortal() {
}
public boolean isBurning() {
return false;
}
public boolean shouldRenderInPass(int pass) {
return pass == 1;
}
public void setInWeb() {
}
public Entity getThrower() {
int id;
if (this.thrower == null && (id = this.getThrowerEntityId()) != 0) {
this.thrower = this.worldObj.getEntityByID(id);
}
return this.thrower;
}
public void setThrower(Entity entity) {
if (entity != null) {
this.setThrowerEntityId(entity.getEntityId());
}
this.thrower = entity;
}
}
@@ -0,0 +1,379 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.client.registry.RenderingRegistry
* cpw.mods.fml.common.FMLCommonHandler
* cpw.mods.fml.common.network.simpleimpl.IMessage
* cpw.mods.fml.relauncher.ReflectionHelper
* mods.flammpfeil.slashblade.EntityDirectAttackDummy
* mods.flammpfeil.slashblade.EntityDrive
* mods.flammpfeil.slashblade.EntityPhantomSword
* mods.flammpfeil.slashblade.InitProxy
* mods.flammpfeil.slashblade.ItemRendererBaseWeapon
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ItemSlashBlade$SwordType
* mods.flammpfeil.slashblade.KeyBindingEx
* mods.flammpfeil.slashblade.MessageRangeAttack$RangeAttackState
* mods.flammpfeil.slashblade.PacketHandler
* mods.flammpfeil.slashblade.RenderDrive
* mods.flammpfeil.slashblade.RenderPhantomSword
* mods.flammpfeil.slashblade.SlashBlade
* mods.flammpfeil.slashblade.ability.AvoidAction
* mods.flammpfeil.slashblade.ability.client.StylishRankRenderer
* mods.flammpfeil.slashblade.client.renderer.BladeStandRender
* mods.flammpfeil.slashblade.client.renderer.ItemRendererSpecialMaterial
* mods.flammpfeil.slashblade.client.renderer.RenderPhantomSwordBase
* mods.flammpfeil.slashblade.client.renderer.entity.GrimGripKeyRender
* mods.flammpfeil.slashblade.client.renderer.entity.GrimGripRender
* mods.flammpfeil.slashblade.client.renderer.entity.RenderSummonedBlade
* mods.flammpfeil.slashblade.entity.EntityBladeStand
* mods.flammpfeil.slashblade.entity.EntityBlisteringSwords
* mods.flammpfeil.slashblade.entity.EntityCaliburManager
* mods.flammpfeil.slashblade.entity.EntityGrimGrip
* mods.flammpfeil.slashblade.entity.EntityGrimGripKey
* mods.flammpfeil.slashblade.entity.EntityHeavyRainSwords
* mods.flammpfeil.slashblade.entity.EntityHelmBrakerManager
* mods.flammpfeil.slashblade.entity.EntityJudgmentCutManager
* mods.flammpfeil.slashblade.entity.EntityJustGuardManager
* mods.flammpfeil.slashblade.entity.EntityMaximumBetManager
* mods.flammpfeil.slashblade.entity.EntityPhantomSwordBase
* mods.flammpfeil.slashblade.entity.EntityRapidSlashManager
* mods.flammpfeil.slashblade.entity.EntitySakuraEndManager
* mods.flammpfeil.slashblade.entity.EntitySpiralSwords
* mods.flammpfeil.slashblade.entity.EntityStormSwords
* mods.flammpfeil.slashblade.entity.EntitySummonedBlade
* mods.flammpfeil.slashblade.entity.EntitySummonedSwordAirTrickMarker
* mods.flammpfeil.slashblade.gui.AchievementsExtendedGuiHandler
* mods.flammpfeil.slashblade.network.MessageSpecialAction
* net.minecraft.client.Minecraft
* net.minecraft.client.entity.EntityClientPlayerMP
* net.minecraft.client.renderer.EntityRenderer
* net.minecraft.client.renderer.entity.Render
* net.minecraft.entity.Entity
* net.minecraft.entity.EntityLivingBase
* net.minecraft.entity.item.EntityItemFrame
* net.minecraft.item.Item
* net.minecraft.item.ItemStack
* net.minecraft.util.AxisAlignedBB
* net.minecraft.util.MovingObjectPosition
* net.minecraft.util.Timer
* net.minecraft.util.Vec3
* net.minecraftforge.client.IItemRenderer
* net.minecraftforge.client.MinecraftForgeClient
* net.minecraftforge.common.MinecraftForge
*/
package Fish.mods.slashblade.client;
import Fish.mods.slashblade.client.EntitySlashDim;
import Fish.mods.slashblade.client.RenderSlashDim;
import cpw.mods.fml.client.registry.RenderingRegistry;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.network.simpleimpl.IMessage;
import cpw.mods.fml.relauncher.ReflectionHelper;
import java.util.EnumSet;
import java.util.List;
import mods.flammpfeil.slashblade.EntityDirectAttackDummy;
import mods.flammpfeil.slashblade.EntityDrive;
import mods.flammpfeil.slashblade.EntityPhantomSword;
import mods.flammpfeil.slashblade.InitProxy;
import mods.flammpfeil.slashblade.ItemRendererBaseWeapon;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.KeyBindingEx;
import mods.flammpfeil.slashblade.MessageRangeAttack;
import mods.flammpfeil.slashblade.PacketHandler;
import mods.flammpfeil.slashblade.RenderDrive;
import mods.flammpfeil.slashblade.RenderPhantomSword;
import mods.flammpfeil.slashblade.SlashBlade;
import mods.flammpfeil.slashblade.ability.AvoidAction;
import mods.flammpfeil.slashblade.ability.client.StylishRankRenderer;
import mods.flammpfeil.slashblade.client.renderer.BladeStandRender;
import mods.flammpfeil.slashblade.client.renderer.ItemRendererSpecialMaterial;
import mods.flammpfeil.slashblade.client.renderer.RenderPhantomSwordBase;
import mods.flammpfeil.slashblade.client.renderer.entity.GrimGripKeyRender;
import mods.flammpfeil.slashblade.client.renderer.entity.GrimGripRender;
import mods.flammpfeil.slashblade.client.renderer.entity.RenderSummonedBlade;
import mods.flammpfeil.slashblade.entity.EntityBladeStand;
import mods.flammpfeil.slashblade.entity.EntityBlisteringSwords;
import mods.flammpfeil.slashblade.entity.EntityCaliburManager;
import mods.flammpfeil.slashblade.entity.EntityGrimGrip;
import mods.flammpfeil.slashblade.entity.EntityGrimGripKey;
import mods.flammpfeil.slashblade.entity.EntityHeavyRainSwords;
import mods.flammpfeil.slashblade.entity.EntityHelmBrakerManager;
import mods.flammpfeil.slashblade.entity.EntityJudgmentCutManager;
import mods.flammpfeil.slashblade.entity.EntityJustGuardManager;
import mods.flammpfeil.slashblade.entity.EntityMaximumBetManager;
import mods.flammpfeil.slashblade.entity.EntityPhantomSwordBase;
import mods.flammpfeil.slashblade.entity.EntityRapidSlashManager;
import mods.flammpfeil.slashblade.entity.EntitySakuraEndManager;
import mods.flammpfeil.slashblade.entity.EntitySpiralSwords;
import mods.flammpfeil.slashblade.entity.EntityStormSwords;
import mods.flammpfeil.slashblade.entity.EntitySummonedBlade;
import mods.flammpfeil.slashblade.entity.EntitySummonedSwordAirTrickMarker;
import mods.flammpfeil.slashblade.gui.AchievementsExtendedGuiHandler;
import mods.flammpfeil.slashblade.network.MessageSpecialAction;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.EntityClientPlayerMP;
import net.minecraft.client.renderer.EntityRenderer;
import net.minecraft.client.renderer.entity.Render;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.item.EntityItemFrame;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.util.Timer;
import net.minecraft.util.Vec3;
import net.minecraftforge.client.IItemRenderer;
import net.minecraftforge.client.MinecraftForgeClient;
import net.minecraftforge.common.MinecraftForge;
public class InitProxyClient
extends InitProxy {
public static KeyBindingEx lockon = null;
public static KeyBindingEx camera = null;
public void initializeItemRenderer() {
ItemRendererBaseWeapon renderer = new ItemRendererBaseWeapon();
MinecraftForgeClient.registerItemRenderer((Item)SlashBlade.weapon, (IItemRenderer)renderer);
MinecraftForgeClient.registerItemRenderer((Item)SlashBlade.bladeWood, (IItemRenderer)renderer);
MinecraftForgeClient.registerItemRenderer((Item)SlashBlade.bladeBambooLight, (IItemRenderer)renderer);
MinecraftForgeClient.registerItemRenderer((Item)SlashBlade.bladeSilverBambooLight, (IItemRenderer)renderer);
MinecraftForgeClient.registerItemRenderer((Item)SlashBlade.bladeWhiteSheath, (IItemRenderer)renderer);
MinecraftForgeClient.registerItemRenderer((Item)SlashBlade.wrapBlade, (IItemRenderer)renderer);
MinecraftForgeClient.registerItemRenderer((Item)SlashBlade.bladeNamed, (IItemRenderer)renderer);
MinecraftForge.EVENT_BUS.register(renderer);
ItemRendererSpecialMaterial render = new ItemRendererSpecialMaterial();
MinecraftForgeClient.registerItemRenderer((Item)SlashBlade.proudSoul, (IItemRenderer)render);
FMLCommonHandler.instance().bus().register(new StylishRankRenderer());
RenderDrive rd = new RenderDrive();
RenderingRegistry.registerEntityRenderingHandler(EntityDrive.class, (Render)rd);
RenderingRegistry.registerEntityRenderingHandler(EntityPhantomSword.class, (Render)new RenderPhantomSword());
RenderingRegistry.registerEntityRenderingHandler(EntityDirectAttackDummy.class, (Render)rd);
RenderingRegistry.registerEntityRenderingHandler(EntityJudgmentCutManager.class, (Render)rd);
RenderingRegistry.registerEntityRenderingHandler(EntitySakuraEndManager.class, (Render)rd);
RenderingRegistry.registerEntityRenderingHandler(EntityMaximumBetManager.class, (Render)rd);
RenderingRegistry.registerEntityRenderingHandler(EntityJustGuardManager.class, (Render)rd);
RenderingRegistry.registerEntityRenderingHandler(EntityRapidSlashManager.class, (Render)rd);
RenderingRegistry.registerEntityRenderingHandler(EntityHelmBrakerManager.class, (Render)rd);
RenderingRegistry.registerEntityRenderingHandler(EntityCaliburManager.class, (Render)rd);
RenderingRegistry.registerEntityRenderingHandler(EntityPhantomSwordBase.class, (Render)new RenderPhantomSwordBase());
RenderingRegistry.registerEntityRenderingHandler(EntitySummonedSwordAirTrickMarker.class, (Render)new RenderPhantomSwordBase());
RenderingRegistry.registerEntityRenderingHandler(EntityBlisteringSwords.class, (Render)new RenderPhantomSwordBase());
RenderingRegistry.registerEntityRenderingHandler(EntityHeavyRainSwords.class, (Render)new RenderPhantomSwordBase());
RenderingRegistry.registerEntityRenderingHandler(EntityStormSwords.class, (Render)new RenderPhantomSwordBase());
RenderingRegistry.registerEntityRenderingHandler(EntitySpiralSwords.class, (Render)new RenderPhantomSwordBase());
RenderingRegistry.registerEntityRenderingHandler(EntitySummonedBlade.class, (Render)new RenderSummonedBlade());
RenderingRegistry.registerEntityRenderingHandler(EntityBladeStand.class, (Render)new BladeStandRender());
RenderingRegistry.registerEntityRenderingHandler(EntityGrimGrip.class, (Render)new GrimGripRender());
RenderingRegistry.registerEntityRenderingHandler(EntityGrimGripKey.class, (Render)new GrimGripKeyRender());
RenderingRegistry.registerEntityRenderingHandler(EntitySlashDim.class, (Render)new RenderSlashDim());
KeyBindingEx keybind = new KeyBindingEx("Key.SlashBlade.PS", -98, "flammpfeil.slashblade"){
boolean charged;
{
this.charged = false;
}
public void upkey(int count) {
ItemStack item;
this.charged = false;
Minecraft mc = Minecraft.getMinecraft();
EntityClientPlayerMP player = mc.thePlayer;
if (player != null && !mc.isGamePaused() && mc.inGameHasFocus && mc.currentScreen == null && (item = player.getHeldItem()) != null && item.getItem() instanceof ItemSlashBlade) {
mc.playerController.updateController();
((ItemSlashBlade)item.getItem()).doRangeAttack(item, (EntityLivingBase)player, MessageRangeAttack.RangeAttackState.UPKEY);
}
}
public void downkey() {
super.downkey();
this.charged = false;
}
public void presskey(int count) {
super.presskey(count);
int ChargeTime = 7;
if (7 < count && !this.charged) {
ItemStack item;
this.charged = true;
Minecraft mc = Minecraft.getMinecraft();
EntityClientPlayerMP player = mc.thePlayer;
if (player != null && !mc.isGamePaused() && mc.inGameHasFocus && mc.currentScreen == null && (item = player.getHeldItem()) != null && item.getItem() instanceof ItemSlashBlade) {
mc.playerController.updateController();
long currentTime = player.getEntityWorld().getTotalWorldTime();
long backKeyLastActiveTime = player.getEntityData().getLong("SB.MCS.B");
int TypeAheadBuffer = 7;
int heavyRainState = 17;
int blisteringState = 17;
int stormState = 18;
MessageRangeAttack.RangeAttackState command = currentTime - backKeyLastActiveTime <= 14L && heavyRainState == (player.getEntityData().getByte("SB.MCS") & heavyRainState) ? MessageRangeAttack.RangeAttackState.HEAVY_RAIN : (blisteringState == (player.getEntityData().getByte("SB.MCS") & blisteringState) ? MessageRangeAttack.RangeAttackState.BLISTERING : (stormState == (player.getEntityData().getByte("SB.MCS") & stormState) ? MessageRangeAttack.RangeAttackState.STORM : MessageRangeAttack.RangeAttackState.SPIRAL));
((ItemSlashBlade)item.getItem()).doRangeAttack(item, (EntityLivingBase)player, command);
}
}
}
};
KeyBindingEx keybind2 = new KeyBindingEx("Key.SlashBlade.SA", 47, "flammpfeil.slashblade"){
public void downkey() {
Minecraft mc = Minecraft.getMinecraft();
EntityClientPlayerMP player = mc.thePlayer;
if (player == null) {
return;
}
if (mc.isGamePaused()) {
return;
}
if (!mc.inGameHasFocus) {
return;
}
if (mc.currentScreen != null) {
return;
}
ItemStack item = player.getHeldItem();
if (item == null) {
return;
}
if (!(item.getItem() instanceof ItemSlashBlade)) {
return;
}
int state = 17;
if (state == (player.getEntityData().getByte("SB.MCS") & state)) {
mc.playerController.updateController();
PacketHandler.INSTANCE.sendToServer((IMessage)new MessageSpecialAction((byte)1));
} else if (mc.thePlayer.moveStrafing != 0.0f || mc.thePlayer.moveForward != 0.0f) {
AvoidAction.doAvoid();
}
}
public void presskey(int count) {
super.presskey(count);
Minecraft mc = Minecraft.getMinecraft();
EntityClientPlayerMP player = mc.thePlayer;
if (player == null) {
return;
}
if (mc.isGamePaused()) {
return;
}
if (!mc.inGameHasFocus) {
return;
}
if (mc.currentScreen != null) {
return;
}
ItemStack item = player.getHeldItem();
if (item == null) {
return;
}
if (!(item.getItem() instanceof ItemSlashBlade)) {
return;
}
ItemSlashBlade bladeItem = (ItemSlashBlade)item.getItem();
EnumSet types = bladeItem.getSwordType(item);
if (!types.containsAll(ItemSlashBlade.SwordType.BewitchedPerfect)) {
return;
}
if (!types.contains(ItemSlashBlade.SwordType.FiercerEdge)) {
return;
}
player.worldObj.spawnParticle("portal", player.posX + (player.getRNG().nextDouble() - 0.5) * (double)player.width, player.posY + player.getRNG().nextDouble() * (double)player.height - 0.25, player.posZ + (player.getRNG().nextDouble() - 0.5) * (double)player.width, (player.getRNG().nextDouble() - 0.5) * 2.0, -player.getRNG().nextDouble(), (player.getRNG().nextDouble() - 0.5) * 2.0);
}
public void upkey(int count) {
super.upkey(count);
Minecraft mc = Minecraft.getMinecraft();
EntityClientPlayerMP player = mc.thePlayer;
if (player == null) {
return;
}
if (mc.isGamePaused()) {
return;
}
if (!mc.inGameHasFocus) {
return;
}
if (mc.currentScreen != null) {
return;
}
ItemStack item = player.getHeldItem();
if (item == null) {
return;
}
if (!(item.getItem() instanceof ItemSlashBlade)) {
return;
}
ItemSlashBlade bladeItem = (ItemSlashBlade)item.getItem();
EnumSet types = bladeItem.getSwordType(item);
if (!types.containsAll(ItemSlashBlade.SwordType.BewitchedPerfect)) {
return;
}
if (!types.contains(ItemSlashBlade.SwordType.FiercerEdge)) {
return;
}
if (20 > count) {
return;
}
mc.playerController.updateController();
PacketHandler.INSTANCE.sendToServer((IMessage)new MessageSpecialAction((byte)3));
}
};
lockon = new KeyBindingEx("Key.SlashBlade.LO", 42, "flammpfeil.slashblade"){};
camera = new KeyBindingEx("Key.SlashBlade.CA", 29, "flammpfeil.slashblade"){};
AchievementsExtendedGuiHandler extendedGuiHandler = new AchievementsExtendedGuiHandler();
}
public void getMouseOver(double len) {
Minecraft mc = Minecraft.getMinecraft();
float p_78473_1_ = ((Timer)ReflectionHelper.getPrivateValue(Minecraft.class, mc, "timer", "timer")).renderPartialTicks;
EntityRenderer er = mc.entityRenderer;
if (mc.renderViewEntity != null && mc.theWorld != null) {
mc.pointedEntity = null;
double d0 = len;
mc.objectMouseOver = mc.renderViewEntity.rayTrace(d0, p_78473_1_);
double d1 = d0;
Vec3 vec3 = mc.renderViewEntity.getPosition(p_78473_1_);
if (mc.objectMouseOver != null) {
d1 = mc.objectMouseOver.hitVec.distanceTo(vec3);
}
Vec3 vec31 = mc.renderViewEntity.getLook(p_78473_1_);
Vec3 vec32 = vec3.addVector(vec31.xCoord * d0, vec31.yCoord * d0, vec31.zCoord * d0);
Entity pointedEntity = null;
Vec3 vec33 = null;
float f1 = 1.0f;
List list = mc.theWorld.getEntitiesWithinAABBExcludingEntity((Entity)mc.renderViewEntity, mc.renderViewEntity.boundingBox.addCoord(vec31.xCoord * d0, vec31.yCoord * d0, vec31.zCoord * d0).expand((double)f1, (double)f1, (double)f1));
double d2 = d1;
for (int i = 0; i < list.size(); ++i) {
double d3;
Entity entity = (Entity)list.get(i);
if (!entity.canBeCollidedWith()) continue;
float f2 = entity.getCollisionBorderSize();
AxisAlignedBB axisalignedbb = entity.boundingBox.expand((double)f2, (double)f2, (double)f2);
MovingObjectPosition movingobjectposition = axisalignedbb.calculateIntercept(vec3, vec32);
if (axisalignedbb.isVecInside(vec3)) {
if (!(0.0 < d2) && d2 != 0.0) continue;
pointedEntity = entity;
vec33 = movingobjectposition == null ? vec3 : movingobjectposition.hitVec;
d2 = 0.0;
continue;
}
if (movingobjectposition == null || !((d3 = vec3.distanceTo(movingobjectposition.hitVec)) < d2) && d2 != 0.0) continue;
if (entity == mc.renderViewEntity.ridingEntity && !entity.canRiderInteract()) {
if (d2 != 0.0) continue;
pointedEntity = entity;
vec33 = movingobjectposition.hitVec;
continue;
}
pointedEntity = entity;
vec33 = movingobjectposition.hitVec;
d2 = d3;
}
if (pointedEntity != null && (d2 < d1 || mc.objectMouseOver == null)) {
mc.objectMouseOver = new MovingObjectPosition(pointedEntity, vec33);
if (pointedEntity instanceof EntityLivingBase || pointedEntity instanceof EntityItemFrame) {
mc.pointedEntity = pointedEntity;
}
}
}
}
}
@@ -0,0 +1,137 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* mods.flammpfeil.slashblade.client.model.obj.Util
* mods.flammpfeil.slashblade.client.renderer.GlStateManager
* net.minecraft.client.renderer.OpenGlHelper
* net.minecraft.client.renderer.entity.Render
* net.minecraft.client.renderer.texture.TextureManager
* net.minecraft.entity.Entity
* net.minecraft.util.ResourceLocation
* net.minecraftforge.client.model.AdvancedModelLoader
* net.minecraftforge.client.model.IModelCustom
* net.minecraftforge.client.model.obj.WavefrontObject
* org.lwjgl.opengl.GL11
*/
package Fish.mods.slashblade.client;
import Fish.mods.slashblade.client.EntitySlashDim;
import java.awt.Color;
import mods.flammpfeil.slashblade.client.model.obj.Util;
import mods.flammpfeil.slashblade.client.renderer.GlStateManager;
import net.minecraft.client.renderer.OpenGlHelper;
import net.minecraft.client.renderer.entity.Render;
import net.minecraft.client.renderer.texture.TextureManager;
import net.minecraft.entity.Entity;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.client.model.AdvancedModelLoader;
import net.minecraftforge.client.model.IModelCustom;
import net.minecraftforge.client.model.obj.WavefrontObject;
import org.lwjgl.opengl.GL11;
public class RenderSlashDim
extends Render {
public static IModelCustom model = null;
public static ResourceLocation modelLocation = new ResourceLocation("flammpfeil.slashblade", "model/util/dim.obj");
public static ResourceLocation textureLocation = new ResourceLocation("flammpfeil.slashblade", "model/util/slashdim.png");
private TextureManager engine() {
return this.renderManager.renderEngine;
}
public void doRender(Entity entity, double x, double y, double z, float yaw, float partialRenderTick) {
this.renderModel(entity, x, y, z, yaw, partialRenderTick);
}
public void renderModel(Entity entity, double x, double y, double z, float yaw, float partialRenderTick) {
if (model == null && (model = AdvancedModelLoader.loadModel((ResourceLocation)modelLocation)) instanceof WavefrontObject) {
Util.replaceFace((WavefrontObject)((WavefrontObject)model));
}
this.bindEntityTexture(entity);
GL11.glPushMatrix();
GL11.glPushAttrib((int)1048575);
GL11.glShadeModel((int)7425);
GL11.glDisable((int)2896);
GL11.glEnable((int)3042);
int color = 460552;
int lifetime = 20;
if (entity instanceof EntitySlashDim) {
color = ((EntitySlashDim)entity).getColor();
lifetime = ((EntitySlashDim)entity).getLifeTime();
}
boolean inverse = color < 0;
double deathTime = lifetime;
double baseAlpha = Math.sin(1.5707963267948966 * (Math.min(deathTime, (double)((float)(lifetime - entity.ticksExisted) - partialRenderTick)) / deathTime));
int seed = entity.getEntityData().getInteger("seed");
int baseColor = color;
Color col = new Color(baseColor);
float[] hsb = Color.RGBtoHSB(col.getRed(), col.getGreen(), col.getBlue(), null);
baseColor = Color.getHSBColor(0.5f + hsb[0], hsb[1], 0.2f).getRGB() & 0xFFFFFF;
baseColor |= (int)(102.0 * baseAlpha) << 24;
GL11.glTranslatef((float)((float)x), (float)((float)y), (float)((float)z));
float rotParTicks = 40.0f;
float rot = (float)entity.ticksExisted % rotParTicks / rotParTicks * 360.0f + partialRenderTick * (360.0f / rotParTicks);
float scale = 0.01f;
GL11.glScalef((float)scale, (float)scale, (float)scale);
float lastx = OpenGlHelper.lastBrightnessX;
float lasty = OpenGlHelper.lastBrightnessY;
OpenGlHelper.setLightmapTextureCoords((int)OpenGlHelper.lightmapTexUnit, (float)240.0f, (float)240.0f);
Color tmpColor = new Color(baseColor, true);
GL11.glColor4f((float)((float)tmpColor.getRed() / 255.0f), (float)((float)tmpColor.getGreen() / 255.0f), (float)((float)tmpColor.getBlue() / 255.0f), (float)((float)tmpColor.getAlpha() / 255.0f));
OpenGlHelper.glBlendFunc((int)770, (int)1, (int)1, (int)0);
GlStateManager.glBlendEquation((int)32779);
GL11.glPushMatrix();
for (int i = 0; i < 5; ++i) {
GL11.glScaled((double)0.95, (double)0.95, (double)0.95);
model.renderPart("base");
}
GL11.glPopMatrix();
int loop = 3;
for (int i = 0; i < loop; ++i) {
GL11.glPushMatrix();
float ticks = 15.0f;
float wave = ((float)entity.ticksExisted + ticks / (float)loop * (float)i + partialRenderTick) % ticks;
double waveScale = 1.0 + 0.03 * (double)wave;
GL11.glScaled((double)waveScale, (double)waveScale, (double)waveScale);
Color tmpColor2 = new Color(baseColor & 0xFFFFFF | (int)(136.0f * ((ticks - wave) / ticks)) << 24, true);
GL11.glColor4f((float)((float)tmpColor2.getRed() / 255.0f), (float)((float)tmpColor2.getGreen() / 255.0f), (float)((float)tmpColor2.getBlue() / 255.0f), (float)((float)tmpColor2.getAlpha() / 255.0f));
model.renderPart("base");
GL11.glPopMatrix();
}
GlStateManager.glBlendEquation((int)32774);
int windCount = 5;
for (int i = 0; i < windCount; ++i) {
GL11.glPushMatrix();
GL11.glRotated((double)(360.0 / (double)windCount * (double)i), (double)1.0, (double)0.0, (double)0.0);
GL11.glRotated((double)30.0, (double)0.0, (double)1.0, (double)0.0);
double rotWind = 18.0;
double offsetBase = 7.0;
double offset = (double)i * offsetBase;
double motionLen = offsetBase * (double)(windCount - 1);
double ticks = (float)entity.ticksExisted + partialRenderTick + (float)seed;
double offsetTicks = ticks + offset;
double progress = offsetTicks % motionLen / motionLen;
double rad = Math.PI * 2;
Color tmpColor3 = new Color(color & 0xFFFFFF | (int)Math.min(0.0, 255.0 * Math.sin(rad *= progress)) << 24, true);
GL11.glColor4f((float)((float)tmpColor3.getRed() / 255.0f), (float)((float)tmpColor3.getGreen() / 255.0f), (float)((float)tmpColor3.getBlue() / 255.0f), (float)((float)tmpColor3.getAlpha() / 255.0f));
double windScale = 0.4 + progress;
GL11.glScaled((double)windScale, (double)windScale, (double)windScale);
GL11.glRotated((double)(rotWind * offsetTicks), (double)0.0, (double)0.0, (double)1.0);
model.renderPart("wind");
GL11.glPopMatrix();
}
GL11.glColor4f((float)1.0f, (float)1.0f, (float)1.0f, (float)1.0f);
OpenGlHelper.setLightmapTextureCoords((int)OpenGlHelper.lightmapTexUnit, (float)lastx, (float)lasty);
GL11.glDisable((int)3042);
GL11.glEnable((int)2896);
GL11.glShadeModel((int)7424);
GL11.glPopAttrib();
GL11.glPopMatrix();
}
protected ResourceLocation getEntityTexture(Entity p_110775_1_) {
return textureLocation;
}
}
@@ -0,0 +1,14 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* net.minecraft.item.Item
*/
package Fish.mods.slashblade.item;
import net.minecraft.item.Item;
public class Astral
extends Item {
}