From 4ec647243f6777e5c47cefa263a280e63faaff6d Mon Sep 17 00:00:00 2001 From: Bernhard Bonigl Date: Thu, 12 Feb 2015 10:27:08 +0100 Subject: [PATCH] Extra Dynamic-Sword-Skills support --- .../java/dynamicswordskills/api/ISword.java | 27 +++++++++++++++++++ .../java/tconstruct/library/tools/Weapon.java | 6 ++--- 2 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 src/api/java/dynamicswordskills/api/ISword.java diff --git a/src/api/java/dynamicswordskills/api/ISword.java b/src/api/java/dynamicswordskills/api/ISword.java new file mode 100644 index 00000000..d8f309bc --- /dev/null +++ b/src/api/java/dynamicswordskills/api/ISword.java @@ -0,0 +1,27 @@ +/** + Copyright (C) <2015> + This file is part of coolAlias' Dynamic Sword Skills Minecraft Mod; as such, + you can redistribute it and/or modify it under the terms of the GNU + General Public License as published by the Free Software Foundation, + either version 3 of the License, or (at your option) any later version. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + You should have received a copy of the GNU General Public License + along with this program. If not, see . + */ + +package dynamicswordskills.api; + +/** + * + * For the purpose of using certain skills, this item will be considered a sword. + * + * Skills which require a sword are: + * {@link LeapingBlow}, {@link MortalDraw}, and {@link RisingCut} + * + */ +public interface ISword { + +} \ No newline at end of file diff --git a/src/main/java/tconstruct/library/tools/Weapon.java b/src/main/java/tconstruct/library/tools/Weapon.java index 92ebe45e..dced6c21 100644 --- a/src/main/java/tconstruct/library/tools/Weapon.java +++ b/src/main/java/tconstruct/library/tools/Weapon.java @@ -13,13 +13,13 @@ import net.minecraft.item.*; import net.minecraft.world.World; import net.minecraftforge.event.entity.player.PlayerInteractEvent; import tconstruct.tools.TinkerTools; -import zeldaswordskills.api.item.ISword; @Optional.InterfaceList({ @Optional.Interface(modid = "battlegear2", iface = "mods.battlegear2.api.weapons.IBattlegearWeapon"), - @Optional.Interface(modid = "ZeldaItemAPI", iface = "zeldaswordskills.api.item.ISword") + @Optional.Interface(modid = "ZeldaItemAPI", iface = "zeldaswordskills.api.item.ISword"), + @Optional.Interface(modid = "DynamicSkillsAPI", iface = "dynamicswordskills.api.ISword") }) -public abstract class Weapon extends ToolCore implements IBattlegearWeapon, ISword +public abstract class Weapon extends ToolCore implements IBattlegearWeapon, zeldaswordskills.api.item.ISword, dynamicswordskills.api.ISword { public Weapon(int baseDamage)