diff options
| author | Lance5057 <Lance5057@gmail.com> | 2015-03-13 08:15:33 -0500 |
|---|---|---|
| committer | Lance5057 <Lance5057@gmail.com> | 2015-03-13 08:15:33 -0500 |
| commit | afb474545246da88084a43cae31259c33e63a8d1 (patch) | |
| tree | df0e220a3568546b7c64bf56e00c8d6af24fed64 /src/api/java | |
| parent | 495fc1d710df9f5b98fec0d0f61f105811742d89 (diff) | |
Updated to TiCo 1.8.3 and fixed the rendering issues that followed.
Also refactored some codes.
Diffstat (limited to 'src/api/java')
5 files changed, 103 insertions, 0 deletions
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> <coolAlias> + 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 <http://www.gnu.org/licenses/>. + */ + +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> <coolAlias> + + 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 <http://www.gnu.org/licenses/>. + */ + +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; |
