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

+4
View File
@@ -0,0 +1,4 @@
build/
run/
.gradle/
+1
View File
@@ -0,0 +1 @@
_client-1.7.10-real/mods/【拔刀剑附属】伪刃SlashBlade-PseudoEdge-mc1.7.10-r11.jar
+14
View File
@@ -0,0 +1,14 @@
# SlashBlade-PseudoEdge
Decompiled source tree derived from `_client-1.7.10-real/mods/【拔刀剑附属】伪刃SlashBlade-PseudoEdge-mc1.7.10-r11.jar`.
- Runtime modid: `Pseudo`
- Original jar copy: `original/【拔刀剑附属】伪刃SlashBlade-PseudoEdge-mc1.7.10-r11.jar`
- Decompiled Java: `src/main/java`
- Extracted resources: `src/main/resources`
Build with:
```sh
./gradlew clean build
```
+7
View File
@@ -0,0 +1,7 @@
plugins {
id 'com.gtnewhorizons.gtnhconvention'
}
tasks.named('jar') {
archiveFileName = 'SlashBlade-PseudoEdge-mc1.7.10-r11.jar'
}
+7
View File
@@ -0,0 +1,7 @@
dependencies {
compileOnlyApi('mods.flammpfeil.slashblade:SlashBlade:mc1.7.10-r87')
}
repositories {
mavenLocal()
}
+28
View File
@@ -0,0 +1,28 @@
gtnh.settings.blowdryerTag = 0.2.0
modName = Pseudo
modId = Pseudo
modGroup = Fish.mods.slashblade
modVersion = 1.0.0
useModGroupForPublishing = false
autoUpdateBuildScript = false
minecraftVersion = 1.7.10
forgeVersion = 10.13.4.1614
channel = stable
mappingsVersion = 12
remoteMappings = https\://raw.githubusercontent.com/MinecraftForge/FML/1.7.10/conf/
developmentEnvironmentUserName = Developer
enableModernJavaSyntax = false
enableGenericInjection = false
usesMixins = false
usesShadowedDependencies = false
includeWellKnownRepositories = true
disableSpotless = true
disableCheckstyle = true
org.gradle.jvmargs = -Xmx2G
org.gradle.parallel = true
org.gradle.configuration-cache = false
Binary file not shown.
+7
View File
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.0-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Vendored
+248
View File
@@ -0,0 +1,248 @@
#!/bin/sh
#
# Copyright © 2015 the original authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#
##############################################################################
#
# Gradle start up script for POSIX generated by Gradle.
#
# Important for running:
#
# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
# noncompliant, but you have some other compliant shell such as ksh or
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
# * functions;
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
# * compound commands having a testable exit status, especially «case»;
# * various built-in commands including «command», «set», and «ulimit».
#
# Important for patching:
#
# (2) This script targets any POSIX shell, so it avoids extensions provided
# by Bash, Ksh, etc; in particular arrays are avoided.
#
# The "traditional" practice of packing multiple parameters into a
# space-separated string is a well documented source of bugs and security
# problems, so this is (mostly) avoided, by progressively accumulating
# options in "$@", and eventually passing that to Java.
#
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
# see the in-line comments for details.
#
# There are tweaks for specific operating systems such as AIX, CygWin,
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/b631911858264c0b6e4d6603d677ff5218766cee/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
#
##############################################################################
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
app_path=$0
# Need this for daisy-chained symlinks.
while
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
[ -h "$app_path" ]
do
ls=$( ls -ld "$app_path" )
link=${ls#*' -> '}
case $link in #(
/*) app_path=$link ;; #(
*) app_path=$APP_HOME$link ;;
esac
done
# This is normally unused
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
warn () {
echo "$*"
} >&2
die () {
echo
echo "$*"
echo
exit 1
} >&2
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "$( uname )" in #(
CYGWIN* ) cygwin=true ;; #(
Darwin* ) darwin=true ;; #(
MSYS* | MINGW* ) msys=true ;; #(
NONSTOP* ) nonstop=true ;;
esac
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD=$JAVA_HOME/jre/sh/java
else
JAVACMD=$JAVA_HOME/bin/java
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD=java
if ! command -v java >/dev/null 2>&1
then
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
fi
# Increase the maximum file descriptors if we can.
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC2039,SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC2039,SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
fi
# Collect all arguments for the java command, stacking in reverse order:
# * args from the command line
# * the main class name
# * -classpath
# * -D...appname settings
# * --module-path (only if needed)
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
# For Cygwin or MSYS, switch paths to Windows format before running java
if "$cygwin" || "$msys" ; then
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
JAVACMD=$( cygpath --unix "$JAVACMD" )
# Now convert the arguments - kludge to limit ourselves to /bin/sh
for arg do
if
case $arg in #(
-*) false ;; # don't mess with options #(
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
[ -e "$t" ] ;; #(
*) false ;;
esac
then
arg=$( cygpath --path --ignore --mixed "$arg" )
fi
# Roll the args list around exactly as many times as the number of
# args, so each arg winds up back in the position where it started, but
# possibly modified.
#
# NB: a `for` loop captures its iteration list before it begins, so
# changing the positional parameters here affects neither the number of
# iterations, nor the values presented in `arg`.
shift # remove old arg
set -- "$@" "$arg" # push replacement arg
done
fi
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Collect all arguments for the java command:
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# and any embedded shellness will be escaped.
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
# treated as '${Hostname}' itself on the command line.
set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
"$@"
# Stop when "xargs" is not available.
if ! command -v xargs >/dev/null 2>&1
then
die "xargs is not available"
fi
# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
#
# In Bash we could simply go:
#
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
# set -- "${ARGS[@]}" "$@"
#
# but POSIX shell has neither arrays nor command substitution, so instead we
# post-process each arg (as a line of input to sed) to backslash-escape any
# character that might be a shell metacharacter, then use eval to reverse
# that process (while maintaining the separation between arguments), and wrap
# the whole thing up as a single "set" statement.
#
# This will of course break if any of these variables contains a newline or
# an unmatched quote.
#
eval "set -- $(
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
xargs -n1 |
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
tr '\n' ' '
)" '"$@"'
exec "$JAVACMD" "$@"
Vendored
+90
View File
@@ -0,0 +1,90 @@
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto init
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:init
@rem Get command-line arguments, handling Windowz variants
if not "%OS%" == "Windows_NT" goto win9xME_args
if "%@eval[2+2]" == "4" goto 4NT_args
:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2
:win9xME_args_slurp
if "x%~1" == "x" goto execute
set CMD_LINE_ARGS=%*
goto execute
:4NT_args
@rem Get arguments from the 4NT Shell from JP Software
set CMD_LINE_ARGS=%$
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
+19
View File
@@ -0,0 +1,19 @@
pluginManagement {
repositories {
maven {
name "GTNH Maven"
url "https://nexus.gtnewhorizons.com/repository/public/"
mavenContent {
includeGroup("com.gtnewhorizons")
includeGroupByRegex("com\\.gtnewhorizons\\..+")
}
}
gradlePluginPortal()
mavenCentral()
mavenLocal()
}
}
plugins {
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.49'
}
@@ -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 {
}
+2
View File
@@ -0,0 +1,2 @@
Summary for E:\天地联盟\SlashBlade-PseudoEdge\original\【拔刀剑附属】伪刃SlashBlade-PseudoEdge-mc1.7.10-r11.jar
Decompiled with CFR 0.152
@@ -0,0 +1,69 @@
achievement.flammpfeil.slashblade.blackblade=「Black Blade」
achievement.flammpfeil.slashblade.blackblade.desc=§8§l§oA black sword blade ring
item.flammpfeil.slashblade.named.blackblade.name=§0「Black Blade」
achievement.flammpfeil.slashblade.whitenblade=「White Blade」
achievement.flammpfeil.slashblade.whitenblade.desc=§8§l§oSword in the dream?!
item.flammpfeil.slashblade.named.whitenblade.name=§F「White Blade」
achievement.flammpfeil.slashblade.magicblade=「Archfiend eye Blade」
achievement.flammpfeil.slashblade.magicblade.desc=§8§l§oThe two transformation of Shadowbane?!
item.flammpfeil.slashblade.named.magicblade.name=§0「Archfiend eye Blade」
flammpfeil.slashblade.specialattack.SA_1=Archfiend Blast
achievement.flammpfeil.slashblade.latent=「Hidden moon blade」
achievement.flammpfeil.slashblade.latent.desc=§8§l§oMoonlight to see the blade?
item.flammpfeil.slashblade.named.latent.name=§9「Hidden moon blade」
flammpfeil.slashblade.specialattack.SA_2=Hidden information
achievement.flammpfeil.slashblade.xblades=「Life blade」
achievement.flammpfeil.slashblade.xblades.desc=§8§l§oThis blade decides your destiny.
item.flammpfeil.slashblade.named.xblades.name=§C「Life blade」
achievement.flammpfeil.slashblade.dragonblade=Dragon Blade 「scarlet」
achievement.flammpfeil.slashblade.dragonblade.desc=§8§l§oThe sword forged by the soul of the Dragon?!
item.flammpfeil.slashblade.named.dragonblade.name=§CDragon Blade 「scarlet」
flammpfeil.slashblade.specialattack.SA_3=Dragonsoul attachment
achievement.flammpfeil.slashblade.purpleblade=The purple blade is hollow
achievement.flammpfeil.slashblade.purpleblade.desc=§8§l§oA false blade?!
item.flammpfeil.slashblade.named.purpleblade.name=§5The purple blade is hollow
flammpfeil.slashblade.specialattack.SA_4=Translation cut
achievement.flammpfeil.slashblade.dimension=Dimensional blade 「pseudo」
achievement.flammpfeil.slashblade.dimension.desc=§8§l§oDimension transfer?!
item.flammpfeil.slashblade.named.dimension.name=§5Dimensional blade 「pseudo」
flammpfeil.slashblade.specialattack.SA_5=translation
achievement.flammpfeil.slashblade.dimension=Kuma「Sakura」
achievement.flammpfeil.slashblade.dimension.desc=§8§l§oUnder the moonlight, the knife appeared under the cherry tree?!
item.flammpfeil.slashblade.named.dimension.name=§6Kuma「Sakura」
flammpfeil.slashblade.specialattack.SA_6=Space shock
achievement.flammpfeil.slashblade.vitex=The blade of thorns is empty
achievement.flammpfeil.slashblade.vitex.desc=§8§l§oA knife in the unreal?!
item.flammpfeil.slashblade.named.vitex.name=§5The blade of thorns is empty
flammpfeil.slashblade.specialattack.SA_7=Virtual translation
achievement.flammpfeil.slashblade.kingblade=「Destroy」
achievement.flammpfeil.slashblade.kingblade.desc=「Destroy」
item.flammpfeil.slashblade.named.kingblade.name=§C「Destroy」
flammpfeil.slashblade.specialattack.SA_8=「Destroy」
achievement.flammpfeil.slashblade.emptyblade=Blade of nothingness「」
achievement.flammpfeil.slashblade.emptyblade.desc=§8§l§oThe blade of nothingness? The true blade?!
item.flammpfeil.slashblade.named.emptyblade.name=§0Blade of nothingness「」
flammpfeil.slashblade.specialattack.SA_9=Touch of nothingness
achievement.flammpfeil.slashblade.soulb=Virtual plane soul Calibur
achievement.flammpfeil.slashblade.soulb.desc=§8§l§oA large Katana burst after outsider soul?!
item.flammpfeil.slashblade.named.soulb.name=§bVirtual plane soul Calibur
item.flammpfeil.slashblade.named.blade1.name=§BDiamond sword「」
item.flammpfeil.slashblade.named.blade2.name=§FIron sword「」
item.flammpfeil.slashblade.named.blade3.name=§7Stone Sword「」
achievement.flammpfeil.slashblade.heitong=「Heitong」
achievement.flammpfeil.slashblade.heitong.desc=Black belt with white?
item.flammpfeil.slashblade.named.heitong.name=§0「Heitong」
flammpfeil.slashblade.specialattack.SA_11=「Black hol」
@@ -0,0 +1,69 @@
achievement.flammpfeil.slashblade.blackblade=「黒刃」
achievement.flammpfeil.slashblade.blackblade.desc=§8§l§o黒の刃を無名剑
item.flammpfeil.slashblade.named.blackblade.name=§0「黒刃」
achievement.flammpfeil.slashblade.whitenblade=「白刃」
achievement.flammpfeil.slashblade.whitenblade.desc=§8§l§o夢の中の剣?!
item.flammpfeil.slashblade.named.whitenblade.name=§F「白刃」
achievement.flammpfeil.slashblade.magicblade=「魔刃」
achievement.flammpfeil.slashblade.magicblade.desc=§8§l§o魔剣の二次転化?!
item.flammpfeil.slashblade.named.magicblade.name=§0「魔刃」
flammpfeil.slashblade.specialattack.SA_1=魔爆斬
achievement.flammpfeil.slashblade.latent=「隠し月.刃」
achievement.flammpfeil.slashblade.latent.desc=§8§l§o月明かりの下で見える刃?
item.flammpfeil.slashblade.named.latent.name=§9「隠し月.刃」
flammpfeil.slashblade.specialattack.SA_2=隠して
achievement.flammpfeil.slashblade.xblades=「本命刃」
achievement.flammpfeil.slashblade.xblades.desc=§8§l§oこの刃はあなたの運命を決定する。
item.flammpfeil.slashblade.named.xblades.name=§C「本命刃」
achievement.flammpfeil.slashblade.dragonblade=竜刃「スカーレット」
achievement.flammpfeil.slashblade.dragonblade.desc=§8§l§o竜の魂が鍛えた刀?!
item.flammpfeil.slashblade.named.dragonblade.name=§C竜刃「スカーレット」
flammpfeil.slashblade.specialattack.SA_3=竜魂にとりつかれる
achievement.flammpfeil.slashblade.purpleblade=紫刃「虚」
achievement.flammpfeil.slashblade.purpleblade.desc=§8§l§o偽りの刃?!
item.flammpfeil.slashblade.named.purpleblade.name=§5紫刃「虚」
flammpfeil.slashblade.specialattack.SA_4=並進斬
achievement.flammpfeil.slashblade.dimension=次元の刃「偽」
achievement.flammpfeil.slashblade.dimension.desc=§8§l§o次元の転送?!
item.flammpfeil.slashblade.named.dimension.name=§5次元の刃「偽」
flammpfeil.slashblade.specialattack.SA_5=並進
achievement.flammpfeil.slashblade.dimension=山桜「神の月」
achievement.flammpfeil.slashblade.dimension.desc=§8§l§桜の樹の下で現れた刀?!
item.flammpfeil.slashblade.named.dimension.name=§6山桜「神の月」
flammpfeil.slashblade.specialattack.SA_6=宇宙地震
achievement.flammpfeil.slashblade.vitex=イバラの刃「虚」
achievement.flammpfeil.slashblade.vitex.desc=§8§l§oまぼろしに変わる刀?!
item.flammpfeil.slashblade.named.vitex.name=§5イバラの刃「虚」
flammpfeil.slashblade.specialattack.SA_7=虚.並進斬斬り
achievement.flammpfeil.slashblade.kingblade=「滅」
achievement.flammpfeil.slashblade.kingblade.desc=「滅」
item.flammpfeil.slashblade.named.kingblade.name=§C「滅」
flammpfeil.slashblade.specialattack.SA_8=「滅」
achievement.flammpfeil.slashblade.emptyblade=虚無の刃「」
achievement.flammpfeil.slashblade.emptyblade.desc=§8§l§o真実の刃は?!
item.flammpfeil.slashblade.named.emptyblade.name=§0虚無の刃「」
flammpfeil.slashblade.specialattack.SA_9=虚ろに触れて
achievement.flammpfeil.slashblade.soulb=虚異界ソウルキャリバー「」
achievement.flammpfeil.slashblade.soulb.desc=§8§l§o大太刀爆裂後に現れた異界ソウルキャリバー?!
item.flammpfeil.slashblade.named.soulb.name=§b虚異界ソウルキャリバー「」
item.flammpfeil.slashblade.named.blade1.name=§Bダイヤモンドの剣「」
item.flammpfeil.slashblade.named.blade2.name=§F鉄剣「」
item.flammpfeil.slashblade.named.blade3.name=§7石剑「」
achievement.flammpfeil.slashblade.heitong=「黒瞳」
achievement.flammpfeil.slashblade.heitong.desc=黒に白?
item.flammpfeil.slashblade.named.heitong.name=§0「黒瞳」
flammpfeil.slashblade.specialattack.SA_11=「黒い穴」
@@ -0,0 +1,69 @@
achievement.flammpfeil.slashblade.blackblade=「黑刃」
achievement.flammpfeil.slashblade.blackblade.desc=§8§l§o一把黑色的剑刃的无名剑
item.flammpfeil.slashblade.named.blackblade.name=§0「黑刃」
achievement.flammpfeil.slashblade.whitenblade=「白刃」
achievement.flammpfeil.slashblade.whitenblade.desc=§8§l§o梦境中的剑?!
item.flammpfeil.slashblade.named.whitenblade.name=§F「白刃」
achievement.flammpfeil.slashblade.magicblade=「魔刃」
achievement.flammpfeil.slashblade.magicblade.desc=§8§l§o魔剑的二次转化?!
item.flammpfeil.slashblade.named.magicblade.name=§0「魔刃」
flammpfeil.slashblade.specialattack.SA_1=魔爆斩
achievement.flammpfeil.slashblade.latent=「隐月.刃」
achievement.flammpfeil.slashblade.latent.desc=§8§l§o月光下才能看见的刃?
item.flammpfeil.slashblade.named.latent.name=§9「隐月.刃」
flammpfeil.slashblade.specialattack.SA_2=隐息
achievement.flammpfeil.slashblade.xblades=「命刃」
achievement.flammpfeil.slashblade.xblades.desc=§8§l§o这把 刃 决定你的命运。
item.flammpfeil.slashblade.named.xblades.name=§C「命刃」
achievement.flammpfeil.slashblade.dragonblade=龙刃「猩红」
achievement.flammpfeil.slashblade.dragonblade.desc=§8§l§o龙的灵魂所锻造的刀?!
item.flammpfeil.slashblade.named.dragonblade.name=§C龙刃「猩红」
flammpfeil.slashblade.specialattack.SA_3=龙魂附体
achievement.flammpfeil.slashblade.purpleblade=紫刃「虚」
achievement.flammpfeil.slashblade.purpleblade.desc=§8§l§o虚假的刃?!
item.flammpfeil.slashblade.named.purpleblade.name=§5紫刃「虚」
flammpfeil.slashblade.specialattack.SA_4=平移斩
achievement.flammpfeil.slashblade.dimension=次元之刃「伪」
achievement.flammpfeil.slashblade.dimension.desc=§8§l§o次元传送?!
item.flammpfeil.slashblade.named.dimension.name=§5次元之刃「伪」
flammpfeil.slashblade.specialattack.SA_5=平移
achievement.flammpfeil.slashblade.kumasakura=山樱「伪」
achievement.flammpfeil.slashblade.kumasakura.desc=§8§l§o月光照耀下,樱花树下出现的刀?!
item.flammpfeil.slashblade.named.kumasakura.name=§6山樱「伪」
flammpfeil.slashblade.specialattack.SA_6=空间次元
achievement.flammpfeil.slashblade.vitex=荆棘之刃「虚」
achievement.flammpfeil.slashblade.vitex.desc=§8§l§o虚幻中幻化的刀?!
item.flammpfeil.slashblade.named.vitex.name=§5荆棘之刃「虚」
flammpfeil.slashblade.specialattack.SA_7=虚.平移斩
achievement.flammpfeil.slashblade.soulb=异界剑魂「」
achievement.flammpfeil.slashblade.soulb.desc=§8§l§o大太刀爆裂后出现的异界剑魂?!
item.flammpfeil.slashblade.named.soulb.name=§b异界剑魂「」
achievement.flammpfeil.slashblade.emptyblade=虚无之刃「」
achievement.flammpfeil.slashblade.emptyblade.desc=§8§l§o虚无的刃?!真实的刃?!
item.flammpfeil.slashblade.named.emptyblade.name=§0虚无之刃「」
flammpfeil.slashblade.specialattack.SA_9=虚无之触
achievement.flammpfeil.slashblade.kingblade=「灭」
achievement.flammpfeil.slashblade.kingblade.desc=「灭」
item.flammpfeil.slashblade.named.kingblade.name=§C「灭」
flammpfeil.slashblade.specialattack.SA_8=「灭」
item.flammpfeil.slashblade.named.blade1.name=§B钻石剑「」
item.flammpfeil.slashblade.named.blade2.name=§F铁剑「」
item.flammpfeil.slashblade.named.blade3.name=§7石剑「」
achievement.flammpfeil.slashblade.heitong=「黑瞳」
achievement.flammpfeil.slashblade.heitong.desc=黑中带白?
item.flammpfeil.slashblade.named.heitong.name=§0「黑瞳」
flammpfeil.slashblade.specialattack.SA_11=「黑穴」
@@ -0,0 +1,69 @@
achievement.flammpfeil.slashblade.blackblade=「黑刃」
achievement.flammpfeil.slashblade.blackblade.desc=§8§l§o一把黑色的劍刃的無名劍
item.flammpfeil.slashblade.named.blackblade.name=§0「黑刃」
achievement.flammpfeil.slashblade.whitenblade=「白刃」
achievement.flammpfeil.slashblade.whitenblade.desc=§8§l§o夢境中的劍?!
item.flammpfeil.slashblade.named.whitenblade.name=§F「白刃」
achievement.flammpfeil.slashblade.magicblade=「魔刃」
achievement.flammpfeil.slashblade.magicblade.desc=§8§l§o魔劍的二次轉化?!
item.flammpfeil.slashblade.named.magicblade.name=§0「魔刃」
flammpfeil.slashblade.specialattack.SA_1=魔爆斬
achievement.flammpfeil.slashblade.latent=「隱月.刃」
achievement.flammpfeil.slashblade.latent.desc=§8§l§o月光下才能看見的刃?
item.flammpfeil.slashblade.named.latent.name=§9「隱月.刃」
flammpfeil.slashblade.specialattack.SA_2=隱息
achievement.flammpfeil.slashblade.xblades=「命刃」
achievement.flammpfeil.slashblade.xblades.desc=§8§l§o這把刃决定你的命運。
item.flammpfeil.slashblade.named.xblades.name=§C「命刃」
achievement.flammpfeil.slashblade.dragonblade=龍刃「猩紅」
achievement.flammpfeil.slashblade.dragonblade.desc=§8§l§o龍的靈魂所鍛造的刀?!
item.flammpfeil.slashblade.named.dragonblade.name=§C龍刃「猩紅」
flammpfeil.slashblade.specialattack.SA_3=龍魂附體
achievement.flammpfeil.slashblade.purpleblade=紫刃「虛」
achievement.flammpfeil.slashblade.purpleblade.desc=§8§l§o虛假的刃?!
item.flammpfeil.slashblade.named.purpleblade.name=§5紫刃「虛」
flammpfeil.slashblade.specialattack.SA_4=平移斬
achievement.flammpfeil.slashblade.dimension=次元之刃「偽」
achievement.flammpfeil.slashblade.dimension.desc=§8§l§o次元傳送?!
item.flammpfeil.slashblade.named.dimension.name=§5次元之刃「偽」
flammpfeil.slashblade.specialattack.SA_5=平移
achievement.flammpfeil.slashblade.dimension=山櫻「偽」
achievement.flammpfeil.slashblade.dimension.desc=§8§l§月光照耀下,櫻花樹下出現的刀?!
item.flammpfeil.slashblade.named.dimension.name=§6山櫻「偽」
flammpfeil.slashblade.specialattack.SA_6=空間次元
achievement.flammpfeil.slashblade.vitex=荊棘之刃「虛」
achievement.flammpfeil.slashblade.vitex.desc=§8§l§o虛幻中幻化的刀?!
item.flammpfeil.slashblade.named.vitex.name=§5荊棘之刃「虛」
flammpfeil.slashblade.specialattack.SA_7=虛.平移斬
achievement.flammpfeil.slashblade.kingblade=「滅」
achievement.flammpfeil.slashblade.kingblade.desc=「滅」
item.flammpfeil.slashblade.named.kingblade.name=§C「滅」
flammpfeil.slashblade.specialattack.SA_8=「滅」
achievement.flammpfeil.slashblade.emptyblade=虛無之刃「」
achievement.flammpfeil.slashblade.soulb.desc=§8§l§o虛無的刃?!真實的刃?!
item.flammpfeil.slashblade.named.soulb.name=§0虛無之刃「」
flammpfeil.slashblade.specialattack.SA_9=虛無之觸
item.flammpfeil.slashblade.named.blade1.name=§B鑽石劍「」
item.flammpfeil.slashblade.named.blade2.name=§F鐵劍「」
item.flammpfeil.slashblade.named.blade3.name=§7石劍「」
achievement.flammpfeil.slashblade.soulb=虛异界劍魂「」
achievement.flammpfeil.slashblade.soulb.desc=§8§l§o大太刀爆裂後出現的异界劍魂?!
item.flammpfeil.slashblade.named.soulb.name=§b虛异界劍魂「」
achievement.flammpfeil.slashblade.heitong=「黑瞳」
achievement.flammpfeil.slashblade.heitong.desc=黑中帶白?
item.flammpfeil.slashblade.named.heitong.name=§0「黑瞳」
flammpfeil.slashblade.specialattack.SA_11=「黑穴」
File diff suppressed because it is too large. Load diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

File diff suppressed because it is too large. Load diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 303 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

File diff suppressed because it is too large. Load diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

File diff suppressed because it is too large. Load diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 839 KiB

File diff suppressed because it is too large. Load diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 436 KiB

File diff suppressed because it is too large. Load diff
@@ -0,0 +1,14 @@
{
"swingblade":{
"category":"player",
"sounds":[
{
"name": "swingblade",
"weight": 1,
"volume": 1,
"pitch":1,
"stream":false
}
]
}
}
+16
View File
@@ -0,0 +1,16 @@
[
{
"modid": "Pseudo",
"name": "Pseudo",
"description": "Pseudo.",
"version": "1.0.0",
"mcversion": "1.7.10",
"url": "",
"updateUrl": "",
"authorList": ["Fish"],
"credits": "a mod of the minecraft",
"logoFile": "",
"screenshots": [],
"dependencies": []
}
]
+244
View File
@@ -0,0 +1,244 @@
SlashBlade mc1.7.2 ${version}
◆概要
鞘付きの大太刀を追加します。
かの鬼兄ぃ様の魔剣がモデルです。
たぶんSSP用?SMPにも対応した・・・かも?
結構な壊れ性能
◆利用条件
自己責任の下にるなりやくなり好きにするべし。
私は責任はとらぬ。
衝撃波ソースを蛍光塗料氏の無銘剣より拝借
配布元に倣い、揚げるなり炒めるなりご自由に。
◆必要環境(※開発環境のためこれ以前でも動く場合があります
mc1.7.2 forge1024以降
◆インストール
modsに入れてください。
◆使い方
コンボルート
1.
右:切り上げ 単体 attackableList無視
 右:切り下ろし 単体 attackableList無視
 左:切り下ろし 範囲
2.
左:鞘打ち出し 敵拘束 殺傷なし
 右:切り上げ 単体 attackableList無視 >1.へ
 左:鞘戻し 敵拘束 殺傷なし
  左:抜刀
3.ジャンプ中
右:空中居合い 単体 敵拘束 attackableList無視
 右:抜刀 単体 attackableList無視
 左:抜刀 範囲
4.ジャンプ中
左:空中居合い 範囲 敵拘束
 左:抜刀 単体 attackableList無視
 左:抜刀 範囲
※エネミーステップ or 時間経過でジャンプコンボ リセット
※エネミーステップ
 モンスターの周囲1ブロック以内であれば踏みつけて更にジャンプできる
 攻撃は普通に受けるので、鞘打ちや、ジャンプ空中居合い1段の敵拘束を利用して反撃を防ぎながらどうぞ。
※攻撃力補足
 鞘打ち    =石相当   殺傷なし ※妖刀化の補正あり
 抜刀攻撃   =ダイヤ相当 殺傷あり ※妖刀化の補正あり
 折れたあと全て=木刀未満       ※妖刀化の補正無し
※範囲攻撃補足
・敵対Mobにしか当たらない
・狼も怒って様が当たらない
・村人にも当たらないよ
 ※デフォ設定だとね
・無敵時間無視、ただし次段まで5tickのインターバル(次段の先行入力は可能
・一定時間入力がないと1段から入力し直し(10tick)
・左クリックはコンボに関係無し※無敵時間無視も無い
・矢を叩き折れるよ、折るので当然拾えないよ。
・耐久なくなると折れる。折れるだけで消えたりはしないよ。
・完品状態で抜刀すると治る。
持った状態でスニークしてる間、最も近いAttackableにカメラロック
カーソル合わせてるエンティティ優先(※AttackableList無視
※ロック後はスニークしている限りロック継続
◆レシピ他各性能解説
bladeWood 木刀(攻撃力:木剣 耐久:60 補修:原木 折れると消失
 " #",
 " # ",
 "X ",
 '#',"logWood",
 'X',new ItemStack(Item.swordWood,1,1) ※木の剣で耐久が1消費済みのもの(1回だけ殴ったもの)
bladeBambooLight 竹光(攻撃力:石剣 耐久:50 補修:竹 折れると消失
 " #",
 " # ",
 "X ",
 '#',"bamboo",
 'X', bladeWood ※木刀 耐久は減っててもいい
bladeSilverBambooLight 銀紙竹光(攻撃力:鉄剣 耐久:40 補修:竹 折れると消失
 " TI",
 "SXK",
 "PS ",
 'T', Item.egg,
 'I', Item.ingotIron / 銀粉 / 銀インゴット
 'S', Item.silk,
 'X', bladeBambooLight ※竹光 耐久は減っててもいい
 'K', "dyeBlack",
 'P', Item.paper
bladeWhiteSheath 白鞘の太刀(攻撃力:鉄剣 耐久:70 補修:鉄、スチール、スチールナゲット 折れても残る
 " #",
 " # ",
 "XG ",
 '#', Item.ingotIron※初期耐久2/3 or スチールインゴット※初期耐久3/4 or 刀の魂塊※後述の特殊インゴット 完品で完成
 'G', Item.ingotGold,
 'X', bladeWood ※木刀 耐久は減っててもいい
SlashBlade 大太刀「」※無銘無名の大太刀(攻撃力:ダイヤ剣 耐久:50 補修:鉄、スチール、スチールナゲット 折れても残る
 " BI",
 "L#C",
 "SG ",
 'L', Block.blockLapis,
 'C', Block.coalBlock,
 'I', itemSphereBladeSoul 刀の魂珠※後述の特殊な玉鋼
 'B', Item.blazeRod,
 'G', Item.ingotGold,
 'S', Item.silk,
 '#', brokenBladeWhite
itemIngotBladeSoul 刀の魂塊
 "PPP",
 "PIP",
 "PPP",
 'I', Item.ingotIron,
 'P', itemProudSoul 刀の魂片※刀が折れた際に入手
itemIngotBladeSoul 刀の魂塊 スチールを使ったお得Recipe
 " P ",
 "PIP",
 " P ",
 'I', "ingotSteel",
 'P', itemProudSoul 刀の魂片※刀が折れた際に入手
Item.expBottle 経験値ボトル
 "XXX",
 "XIX",
 "XXX",
 'I',Item.glassBottle,
 'X',proudSoul※刀が折れた際に入手
※精錬Recipe
itemSphereBladeSoul 刀の魂珠
itemIngotBladeSoul 刀の魂塊を精錬する。
 ◇KillCountが1000超えると、攻撃力限定解除(
  ・自Lvが特定の割合で攻撃力に加算。
◆大太刀「」のみの特殊能力
 ◇何かしらエンチャントするとSlashDimension開放(右クリ貯め攻撃)
  攻撃力は3段と同等、射程約20ブロックほど、視線方向の最も近いターゲットを中心に範囲攻撃、消耗(5+巻き込んだ敵数)
 ◇エンチャントと名を付けると、自己修復が付く妖刀モード。
  ・メインインベントリ中で手持ち状態以外の時、毎秒Expと満腹度を消費して自己修復
  ・耐久値全快の完品時3段目抜刀攻撃が自身を中心とした広範囲攻撃になる。
 ◇KillCountが1000超えると、攻撃力限定解除(
  ・自Lvが特定の割合で攻撃力に加算。
 ◇ProudSoulが1000を超えると、戦闘時修復能力開放
  ・手持ち中に経験値を拾うとそのぶん自己修復。
  ※ProudSoul自体は、手持ち中に経験値改修したり、妖刀時の自己修復で吸収される経験値で増えていく。
・範囲攻撃はエンダードラゴンにも当たるけれど、かなり判定は狭いかつシビア
・履歴
githubみて
https://github.com/flammpfeil/SlashBlade/commits/beta
mc1.6.2 r10
mod:攻撃力限定解除条件を妖刀モードから分離 1000Killに
mod:戦闘時修復解除条件を妖刀モードから分離 1000ProudSoul(吸収経験値量)に
add:周囲に敵が居る状態で、動かずに納刀を完了すると、経験値取得ボーナス他
※貰える経験値 周囲の敵数/2 上限10 耐久が40を切っていること。
mc1.6.2 r9
add:いろいろ追加。
mc1.6.2 r8
fix:遠隔攻撃時、折れるのではなく消失していたのを修正
fix:内部的に冗長な点一部リファクタリング
mc1.6.2 r7
fix:ほんのりSMP対応
mc1.6.2 r6
fix:溜め攻撃周りを整理。溜め完了時のエフェクト追加
mc1.6.2 r5
fix:攻撃可能リストの文字列エスケープ処理を追加
mc1.6.2 r3
fix:描画周りをさらに修正。若干滑らかに動くように?
mod:折れるのが、耐久全損時に(消失しなくなったのに赤ゲージで折れても意味がない)
mc1.6.2 r2
fix:描画周りを正常化 AetherはPFLMがあると使えるようになる。
add:攻撃可能リストConfigで右クリック時の攻撃対象を選択できるように
mc1.6.2 r1
アップデート 名称変更
mc1.5.0 r1
アップデート
mc1.4.6-7 r8
妖刀モード時
 鞘打ちでトドメさせない
 Lvによる強化がほんのり弱体化
 手持ち9個欄に無い場合修復しない
 折れたときの微妙な報酬追加。
  燃料としては溶岩バケツと同等&瓶とクラフトでエンチャ瓶に1個・・・。
対ガスト有効化
mc1.4.6-7 r7
妖刀モードのいろいろ追加。
mc1.4.6-7 r6
ノックバック無しロジック変更。
mc1.4.6-7 r5
ボス的に攻撃できるように修正。
着火TNTを切り壊す、火球を打ち返すように。
mc1.4.6-7 r4
右クリック押しっぱなしで手を振っていたの止める修正
他エンチャと銘の効果明記。
mc1.4.6-7 r3
右クリック押しっぱなしでコンボ進行していた点を修正。
クリックすべし
mc1.4.6-7 r2
鞘打ちにエンチャント乗らなかったの修正。
壊れ性能++
mc1.4.6-7 r1
初版