Initial decompiled source import

This commit is contained in:
hcs61256cs committed 2026-07-08 17:18:03 +08:00
commit d058caf1e6
41 files changed
+8663

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/【拔刀附属】神剑.jar
+14
View File
@@ -0,0 +1,14 @@
# SlashBlade-Kamuy
Decompiled source tree derived from `_client-1.7.10-real/mods/【拔刀附属】神剑.jar`.
- Detected modid: `flammpfeil.slashblade.kamuy`
- Source provenance jar: `original/【拔刀附属】神剑.jar`
- Decompiled Java: `src/main/java`
- Extracted resources: `src/main/resources`
Build with:
```sh
./gradlew clean build
```
+3
View File
@@ -0,0 +1,3 @@
plugins {
id 'com.gtnewhorizons.gtnhconvention'
}
+17
View File
@@ -0,0 +1,17 @@
Processing SlashBlade-Kamuy\original\�����������.jar (use silent to silence)
Processing mods.flammpfeil.slashblade.kamuy.InitProxy
Processing mods.flammpfeil.slashblade.kamuy.InitProxyClient
Processing mods.flammpfeil.slashblade.kamuy.Kamuy
Processing mods.flammpfeil.slashblade.kamuy.ability.EnderTeleportCanceller
Processing mods.flammpfeil.slashblade.kamuy.client.renderer.RenderDriveEx
Processing mods.flammpfeil.slashblade.kamuy.client.renderer.RenderPhantomSwordEx
Processing mods.flammpfeil.slashblade.kamuy.entity.EntityAquaEdge
Processing mods.flammpfeil.slashblade.kamuy.entity.EntityDriveEx
Processing mods.flammpfeil.slashblade.kamuy.entity.EntityFlareEdge
Processing mods.flammpfeil.slashblade.kamuy.entity.EntityLightningSword
Processing mods.flammpfeil.slashblade.kamuy.entity.EntityNoFireLightningBolt
Processing mods.flammpfeil.slashblade.kamuy.entity.EntityPhantomSwordEx
Processing mods.flammpfeil.slashblade.kamuy.specialattack.AquaEdge
Processing mods.flammpfeil.slashblade.kamuy.specialattack.FlareSpiral
Processing mods.flammpfeil.slashblade.kamuy.specialattack.LightningSwords
Processing mods.flammpfeil.slashblade.kamuy.specialattack.None
+9
View File
@@ -0,0 +1,9 @@
// Add your dependencies here
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 = SlashBlade Kamuy
modId = flammpfeil.slashblade.kamuy
modGroup = mods.flammpfeil.slashblade.kamuy
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-8.14.3-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
Binary file not shown.
+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.51'
}
@@ -0,0 +1,18 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.common.SidedProxy
*/
package mods.flammpfeil.slashblade.kamuy;
import cpw.mods.fml.common.SidedProxy;
public class InitProxy {
@SidedProxy(clientSide="mods.flammpfeil.slashblade.kamuy.InitProxyClient", serverSide="mods.flammpfeil.slashblade.kamuy.InitProxy")
public static InitProxy proxy;
public void initializeItemRenderer() {
}
}
@@ -0,0 +1,30 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.client.registry.RenderingRegistry
* net.minecraft.client.renderer.entity.Render
*/
package mods.flammpfeil.slashblade.kamuy;
import cpw.mods.fml.client.registry.RenderingRegistry;
import mods.flammpfeil.slashblade.kamuy.InitProxy;
import mods.flammpfeil.slashblade.kamuy.client.renderer.RenderDriveEx;
import mods.flammpfeil.slashblade.kamuy.client.renderer.RenderPhantomSwordEx;
import mods.flammpfeil.slashblade.kamuy.entity.EntityAquaEdge;
import mods.flammpfeil.slashblade.kamuy.entity.EntityDriveEx;
import mods.flammpfeil.slashblade.kamuy.entity.EntityLightningSword;
import mods.flammpfeil.slashblade.kamuy.entity.EntityPhantomSwordEx;
import net.minecraft.client.renderer.entity.Render;
public class InitProxyClient
extends InitProxy {
@Override
public void initializeItemRenderer() {
RenderingRegistry.registerEntityRenderingHandler(EntityPhantomSwordEx.class, (Render)new RenderPhantomSwordEx());
RenderingRegistry.registerEntityRenderingHandler(EntityLightningSword.class, (Render)new RenderPhantomSwordEx());
RenderingRegistry.registerEntityRenderingHandler(EntityDriveEx.class, (Render)new RenderDriveEx());
RenderingRegistry.registerEntityRenderingHandler(EntityAquaEdge.class, (Render)new RenderDriveEx());
}
}
@@ -0,0 +1,272 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* com.google.common.collect.Lists
* cpw.mods.fml.common.Mod
* cpw.mods.fml.common.Mod$EventHandler
* cpw.mods.fml.common.event.FMLPostInitializationEvent
* cpw.mods.fml.common.event.FMLPreInitializationEvent
* cpw.mods.fml.common.eventhandler.SubscribeEvent
* cpw.mods.fml.common.registry.EntityRegistry
* cpw.mods.fml.common.registry.GameRegistry
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ItemSlashBladeNamed
* mods.flammpfeil.slashblade.RecipeAwakeBlade
* mods.flammpfeil.slashblade.SlashBlade
* mods.flammpfeil.slashblade.named.event.LoadEvent$InitEvent
* mods.flammpfeil.slashblade.named.event.LoadEvent$PostInitEvent
* mods.flammpfeil.slashblade.stats.AchievementEx
* mods.flammpfeil.slashblade.stats.AchievementList
* mods.flammpfeil.slashblade.util.SlashBladeAchievementCreateEvent
* net.minecraft.enchantment.Enchantment
* net.minecraft.init.Blocks
* net.minecraft.init.Items
* net.minecraft.item.Item
* net.minecraft.item.Item$ToolMaterial
* net.minecraft.item.ItemStack
* net.minecraft.item.crafting.IRecipe
* net.minecraft.nbt.NBTTagCompound
* net.minecraft.stats.Achievement
* net.minecraft.stats.AchievementList
* net.minecraftforge.common.MinecraftForge
*/
package mods.flammpfeil.slashblade.kamuy;
import com.google.common.collect.Lists;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.registry.EntityRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
import java.util.Stack;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.ItemSlashBladeNamed;
import mods.flammpfeil.slashblade.RecipeAwakeBlade;
import mods.flammpfeil.slashblade.SlashBlade;
import mods.flammpfeil.slashblade.kamuy.InitProxy;
import mods.flammpfeil.slashblade.kamuy.ability.EnderTeleportCanceller;
import mods.flammpfeil.slashblade.kamuy.entity.EntityAquaEdge;
import mods.flammpfeil.slashblade.kamuy.entity.EntityDriveEx;
import mods.flammpfeil.slashblade.kamuy.entity.EntityFlareEdge;
import mods.flammpfeil.slashblade.kamuy.entity.EntityLightningSword;
import mods.flammpfeil.slashblade.kamuy.entity.EntityNoFireLightningBolt;
import mods.flammpfeil.slashblade.kamuy.entity.EntityPhantomSwordEx;
import mods.flammpfeil.slashblade.kamuy.specialattack.AquaEdge;
import mods.flammpfeil.slashblade.kamuy.specialattack.FlareSpiral;
import mods.flammpfeil.slashblade.kamuy.specialattack.LightningSwords;
import mods.flammpfeil.slashblade.kamuy.specialattack.None;
import mods.flammpfeil.slashblade.named.event.LoadEvent;
import mods.flammpfeil.slashblade.stats.AchievementEx;
import mods.flammpfeil.slashblade.stats.AchievementList;
import mods.flammpfeil.slashblade.util.SlashBladeAchievementCreateEvent;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.stats.Achievement;
import net.minecraftforge.common.MinecraftForge;
@Mod(name="Kamuy", modid="flammpfeil.slashblade.kamuy", version="mc1.7.10-r6", dependencies="required-after:flammpfeil.slashblade")
public class Kamuy {
public static final String modname = "Kamuy";
public static final String modid = "flammpfeil.slashblade.kamuy";
public static final String version = "mc1.7.10-r6";
public static EnderTeleportCanceller enderTeleportCanceller;
public static final String base = "flammpfeil.slashblade.named.kamuy.base";
public static final String water = "flammpfeil.slashblade.named.kamuy.water";
public static final String fire = "flammpfeil.slashblade.named.kamuy.fire";
public static final String lightning = "flammpfeil.slashblade.named.kamuy.lightning";
public static final int ArtsIDNone = 35;
public static final int ArtsIDAquaEdge = 36;
public static final int ArtsIDFlareSpiral = 37;
public static final int ArtsIDLightningSwords = 38;
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent evt) {
SlashBlade.InitEventBus.register(this);
}
@Mod.EventHandler
public void postInit(FMLPostInitializationEvent event) {
EntityRegistry.registerModEntity(EntityPhantomSwordEx.class, (String)"PhantomSwordExK", (int)1, this, (int)250, (int)1, (boolean)true);
EntityRegistry.registerModEntity(EntityLightningSword.class, (String)"LightningSword", (int)2, this, (int)250, (int)1, (boolean)true);
EntityRegistry.registerModEntity(EntityNoFireLightningBolt.class, (String)"NoFireLigntningBolt", (int)3, this, (int)250, (int)1, (boolean)true);
EntityRegistry.registerModEntity(EntityDriveEx.class, (String)"EntityDriveExK", (int)4, this, (int)250, (int)1, (boolean)true);
EntityRegistry.registerModEntity(EntityAquaEdge.class, (String)"EntityAquaEdge", (int)5, this, (int)250, (int)1, (boolean)true);
EntityRegistry.registerModEntity(EntityFlareEdge.class, (String)"EntityFlareEdge", (int)6, this, (int)250, (int)1, (boolean)true);
InitProxy.proxy.initializeItemRenderer();
enderTeleportCanceller = new EnderTeleportCanceller();
MinecraftForge.EVENT_BUS.register(enderTeleportCanceller);
}
@SubscribeEvent
public void init(LoadEvent.InitEvent event) {
ItemSlashBlade.specialAttacks.put(35, new None());
ItemSlashBlade.specialAttacks.put(36, new AquaEdge());
ItemSlashBlade.specialAttacks.put(37, new FlareSpiral());
ItemSlashBlade.specialAttacks.put(38, new LightningSwords());
String name = base;
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(60));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)(4.0f + Item.ToolMaterial.EMERALD.getDamageVsEntity()));
ItemSlashBlade.TextureName.set(tag, "named/kamuy/kamuy");
ItemSlashBlade.ModelName.set(tag, "named/kamuy/kamuy");
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(35));
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(2));
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
customblade.addEnchantment(Enchantment.looting, 1);
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add("flammpfeil.slashblade:" + name);
name = water;
customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
tag = new NBTTagCompound();
customblade.setTagCompound(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(60));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)(4.0f + Item.ToolMaterial.EMERALD.getDamageVsEntity()));
ItemSlashBlade.TextureName.set(tag, "named/kamuy/water");
ItemSlashBlade.ModelName.set(tag, "named/kamuy/kamuy");
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(36));
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(2));
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
customblade.addEnchantment(Enchantment.unbreaking, 3);
customblade.addEnchantment(Enchantment.looting, 3);
customblade.addEnchantment(Enchantment.knockback, 2);
customblade.addEnchantment(Enchantment.respiration, 1);
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add("flammpfeil.slashblade:" + name);
name = fire;
customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
tag = new NBTTagCompound();
customblade.setTagCompound(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(60));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)(4.0f + Item.ToolMaterial.EMERALD.getDamageVsEntity()));
ItemSlashBlade.TextureName.set(tag, "named/kamuy/fire");
ItemSlashBlade.ModelName.set(tag, "named/kamuy/kamuy");
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(37));
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(2));
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
customblade.addEnchantment(Enchantment.unbreaking, 3);
customblade.addEnchantment(Enchantment.fireAspect, 2);
customblade.addEnchantment(Enchantment.baneOfArthropods, 5);
customblade.addEnchantment(Enchantment.fireProtection, 1);
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add("flammpfeil.slashblade:" + name);
name = lightning;
customblade = new ItemStack((Item)SlashBlade.bladeNamed, 1, 0);
tag = new NBTTagCompound();
customblade.setTagCompound(tag);
ItemSlashBladeNamed.CurrentItemName.set(tag, name);
ItemSlashBladeNamed.CustomMaxDamage.set(tag, Integer.valueOf(60));
ItemSlashBlade.setBaseAttackModifier((NBTTagCompound)tag, (float)(4.0f + Item.ToolMaterial.EMERALD.getDamageVsEntity()));
ItemSlashBlade.TextureName.set(tag, "named/kamuy/lightning");
ItemSlashBlade.ModelName.set(tag, "named/kamuy/kamuy");
ItemSlashBlade.SpecialAttackType.set(tag, Integer.valueOf(38));
ItemSlashBlade.StandbyRenderType.set(tag, Integer.valueOf(2));
ItemSlashBladeNamed.IsDefaultBewitched.set(tag, Boolean.valueOf(true));
customblade.addEnchantment(Enchantment.unbreaking, 3);
customblade.addEnchantment(Enchantment.smite, 5);
customblade.addEnchantment(Enchantment.featherFalling, 4);
GameRegistry.registerCustomItemStack((String)name, (ItemStack)customblade);
ItemSlashBladeNamed.NamedBlades.add("flammpfeil.slashblade:" + name);
}
@SubscribeEvent
public void postinit(LoadEvent.PostInitEvent event) {
ItemStack sphere = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)"sphere_bladesoul", (int)1);
String name = base;
ItemStack blade = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name, (int)1);
ItemStack reqiredBlade = new ItemStack((Item)SlashBlade.weapon);
NBTTagCompound tag = ItemSlashBlade.getItemTagCompound((ItemStack)reqiredBlade);
ItemSlashBlade.RepairCount.set(tag, Integer.valueOf(5));
ItemSlashBlade.KillCount.set(tag, Integer.valueOf(1000));
ItemSlashBlade.ProudSoul.set(tag, Integer.valueOf(1000));
reqiredBlade.addEnchantment(Enchantment.looting, 1);
GameRegistry.registerCustomItemStack((String)(name + ".reqired"), (ItemStack)reqiredBlade);
ItemSlashBladeNamed.NamedBlades.add("flammpfeil.slashblade:" + name + ".reqired");
reqiredBlade = reqiredBlade.copy();
reqiredBlade.setItemDamage(Short.MAX_VALUE);
RecipeAwakeBlade recipe = new RecipeAwakeBlade(blade, reqiredBlade, new Object[]{"SQS", "IKI", "SBS", Character.valueOf('S'), sphere, Character.valueOf('K'), reqiredBlade, Character.valueOf('Q'), new ItemStack(Items.quartz), Character.valueOf('I'), new ItemStack(Blocks.iron_block), Character.valueOf('B'), new ItemStack(Items.book)});
GameRegistry.addRecipe((IRecipe)recipe);
SlashBlade.recipeMultimap.put(name, recipe);
String reqiredBladeName = base;
ItemStack reqiredBlade2 = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)reqiredBladeName, (int)1);
NBTTagCompound tag2 = ItemSlashBlade.getItemTagCompound((ItemStack)reqiredBlade2);
ItemSlashBlade.RepairCount.set(tag2, Integer.valueOf(20));
ItemSlashBlade.KillCount.set(tag2, Integer.valueOf(2000));
ItemSlashBlade.ProudSoul.set(tag2, Integer.valueOf(5000));
GameRegistry.registerCustomItemStack((String)(reqiredBladeName + ".base.reqired"), (ItemStack)reqiredBlade2);
ItemSlashBladeNamed.NamedBlades.add("flammpfeil.slashblade:" + reqiredBladeName + ".base.reqired");
String name2 = water;
ItemStack blade2 = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name2, (int)1);
reqiredBlade2 = reqiredBlade2.copy();
reqiredBlade2.setItemDamage(Short.MAX_VALUE);
RecipeAwakeBlade recipe2 = new RecipeAwakeBlade(blade2, reqiredBlade2, new Object[]{"S8S", "4K6", "S2S", Character.valueOf('S'), sphere, Character.valueOf('K'), reqiredBlade2, Character.valueOf('8'), new ItemStack(Blocks.lapis_block), Character.valueOf('4'), new ItemStack(Blocks.ice), Character.valueOf('6'), new ItemStack(Blocks.snow), Character.valueOf('2'), new ItemStack(Items.water_bucket)});
GameRegistry.addRecipe((IRecipe)recipe2);
SlashBlade.recipeMultimap.put(name2, recipe2);
name2 = fire;
blade2 = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name2, (int)1);
reqiredBlade2 = reqiredBlade2.copy();
reqiredBlade2.setItemDamage(Short.MAX_VALUE);
recipe2 = new RecipeAwakeBlade(blade2, reqiredBlade2, new Object[]{"S8S", "4K6", "S2S", Character.valueOf('S'), sphere, Character.valueOf('K'), reqiredBlade2, Character.valueOf('8'), new ItemStack(Blocks.redstone_block), Character.valueOf('4'), new ItemStack(Items.fire_charge), Character.valueOf('6'), new ItemStack(Items.blaze_rod), Character.valueOf('2'), new ItemStack(Items.lava_bucket)});
GameRegistry.addRecipe((IRecipe)recipe2);
SlashBlade.recipeMultimap.put(name2, recipe2);
name2 = lightning;
blade2 = GameRegistry.findItemStack((String)"flammpfeil.slashblade", (String)name2, (int)1);
reqiredBlade2 = reqiredBlade2.copy();
reqiredBlade2.setItemDamage(Short.MAX_VALUE);
recipe2 = new RecipeAwakeBlade(blade2, reqiredBlade2, new Object[]{"S8S", "4K6", "S2S", Character.valueOf('S'), sphere, Character.valueOf('K'), reqiredBlade2, Character.valueOf('8'), new ItemStack(Blocks.iron_block), Character.valueOf('4'), new ItemStack(Blocks.gold_block), Character.valueOf('6'), new ItemStack(Blocks.diamond_block), Character.valueOf('2'), new ItemStack(Blocks.emerald_block)});
GameRegistry.addRecipe((IRecipe)recipe2);
SlashBlade.recipeMultimap.put(name2, recipe2);
}
@SubscribeEvent
public void addAchievement(SlashBladeAchievementCreateEvent event) {
Stack<Achievement> parent = new Stack<Achievement>();
Achievement startParent = net.minecraft.stats.AchievementList.enchantments;
String bladename = base;
ItemStack blade = SlashBlade.getCustomBlade((String)bladename);
if (blade != null) {
parent.push(AchievementList.registerCraftingAchievement((String)bladename, (ItemStack)blade, (Achievement)startParent));
Kamuy.setContent((Achievement)parent.peek(), bladename);
bladename = water;
blade = SlashBlade.getCustomBlade((String)bladename);
if (blade != null) {
parent.push(AchievementList.registerCraftingAchievement((String)bladename, (ItemStack)blade, (Achievement)startParent));
Kamuy.setContent((Achievement)parent.peek(), bladename);
parent.pop();
}
if ((blade = SlashBlade.getCustomBlade((String)(bladename = fire))) != null) {
parent.push(AchievementList.registerCraftingAchievement((String)bladename, (ItemStack)blade, (Achievement)startParent));
Kamuy.setContent((Achievement)parent.peek(), bladename);
parent.pop();
}
if ((blade = SlashBlade.getCustomBlade((String)(bladename = lightning))) != null) {
parent.push(AchievementList.registerCraftingAchievement((String)bladename, (ItemStack)blade, (Achievement)startParent));
Kamuy.setContent((Achievement)parent.peek(), bladename);
parent.pop();
}
parent.pop();
}
}
static void setContent(Achievement achievement, String contentKey) {
if (!(achievement instanceof AchievementEx)) {
return;
}
if (!SlashBlade.recipeMultimap.containsKey(contentKey)) {
return;
}
((AchievementEx)achievement).content = Lists.newArrayList((Iterable)SlashBlade.recipeMultimap.get(contentKey));
}
}
@@ -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 mods.flammpfeil.slashblade.kamuy.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.Kamuy.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,70 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.relauncher.Side
* cpw.mods.fml.relauncher.SideOnly
* net.minecraft.client.renderer.Tessellator
* net.minecraft.client.renderer.entity.Render
* net.minecraft.entity.Entity
* net.minecraft.util.ResourceLocation
* org.lwjgl.opengl.GL11
*/
package mods.flammpfeil.slashblade.kamuy.client.renderer;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import mods.flammpfeil.slashblade.kamuy.entity.EntityDriveEx;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.entity.Render;
import net.minecraft.entity.Entity;
import net.minecraft.util.ResourceLocation;
import org.lwjgl.opengl.GL11;
@SideOnly(value=Side.CLIENT)
public class RenderDriveEx
extends Render {
private static double[][] dVec = new double[][]{{0.0, 1.0, -0.5}, {0.0, 0.75, 0.0}, {0.1, 0.6, -0.15}, {0.0, 0.5, -0.25}, {-0.1, 0.6, -0.15}, {0.0, 0.0, 0.25}, {0.25, 0.0, 0.0}, {0.0, 0.0, -0.25}, {-0.25, 0.0, 0.0}, {0.0, -0.75, 0.0}, {0.1, -0.6, -0.15}, {0.0, -0.5, -0.25}, {-0.1, -0.6, -0.15}, {0.0, -1.0, -0.5}};
private static int[][] nVecPos = new int[][]{{0, 1, 2, 3}, {0, 3, 4, 1}, {1, 5, 6, 2}, {3, 2, 6, 7}, {3, 7, 8, 4}, {1, 4, 8, 5}, {6, 5, 9, 10}, {6, 10, 11, 7}, {8, 7, 11, 12}, {8, 12, 9, 5}, {10, 9, 13, 11}, {12, 11, 13, 9}};
public void doRender(Entity entity, double d0, double d1, double d2, float f, float f1) {
if (entity instanceof EntityDriveEx) {
this.doDriveRender((EntityDriveEx)entity, d0, d1, d2, f, f1);
}
}
protected ResourceLocation getEntityTexture(Entity var1) {
return null;
}
private void doDriveRender(EntityDriveEx entityDrive, double dX, double dY, double dZ, float f, float f1) {
Tessellator tessellator = Tessellator.instance;
GL11.glDisable((int)3553);
GL11.glDisable((int)2896);
GL11.glEnable((int)3042);
GL11.glBlendFunc((int)770, (int)1);
GL11.glPushMatrix();
GL11.glTranslatef((float)((float)dX), (float)((float)dY), (float)((float)dZ));
GL11.glRotatef((float)entityDrive.rotationYaw, (float)0.0f, (float)1.0f, (float)0.0f);
GL11.glRotatef((float)(-entityDrive.rotationPitch), (float)1.0f, (float)0.0f, (float)0.0f);
GL11.glRotatef((float)entityDrive.getRoll(), (float)0.0f, (float)0.0f, (float)1.0f);
GL11.glScalef((float)0.25f, (float)1.0f, (float)1.0f);
float lifetime = entityDrive.getLifeTime();
float ticks = entityDrive.ticksExisted;
tessellator.startDrawingQuads();
tessellator.setColorRGBA_I(entityDrive.getColor(), (int)(255.0f * (float)Math.pow((lifetime - Math.min(lifetime, ticks)) / lifetime, 2.0)));
double dScale = 1.0;
for (int idx = 0; idx < nVecPos.length; ++idx) {
tessellator.addVertex(dVec[nVecPos[idx][0]][0] * dScale, dVec[nVecPos[idx][0]][1] * dScale, dVec[nVecPos[idx][0]][2] * dScale);
tessellator.addVertex(dVec[nVecPos[idx][1]][0] * dScale, dVec[nVecPos[idx][1]][1] * dScale, dVec[nVecPos[idx][1]][2] * dScale);
tessellator.addVertex(dVec[nVecPos[idx][2]][0] * dScale, dVec[nVecPos[idx][2]][1] * dScale, dVec[nVecPos[idx][2]][2] * dScale);
tessellator.addVertex(dVec[nVecPos[idx][3]][0] * dScale, dVec[nVecPos[idx][3]][1] * dScale, dVec[nVecPos[idx][3]][2] * dScale);
}
tessellator.draw();
GL11.glPopMatrix();
GL11.glDisable((int)3042);
GL11.glEnable((int)2896);
GL11.glEnable((int)3553);
}
}
@@ -0,0 +1,71 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.relauncher.Side
* cpw.mods.fml.relauncher.SideOnly
* net.minecraft.client.renderer.Tessellator
* net.minecraft.client.renderer.entity.Render
* net.minecraft.entity.Entity
* net.minecraft.util.ResourceLocation
* org.lwjgl.opengl.GL11
*/
package mods.flammpfeil.slashblade.kamuy.client.renderer;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import mods.flammpfeil.slashblade.kamuy.entity.EntityPhantomSwordEx;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.entity.Render;
import net.minecraft.entity.Entity;
import net.minecraft.util.ResourceLocation;
import org.lwjgl.opengl.GL11;
@SideOnly(value=Side.CLIENT)
public class RenderPhantomSwordEx
extends Render {
private static double[][] dVec = new double[][]{{0.0, 0.0, 417.7431}, {0.0, -44.6113, 0.0}, {38.9907, 0.0, 50.0}, {0.0, 44.6113, 0.0}, {-38.9907, 0.0, 50.0}, {38.9907, 0.0, -50.0}, {-38.9907, 0.0, -50.0}, {0.0, 0.0, -214.0305}, {159.1439, 0.0, -49.6611}, {-159.1439, 0.0, -49.6611}};
private static int[][] nVecPos = new int[][]{{0, 2, 1}, {0, 3, 2}, {0, 4, 3}, {0, 1, 4}, {1, 5, 7}, {5, 3, 7}, {3, 6, 7}, {6, 1, 7}, {2, 8, 1}, {5, 8, 3}, {4, 9, 3}, {6, 9, 1}, {1, 8, 5}, {1, 9, 4}, {3, 8, 2}, {3, 9, 6}};
public void doRender(Entity entity, double d0, double d1, double d2, float f, float f1) {
if (entity instanceof EntityPhantomSwordEx) {
this.doDriveRender((EntityPhantomSwordEx)entity, d0, d1, d2, f, f1);
}
}
protected ResourceLocation getEntityTexture(Entity var1) {
return null;
}
private void doDriveRender(EntityPhantomSwordEx entityPhantomSword, double dX, double dY, double dZ, float f, float f1) {
Tessellator tessellator = Tessellator.instance;
GL11.glDisable((int)3553);
GL11.glDisable((int)2896);
GL11.glEnable((int)3042);
GL11.glBlendFunc((int)770, (int)1);
GL11.glPushMatrix();
GL11.glTranslatef((float)((float)dX), (float)((float)dY), (float)((float)dZ));
GL11.glRotatef((float)entityPhantomSword.rotationYaw, (float)0.0f, (float)1.0f, (float)0.0f);
GL11.glRotatef((float)(-entityPhantomSword.rotationPitch), (float)1.0f, (float)0.0f, (float)0.0f);
GL11.glRotatef((float)entityPhantomSword.getRoll(), (float)0.0f, (float)0.0f, (float)1.0f);
float scale = 0.0045f;
GL11.glScalef((float)scale, (float)scale, (float)scale);
GL11.glScalef((float)0.5f, (float)0.5f, (float)1.0f);
float lifetime = entityPhantomSword.getLifeTime();
float ticks = entityPhantomSword.ticksExisted;
tessellator.startDrawing(4);
tessellator.setColorRGBA_I(entityPhantomSword.getColor(), 255);
double dScale = 1.0;
for (int idx = 0; idx < nVecPos.length; ++idx) {
tessellator.addVertex(dVec[nVecPos[idx][0]][0] * dScale, dVec[nVecPos[idx][0]][1] * dScale, dVec[nVecPos[idx][0]][2] * dScale);
tessellator.addVertex(dVec[nVecPos[idx][1]][0] * dScale, dVec[nVecPos[idx][1]][1] * dScale, dVec[nVecPos[idx][1]][2] * dScale);
tessellator.addVertex(dVec[nVecPos[idx][2]][0] * dScale, dVec[nVecPos[idx][2]][1] * dScale, dVec[nVecPos[idx][2]][2] * dScale);
}
tessellator.draw();
GL11.glPopMatrix();
GL11.glDisable((int)3042);
GL11.glEnable((int)2896);
GL11.glEnable((int)3553);
}
}
@@ -0,0 +1,84 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.relauncher.ReflectionHelper
* mods.flammpfeil.slashblade.ItemSlashBlade
* net.minecraft.entity.Entity
* net.minecraft.entity.EntityLivingBase
* net.minecraft.entity.monster.EntityEnderman
* net.minecraft.util.DamageSource
* net.minecraft.util.EntityDamageSource
* net.minecraft.world.World
*/
package mods.flammpfeil.slashblade.kamuy.entity;
import cpw.mods.fml.relauncher.ReflectionHelper;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.kamuy.ability.EnderTeleportCanceller;
import mods.flammpfeil.slashblade.kamuy.entity.EntityDriveEx;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.monster.EntityEnderman;
import net.minecraft.util.DamageSource;
import net.minecraft.util.EntityDamageSource;
import net.minecraft.world.World;
public class EntityAquaEdge
extends EntityDriveEx {
public EntityAquaEdge(World par1World) {
super(par1World);
}
public EntityAquaEdge(World par1World, EntityLivingBase entityLiving, float AttackLevel, boolean multiHit, float roll) {
super(par1World, entityLiving, AttackLevel, multiHit, roll);
this.setRoll(roll);
}
public EntityAquaEdge(World par1World, EntityLivingBase entityLiving, float AttackLevel, boolean multiHit) {
super(par1World, entityLiving, AttackLevel, multiHit);
}
public EntityAquaEdge(World par1World, EntityLivingBase entityLiving, float AttackLevel) {
super(par1World, entityLiving, AttackLevel);
}
@Override
public void onImpact(Entity curEntity, float damage) {
EnderTeleportCanceller.setTeleportCancel(curEntity, 100);
this.spawnParticle(curEntity);
if (!curEntity.worldObj.isRemote) {
curEntity.hurtResistantTime = 0;
DamageSource ds = new EntityDamageSource("drown", this.getThrower()).setDamageBypassesArmor().setMagicDamage();
curEntity.attackEntityFrom(ds, damage);
}
ReflectionHelper.setPrivateValue(Entity.class, curEntity, true, "inWater", "inWater");
if (curEntity.isBurning()) {
curEntity.playSound("random.fizz", 0.7f, 1.6f + (this.rand.nextFloat() - this.rand.nextFloat()) * 0.4f);
ReflectionHelper.setPrivateValue(Entity.class, curEntity, 0, "fire", "fire");
byte data = curEntity.getDataWatcher().getWatchableObjectByte(0);
boolean flag = false;
int offset = 0;
if (flag) {
curEntity.getDataWatcher().updateObject(0, ((byte)(data | 1 << offset)));
} else {
curEntity.getDataWatcher().updateObject(0, ((byte)(data & ~(1 << offset))));
}
}
if (!curEntity.worldObj.isRemote && this.blade != null && curEntity instanceof EntityLivingBase) {
((ItemSlashBlade)this.blade.getItem()).hitEntity(this.blade, (EntityLivingBase)curEntity, (EntityLivingBase)this.thrower);
}
if (curEntity instanceof EntityEnderman) {
((EntityEnderman)curEntity).setTarget(null);
((EntityEnderman)curEntity).setScreaming(false);
ReflectionHelper.setPrivateValue(EntityEnderman.class, ((EntityEnderman)curEntity), false, "isAggressive", "isAggressive");
}
}
private void spawnParticle(Entity target) {
target.worldObj.spawnParticle("largeexplode", target.posX, target.posY + (double)target.height, target.posZ, 3.0, 3.0, 3.0);
target.worldObj.spawnParticle("largeexplode", target.posX + 1.0, target.posY + (double)target.height + 1.0, target.posZ, 3.0, 3.0, 3.0);
target.worldObj.spawnParticle("largeexplode", target.posX, target.posY + (double)target.height + 0.5, target.posZ + 1.0, 3.0, 3.0, 3.0);
}
}
@@ -0,0 +1,333 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.common.registry.IThrowableEntity
* cpw.mods.fml.relauncher.Side
* cpw.mods.fml.relauncher.SideOnly
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ability.StylishRankManager
* mods.flammpfeil.slashblade.ability.StylishRankManager$AttackTypes
* net.minecraft.block.Block
* net.minecraft.block.material.Material
* net.minecraft.entity.Entity
* net.minecraft.entity.EntityLivingBase
* net.minecraft.entity.projectile.EntityArrow
* net.minecraft.entity.projectile.EntityFireball
* net.minecraft.entity.projectile.EntityThrowable
* net.minecraft.item.ItemStack
* net.minecraft.nbt.NBTTagCompound
* net.minecraft.util.AxisAlignedBB
* net.minecraft.util.DamageSource
* net.minecraft.util.EntityDamageSource
* net.minecraft.util.MathHelper
* net.minecraft.world.IBlockAccess
* net.minecraft.world.World
*/
package mods.flammpfeil.slashblade.kamuy.entity;
import cpw.mods.fml.common.registry.IThrowableEntity;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.ability.StylishRankManager;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.projectile.EntityArrow;
import net.minecraft.entity.projectile.EntityFireball;
import net.minecraft.entity.projectile.EntityThrowable;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.DamageSource;
import net.minecraft.util.EntityDamageSource;
import net.minecraft.util.MathHelper;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
public class EntityDriveEx
extends Entity
implements IThrowableEntity {
protected Entity thrower;
protected ItemStack blade = null;
protected List<Entity> alreadyHitEntity = new ArrayList<Entity>();
protected float AttackLevel = 0.0f;
public EntityDriveEx(World par1World) {
super(par1World);
}
public EntityDriveEx(World par1World, EntityLivingBase entityLiving, float AttackLevel, boolean multiHit, float roll) {
this(par1World, entityLiving, AttackLevel, multiHit);
this.setRoll(roll);
}
public EntityDriveEx(World par1World, EntityLivingBase entityLiving, float AttackLevel, boolean multiHit) {
this(par1World, entityLiving, AttackLevel);
this.setIsMultiHit(multiHit);
}
public EntityDriveEx(World par1World, EntityLivingBase entityLiving, float AttackLevel) {
this(par1World);
this.AttackLevel = AttackLevel;
this.yOffset = entityLiving.getEyeHeight() / 2.0f;
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(1.0f, 2.0f);
this.setLocationAndAngles(this.thrower.posX, this.thrower.posY + (double)this.thrower.getEyeHeight() / 2.0, this.thrower.posZ, this.thrower.rotationYaw, this.thrower.rotationPitch);
this.setDriveVector(0.75f);
this.setPosition(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);
}
protected void entityInit() {
this.getDataWatcher().addObject(4, 0);
this.getDataWatcher().addObject(5, Float.valueOf(0.0f));
this.getDataWatcher().addObject(6, 20);
this.getDataWatcher().addObject(10, 0x3333FF);
}
public int getColor() {
return this.getDataWatcher().getWatchableObjectInt(10);
}
public void setColor(int value) {
this.getDataWatcher().updateObject(10, value);
}
public boolean getIsMultiHit() {
return this.getDataWatcher().getWatchableObjectByte(4) == 0;
}
public void setIsMultiHit(boolean isMultiHit) {
this.getDataWatcher().updateObject(4, (isMultiHit ? (byte)1 : 0));
}
public float getRoll() {
return this.getDataWatcher().getWatchableObjectFloat(5);
}
public void setRoll(float roll) {
this.getDataWatcher().updateObject(5, Float.valueOf(roll));
}
public int getLifeTime() {
return this.getDataWatcher().getWatchableObjectInt(6);
}
public void setLifeTime(int lifetime) {
this.getDataWatcher().updateObject(6, lifetime);
}
public void setInitialSpeed(float f) {
this.setLocationAndAngles(this.thrower.posX, this.thrower.posY + (double)this.thrower.getEyeHeight() / 2.0, this.thrower.posZ, this.thrower.rotationYaw, this.thrower.rotationPitch);
this.setDriveVector(f);
}
public void setDriveVector(float fYVecOfst) {
float fYawDtoR = this.rotationYaw / 180.0f * (float)Math.PI;
float fPitDtoR = this.rotationPitch / 180.0f * (float)Math.PI;
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.prevRotationYaw = this.rotationYaw = (float)(Math.atan2(this.motionX, this.motionZ) * 180.0 / Math.PI);
this.prevRotationPitch = this.rotationPitch = (float)(Math.atan2(this.motionY, f3) * 180.0 / Math.PI);
}
public void onUpdate() {
int nPosZ;
int nPosY;
int nPosX;
Block nBlock;
this.lastTickPosX = this.posX;
this.lastTickPosY = this.posY;
this.lastTickPosZ = this.posZ;
double dAmbit = 1.5;
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<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.getIsMultiHit() || this.ticksExisted % 2 == 0) {
List<Entity> list = this.worldObj.getEntitiesWithinAABBExcludingEntity(this.getThrower(), bb, ItemSlashBlade.AttackableSelector);
list.removeAll(this.alreadyHitEntity);
if (!this.getIsMultiHit()) {
this.alreadyHitEntity.addAll(list);
}
float magicDamage = Math.max(1.0f, this.AttackLevel);
if (this.getIsMultiHit()) {
StylishRankManager.setNextAttackType((Entity)this.thrower, (String)StylishRankManager.AttackTypes.QuickDrive);
} else {
StylishRankManager.setNextAttackType((Entity)this.thrower, (String)StylishRankManager.AttackTypes.Drive);
}
for (Entity curEntity : list) {
this.onImpact(curEntity, magicDamage);
}
}
if (!(nBlock = this.worldObj.getBlock(nPosX = MathHelper.floor_double((double)this.posX), nPosY = MathHelper.floor_double((double)this.posY), nPosZ = MathHelper.floor_double((double)this.posZ))).isAir((IBlockAccess)this.worldObj, nPosX, nPosY, nPosZ) && nBlock.getCollisionBoundingBoxFromPool(this.worldObj, nPosX, nPosY, nPosZ) != null) {
this.setDead();
}
this.motionX *= (double)1.05f;
this.motionY *= (double)1.05f;
this.motionZ *= (double)1.05f;
this.posX += this.motionX;
this.posY += this.motionY;
this.posZ += this.motionZ;
this.setPosition(this.posX, this.posY, this.posZ);
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;
}
public boolean handleLavaMovement() {
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 float getShadowSize() {
return 0.0f;
}
public void mountEntity(Entity par1Entity) {
}
@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() {
return this.thrower;
}
public void setThrower(Entity entity) {
this.thrower = entity;
}
public void onImpact(Entity target, float damage) {
if (target.worldObj.isRemote) {
return;
}
target.hurtResistantTime = 0;
DamageSource ds = new EntityDamageSource("directMagic", this.getThrower()).setDamageBypassesArmor().setMagicDamage();
target.attackEntityFrom(ds, damage);
if (this.blade != null && target instanceof EntityLivingBase) {
((ItemSlashBlade)this.blade.getItem()).hitEntity(this.blade, (EntityLivingBase)target, (EntityLivingBase)this.thrower);
}
}
}
@@ -0,0 +1,65 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.relauncher.ReflectionHelper
* mods.flammpfeil.slashblade.ItemSlashBlade
* net.minecraft.entity.Entity
* net.minecraft.entity.EntityLivingBase
* net.minecraft.entity.monster.EntityEnderman
* net.minecraft.util.DamageSource
* net.minecraft.util.EntityDamageSource
* net.minecraft.world.World
*/
package mods.flammpfeil.slashblade.kamuy.entity;
import cpw.mods.fml.relauncher.ReflectionHelper;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.kamuy.ability.EnderTeleportCanceller;
import mods.flammpfeil.slashblade.kamuy.entity.EntityDriveEx;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.monster.EntityEnderman;
import net.minecraft.util.DamageSource;
import net.minecraft.util.EntityDamageSource;
import net.minecraft.world.World;
public class EntityFlareEdge
extends EntityDriveEx {
public EntityFlareEdge(World par1World) {
super(par1World);
}
public EntityFlareEdge(World par1World, EntityLivingBase entityLiving, float AttackLevel, boolean multiHit, float roll) {
super(par1World, entityLiving, AttackLevel, multiHit, roll);
this.setRoll(roll);
}
public EntityFlareEdge(World par1World, EntityLivingBase entityLiving, float AttackLevel, boolean multiHit) {
super(par1World, entityLiving, AttackLevel, multiHit);
}
public EntityFlareEdge(World par1World, EntityLivingBase entityLiving, float AttackLevel) {
super(par1World, entityLiving, AttackLevel);
}
@Override
public void onImpact(Entity curEntity, float damage) {
EnderTeleportCanceller.setTeleportCancel(curEntity, 600);
if (!this.worldObj.isRemote) {
curEntity.hurtResistantTime = 0;
DamageSource ds = new EntityDamageSource("directMagic", this.getThrower()).setDamageBypassesArmor().setMagicDamage();
curEntity.attackEntityFrom(ds, Math.max(damage / 2.0f, 1.0f));
}
curEntity.setFire(5);
if (this.blade != null && curEntity instanceof EntityLivingBase) {
((ItemSlashBlade)this.blade.getItem()).hitEntity(this.blade, (EntityLivingBase)curEntity, (EntityLivingBase)this.thrower);
}
if (curEntity instanceof EntityEnderman) {
((EntityEnderman)curEntity).setTarget(null);
((EntityEnderman)curEntity).setScreaming(false);
ReflectionHelper.setPrivateValue(EntityEnderman.class, ((EntityEnderman)curEntity), false, "isAggressive", "isAggressive");
}
}
}
@@ -0,0 +1,242 @@
/*
* 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 mods.flammpfeil.slashblade.kamuy.entity;
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 mods.flammpfeil.slashblade.kamuy.entity.EntityNoFireLightningBolt;
import mods.flammpfeil.slashblade.kamuy.entity.EntityPhantomSwordEx;
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.ridingEntity2 != null) {
this.updateRidden();
} else {
Block nBlock;
Entity target;
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<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);
this.setDead();
return;
}
}
List<Entity> 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 = 0;
StylishRankManager.setNextAttackType((Entity)this.thrower, (String)AttackType);
if (!this.worldObj.isRemote) {
this.worldObj.addWeatherEffect((Entity)new EntityNoFireLightningBolt(this.worldObj, hitEntity.posX, hitEntity.posY, hitEntity.posZ, hitEntity, ItemSlashBlade.AttackableSelector));
}
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) {
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 * (float)Math.PI;
float fPitDtoR = this.iniPitch / 180.0f * (float)Math.PI;
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,93 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* net.minecraft.command.IEntitySelector
* net.minecraft.entity.Entity
* net.minecraft.entity.effect.EntityLightningBolt
* net.minecraft.nbt.NBTTagCompound
* net.minecraft.util.AxisAlignedBB
* net.minecraft.world.World
* net.minecraftforge.event.ForgeEventFactory
*/
package mods.flammpfeil.slashblade.kamuy.entity;
import java.util.List;
import mods.flammpfeil.slashblade.kamuy.ability.EnderTeleportCanceller;
import net.minecraft.command.IEntitySelector;
import net.minecraft.entity.Entity;
import net.minecraft.entity.effect.EntityLightningBolt;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.AxisAlignedBB;
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";
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) {
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;
}
public void onUpdate() {
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) {
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);
}
for (int l = 0; l < list.size(); ++l) {
Entity entity = (Entity)list.get(l);
EnderTeleportCanceller.setTeleportCancel(entity, 600);
if (this.worldObj.isRemote || ForgeEventFactory.onEntityStruckByLightning((Entity)entity, (EntityLightningBolt)this)) continue;
entity.onStruckByLightning((EntityLightningBolt)this);
}
}
}
protected void entityInit() {
}
protected void readEntityFromNBT(NBTTagCompound p_70037_1_) {
}
protected void writeEntityToNBT(NBTTagCompound p_70014_1_) {
}
}
@@ -0,0 +1,318 @@
/*
* 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 mods.flammpfeil.slashblade.kamuy.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.ridingEntity2 != null) {
this.updateRidden();
} else {
Block nBlock;
Entity target;
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<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);
this.setDead();
return;
}
}
List<Entity> 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 = 0;
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) {
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 * (float)Math.PI;
float fPitDtoR = this.iniPitch / 180.0f * (float)Math.PI;
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,93 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cpw.mods.fml.relauncher.ReflectionHelper
* 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.world.World
*/
package mods.flammpfeil.slashblade.kamuy.specialattack;
import cpw.mods.fml.relauncher.ReflectionHelper;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.ability.StylishRankManager;
import mods.flammpfeil.slashblade.kamuy.entity.EntityAquaEdge;
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 AquaEdge
extends SpecialAttackBase {
private final float speed;
private final int lifetime;
private final boolean multihit;
private final ItemSlashBlade.ComboSequence setCombo = ItemSlashBlade.ComboSequence.Iai;
public static String AttackType = StylishRankManager.AttackTypes.registerAttackType((String)"AquaEdge", (float)0.5f);
public AquaEdge() {
this.speed = 1.5f;
this.lifetime = 10;
this.multihit = true;
}
public String toString() {
return "aquaedge";
}
public void doSpacialAttack(ItemStack stack, EntityPlayer player) {
World world = player.worldObj;
NBTTagCompound tag = ItemSlashBlade.getItemTagCompound((ItemStack)stack);
player.playSound("game.player.swim", 1.0f, 1.5f);
for (int i = 0; i < 30; ++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;
player.worldObj.spawnParticle("splash", player.posX + ((double)(player.getRNG().nextFloat() * player.width * 2.0f) - (double)player.width - d0 * d3) * 2.0, player.posY, player.posZ + ((double)(player.getRNG().nextFloat() * player.width * 2.0f) - (double)player.width - d2 * d3) * 2.0, d0, d1, d2);
}
if (player.isBurning()) {
player.playSound("random.fizz", 0.7f, 1.6f + (player.getRNG().nextFloat() - player.getRNG().nextFloat()) * 0.4f);
ReflectionHelper.setPrivateValue(Entity.class, player, 0, "fire", "fire");
}
if (!world.isRemote) {
EntityAquaEdge entityDrive;
int cost = -10;
if (!ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(-10), false)) {
stack.damageItem(5, (EntityLivingBase)player);
}
ItemSlashBlade 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() * (0.5f + (float)level / 5.0f);
}
if ((entityDrive = new EntityAquaEdge(world, (EntityLivingBase)player, magicDamage, this.multihit, 90.0f - this.setCombo.swingDirection)) != null) {
entityDrive.setColor(255);
entityDrive.setInitialSpeed(this.speed);
entityDrive.setLifeTime(this.lifetime);
world.spawnEntityInWorld((Entity)entityDrive);
}
}
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)this.setCombo);
}
}
@@ -0,0 +1,95 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ItemSlashBlade$ComboSequence
* mods.flammpfeil.slashblade.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 mods.flammpfeil.slashblade.kamuy.specialattack;
import java.util.List;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.ability.StylishRankManager;
import mods.flammpfeil.slashblade.kamuy.entity.EntityFlareEdge;
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 FlareSpiral
extends SpecialAttackBase {
public static String AttackType = StylishRankManager.AttackTypes.registerAttackType((String)"FlareSpiral", (float)0.5f);
public String toString() {
return "flarespiral";
}
public void doSpacialAttack(ItemStack stack, EntityPlayer player) {
World world = player.worldObj;
NBTTagCompound tag = ItemSlashBlade.getItemTagCompound((ItemStack)stack);
player.worldObj.playAuxSFXAtEntity((EntityPlayer)null, 1009, (int)player.posX, (int)player.posY, (int)player.posZ, 0);
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;
player.worldObj.spawnParticle("flame", player.posX + ((double)(player.getRNG().nextFloat() * player.width * 2.0f) - (double)player.width - d0 * d3) * 5.0, player.posY, player.posZ + ((double)(player.getRNG().nextFloat() * player.width * 2.0f) - (double)player.width - d2 * d3) * 5.0, d0, d1, d2);
}
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)AttackType);
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);
}
int maxCount = 5;
double radBaseRot = Math.toRadians(player.rotationYaw);
double radRot = Math.PI * 2 / (double)(maxCount += rank);
for (int i = 0; i < maxCount; ++i) {
EntityFlareEdge entityDrive = new EntityFlareEdge(world, (EntityLivingBase)player, magicDamage, false, 0.0f);
if (entityDrive == null) continue;
entityDrive.setLocationAndAngles(player.posX + 1.0 * Math.cos(radBaseRot + radRot * (double)i), player.posY + (double)0.7f * Math.sin(-1.0471975511965976 + radRot * (double)i), player.posZ + 1.0 * Math.sin(radBaseRot + radRot * (double)i), player.rotationYaw + (float)((int)Math.toDegrees(radRot * (double)i)), (int)(Math.cos(-1.0471975511965976 + radRot * (double)i) < 0.0 ? 1.0 : -30.0 * Math.cos(-1.0471975511965976 + radRot * (double)i)));
entityDrive.setColor(0xFF0000);
entityDrive.setDriveVector(0.3f);
entityDrive.setLifeTime(15);
entityDrive.setIsMultiHit(false);
entityDrive.setRoll(90.0f + -30.0f * (float)Math.cos(0.5235987755982989 + radRot * (double)i));
world.spawnEntityInWorld((Entity)entityDrive);
}
}
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.Battou);
}
}
@@ -0,0 +1,141 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ItemSlashBlade$ComboSequence
* mods.flammpfeil.slashblade.ability.StylishRankManager
* mods.flammpfeil.slashblade.ability.StylishRankManager$AttackTypes
* mods.flammpfeil.slashblade.specialattack.SpecialAttackBase
* net.minecraft.enchantment.Enchantment
* net.minecraft.enchantment.EnchantmentHelper
* net.minecraft.entity.Entity
* net.minecraft.entity.EntityLivingBase
* net.minecraft.entity.player.EntityPlayer
* net.minecraft.item.ItemStack
* net.minecraft.nbt.NBTTagCompound
* net.minecraft.util.AxisAlignedBB
* net.minecraft.util.Vec3
* net.minecraft.world.World
*/
package mods.flammpfeil.slashblade.kamuy.specialattack;
import java.util.List;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.ability.StylishRankManager;
import mods.flammpfeil.slashblade.kamuy.entity.EntityLightningSword;
import mods.flammpfeil.slashblade.kamuy.entity.EntityPhantomSwordEx;
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 LightningSwords
extends SpecialAttackBase {
public static String AttackType = StylishRankManager.AttackTypes.registerAttackType((String)"LightningSwords", (float)0.5f);
public String toString() {
return "lightningswords";
}
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) {
EntityLightningSword entityDrive;
ItemSlashBlade.setComboSequence((NBTTagCompound)tag, (ItemSlashBlade.ComboSequence)ItemSlashBlade.ComboSequence.SlashDim);
int cost = -40;
if (!ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(-40), false)) {
stack.damageItem(10, (EntityLivingBase)player);
}
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 level = EnchantmentHelper.getEnchantmentLevel((int)Enchantment.power.effectId, (ItemStack)stack);
float magicDamage = 1.0f + ItemSlashBlade.AttackAmplifier.get(tag).floatValue() * ((float)level / 5.0f);
int count = 3;
double rad = Math.PI * 2 / (double)(count += StylishRankManager.getStylishRank((Entity)player));
for (int i = 0; i < count; ++i) {
EntityPhantomSwordEx entityDrive2;
if (world.isRemote || (entityDrive2 = 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)entityDrive2.getRand().nextFloat();
double z = Math.cos(ran);
int dir = -((int)Math.toDegrees(Math.PI + ran));
entityDrive2.setLocationAndAngles(target.posX + (x *= (double)dist), target.posY + (y *= (double)dist), target.posZ + (z *= (double)dist), dir, 90.0f);
entityDrive2.setIniPitch(90.0f);
entityDrive2.setIniYaw(dir);
entityDrive2.setDriveVector(1.75f);
entityDrive2.setColor(7364008);
entityDrive2.setInterval(7 + i / 2);
entityDrive2.setLifeTime(30);
entityDrive2.setTargetEntityId(target.getEntityId());
world.spawnEntityInWorld((Entity)entityDrive2);
}
if (!world.isRemote && (entityDrive = new EntityLightningSword(world, (EntityLivingBase)player, magicDamage, 90.0f)) != null) {
float dist = 2.0f;
double ran = rad * (double)count;
int dir = -((int)Math.toDegrees(Math.PI + ran));
entityDrive.setLocationAndAngles(target.posX, target.posY + 4.0, target.posZ, dir, 90.0f);
entityDrive.setIniPitch(90.0f);
entityDrive.setIniYaw(dir);
entityDrive.setDriveVector(1.75f);
entityDrive.setColor(16766720);
entityDrive.setInterval(7 + count / 2 + 10);
entityDrive.setLifeTime(40);
entityDrive.setTargetEntityId(target.getEntityId());
world.spawnEntityInWorld((Entity)entityDrive);
}
}
}
}
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;
}
}
@@ -0,0 +1,56 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* mods.flammpfeil.slashblade.ItemSlashBlade
* mods.flammpfeil.slashblade.ability.StylishRankManager
* mods.flammpfeil.slashblade.ability.StylishRankManager$AttackTypes
* mods.flammpfeil.slashblade.specialattack.SpecialAttackBase
* net.minecraft.entity.Entity
* net.minecraft.entity.player.EntityPlayer
* net.minecraft.item.ItemStack
* net.minecraft.nbt.NBTTagCompound
*/
package mods.flammpfeil.slashblade.kamuy.specialattack;
import mods.flammpfeil.slashblade.ItemSlashBlade;
import mods.flammpfeil.slashblade.ability.StylishRankManager;
import mods.flammpfeil.slashblade.specialattack.SpecialAttackBase;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
public class None
extends SpecialAttackBase {
public static String AttackType = StylishRankManager.AttackTypes.registerAttackType((String)"Provoke", (float)-1.0f);
public String toString() {
return "none";
}
public void doSpacialAttack(ItemStack stack, EntityPlayer player) {
NBTTagCompound tag = ItemSlashBlade.getItemTagCompound((ItemStack)stack);
int cost = -10;
if (ItemSlashBlade.ProudSoul.tryAdd(tag, Integer.valueOf(-10), false)) {
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;
player.worldObj.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);
}
StylishRankManager.setNextAttackType((Entity)player, (String)AttackType);
StylishRankManager.doAttack((Entity)player);
} else {
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;
player.worldObj.spawnParticle("largesmoke", 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);
}
}
}
}
+2
View File
@@ -0,0 +1,2 @@
Summary for SlashBlade-Kamuy\original\【拔刀附属】神剑.jar
Decompiled with CFR 0.152
@@ -0,0 +1,22 @@
item.flammpfeil.slashblade.named.kamuy.base.name=Kamuy-Kutune Sirka-
item.flammpfeil.slashblade.named.kamuy.water.name=Kamuy-WAKKA-
item.flammpfeil.slashblade.named.kamuy.fire.name=Kamuy-APE-
item.flammpfeil.slashblade.named.kamuy.lightning.name=Kamuy-KANNA-
flammpfeil.slashblade.specialattack.none=Meditation
flammpfeil.slashblade.specialattack.aquaedge=AquaEdge
flammpfeil.slashblade.specialattack.flarespiral=FlareSpiral
flammpfeil.slashblade.specialattack.lightningswords=LightningSwords
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.kamuy.base.pos=22, 8
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.kamuy.water.pos=24, 8
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.kamuy.fire.pos=25, 9
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.kamuy.lightning.pos=26, 10
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.kamuy.base=Kamuy-Kutune Sirka-
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.kamuy.base.desc=§8§l§okamuy within<br>natural
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.kamuy.water=Kamuy-WAKKA-
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.kamuy.water.desc=§8§l§owakka kamuy within<br>water
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.kamuy.fire=Kamuy-APE-
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.kamuy.fire.desc=§8§l§oape kamuy within<br>fire
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.kamuy.lightning=Kamuy-KANNA-
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.kamuy.lightning.desc=§8§l§okanna kamuy within<br>lightning
@@ -0,0 +1,18 @@
#文字コード判定用文字列
item.flammpfeil.slashblade.named.kamuy.base.name=神威刀「クトネシリカ」
item.flammpfeil.slashblade.named.kamuy.water.name=神威刀「ワッカ」
item.flammpfeil.slashblade.named.kamuy.fire.name=神威刀「アペ」
item.flammpfeil.slashblade.named.kamuy.lightning.name=神威刀「カンナ」
flammpfeil.slashblade.specialattack.none=カムイノミ
flammpfeil.slashblade.specialattack.aquaedge=ルヤンペチュイェ
flammpfeil.slashblade.specialattack.flarespiral=キムンリムセ
flammpfeil.slashblade.specialattack.lightningswords=ニシコトロアイ
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.kamuy.base=神威刀「クトネシリカ」
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.kamuy.base.desc=§8§l§o神威が寄り代<br>神への祈り<br>カムイノミ
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.kamuy.water=神威刀「ワッカ」
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.kamuy.water.desc=§8§l§o流水の神威宿す<br>雨切り<br>ルヤンペチュイェ
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.kamuy.fire=神威刀「アペ」
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.kamuy.fire.desc=§8§l§o火焔の神威宿す<br>山の踊り<br>キムンリムセ
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.kamuy.lightning=神威刀「カンナ」
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.kamuy.lightning.desc=§8§l§o雷電の神威宿す<br>天の矢<br>ニシコトロアイ
@@ -0,0 +1,22 @@
item.flammpfeil.slashblade.named.kamuy.base.name=神剑「虎杖丸」
item.flammpfeil.slashblade.named.kamuy.water.name=§1神剑「乌卡」
item.flammpfeil.slashblade.named.kamuy.fire.name=§c神剑「阿贝」
item.flammpfeil.slashblade.named.kamuy.lightning.name=§5神剑「坎那」
flammpfeil.slashblade.specialattack.none=祈愿
flammpfeil.slashblade.specialattack.aquaedge=水岚
flammpfeil.slashblade.specialattack.flarespiral=影舞
flammpfeil.slashblade.specialattack.lightningswords=云轮
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.kamuy.base.pos=22, 8
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.kamuy.water.pos=24, 8
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.kamuy.fire.pos=25, 9
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.kamuy.lightning.pos=26, 10
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.kamuy.base=神剑「虎杖丸」
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.kamuy.base.desc=§8§l§o寄宿着神明br>向神灵祈祷<br>祈愿
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.kamuy.water=神剑「瓦卡」
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.kamuy.water.desc=§8§l§o寄宿着水的神明<br>挥雨<br>水岚
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.kamuy.fire=神剑「阿贝」
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.kamuy.fire.desc=§8§l§o寄宿着火的神明<br>山舞<br>影舞
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.kamuy.lightning=神剑「侃娜」
achievement.flammpfeil.slashblade.flammpfeil.slashblade.named.kamuy.lightning.desc=§8§l§o寄宿着雷的神明<br>天之矢<br>云轮
Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

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

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

File diff suppressed because it is too large. Load diff
+18
View File
@@ -0,0 +1,18 @@
[
{
"modid": "flammpfeil.slashblade.Kamuy",
"name": "SlashBlade-Kamuy",
"description":"",
"version": "mc1.7.10-r3",
"mcversion": "1.7.10",
"url": "",
"updateUrl": "",
"authors": [ "Ferne"],
"credits": "Furia",
"logoFile": "",
"parent":"flammpfeil.slashblade",
"screenshots": [],
"requiredMods": [],
"dependencies": []
}
]