From afb474545246da88084a43cae31259c33e63a8d1 Mon Sep 17 00:00:00 2001 From: Lance5057 Date: Fri, 13 Mar 2015 08:15:33 -0500 Subject: Updated to TiCo 1.8.3 and fixed the rendering issues that followed. Also refactored some codes. --- src/api/java/dynamicswordskills/api/ISword.java | 27 +++++++++++++++ .../invtweaks/api/container/ChestContainer.java | 38 ++++++++++++++++++++++ src/api/java/zeldaswordskills/api/item/ISword.java | 30 +++++++++++++++++ .../zeldaswordskills/api/item/package-info.java | 4 +++ .../java/zeldaswordskills/api/package-info.java | 4 +++ 5 files changed, 103 insertions(+) create mode 100644 src/api/java/dynamicswordskills/api/ISword.java create mode 100644 src/api/java/invtweaks/api/container/ChestContainer.java create mode 100644 src/api/java/zeldaswordskills/api/item/ISword.java create mode 100644 src/api/java/zeldaswordskills/api/item/package-info.java create mode 100644 src/api/java/zeldaswordskills/api/package-info.java (limited to 'src/api/java') diff --git a/src/api/java/dynamicswordskills/api/ISword.java b/src/api/java/dynamicswordskills/api/ISword.java new file mode 100644 index 0000000..d8f309b --- /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/api/java/invtweaks/api/container/ChestContainer.java b/src/api/java/invtweaks/api/container/ChestContainer.java new file mode 100644 index 0000000..dc27377 --- /dev/null +++ b/src/api/java/invtweaks/api/container/ChestContainer.java @@ -0,0 +1,38 @@ +package invtweaks.api.container; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** + * A marker for containers that have a chest-like persistant storage component. Enables the Inventroy Tweaks sorting + * buttons for this container. + */ +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.TYPE) +public @interface ChestContainer { + // Set to true if the Inventory Tweaks sorting buttons should be shown for this container. + boolean showButtons() default true; + + // Size of a chest row + int rowSize() default 9; + + // Uses 'large chest' mode for sorting buttons + // (Renders buttons vertically down the right side of the GUI) + boolean isLargeChest() default false; + + // Annotation for method to get size of a chest row if it is not a fixed size for this container class + // Signature int func() + @Retention(RetentionPolicy.RUNTIME) + @Target(ElementType.METHOD) + public @interface RowSizeCallback { + } + + // Annotation for method to get size of a chest row if it is not a fixed size for this container class + // Signature int func() + @Retention(RetentionPolicy.RUNTIME) + @Target(ElementType.METHOD) + public @interface IsLargeCallback { + } +} \ No newline at end of file diff --git a/src/api/java/zeldaswordskills/api/item/ISword.java b/src/api/java/zeldaswordskills/api/item/ISword.java new file mode 100644 index 0000000..793c97d --- /dev/null +++ b/src/api/java/zeldaswordskills/api/item/ISword.java @@ -0,0 +1,30 @@ +/** + Copyright (C) <2014> + + This file is part of coolAlias' Zelda 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 zeldaswordskills.api.item; + +/** + * + * For the purpose of using certain skills, this item will be considered a sword. + * + * Skills which require a sword are: + * {@link LeapingBlow}, {@link MortalDraw}, {@link RisingCut}, and {@link SwordBeam} + * + */ +public interface ISword { + +} diff --git a/src/api/java/zeldaswordskills/api/item/package-info.java b/src/api/java/zeldaswordskills/api/item/package-info.java new file mode 100644 index 0000000..ee7ca09 --- /dev/null +++ b/src/api/java/zeldaswordskills/api/item/package-info.java @@ -0,0 +1,4 @@ +@API(owner = "zeldaswordskills", provides = "ZeldaItemAPI", apiVersion = "0.3") +package zeldaswordskills.api.item; + +import cpw.mods.fml.common.API; diff --git a/src/api/java/zeldaswordskills/api/package-info.java b/src/api/java/zeldaswordskills/api/package-info.java new file mode 100644 index 0000000..c253cb4 --- /dev/null +++ b/src/api/java/zeldaswordskills/api/package-info.java @@ -0,0 +1,4 @@ +@API(owner = "zeldaswordskills", provides = "ZeldaAPI", apiVersion = "0.3") +package zeldaswordskills.api; + +import cpw.mods.fml.common.API; -- cgit v1.2.3