From 285cb7338cc43cb57335ee0305cf3126f65e884d Mon Sep 17 00:00:00 2001 From: tterrag1098 Date: Tue, 8 Sep 2015 20:36:42 -0400 Subject: [PATCH] Update CoFH API to 1.0.13 --- src/main/java/cofh/api/CoFHAPIProps.java | 2 +- .../cofh/api/item/ISpecialFilterFluid.java | 24 +++++++++++++++++++ .../cofh/api/item/ISpecialFilterItem.java | 23 ++++++++++++++++++ .../cofh/api/transport/IEnderDestination.java | 4 ++++ 4 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 src/main/java/cofh/api/item/ISpecialFilterFluid.java create mode 100644 src/main/java/cofh/api/item/ISpecialFilterItem.java diff --git a/src/main/java/cofh/api/CoFHAPIProps.java b/src/main/java/cofh/api/CoFHAPIProps.java index 06b5b183..7f000d42 100644 --- a/src/main/java/cofh/api/CoFHAPIProps.java +++ b/src/main/java/cofh/api/CoFHAPIProps.java @@ -6,6 +6,6 @@ public class CoFHAPIProps { } - public static final String VERSION = "1.7.10R1.0.12"; + public static final String VERSION = "1.7.10R1.0.13"; } diff --git a/src/main/java/cofh/api/item/ISpecialFilterFluid.java b/src/main/java/cofh/api/item/ISpecialFilterFluid.java new file mode 100644 index 00000000..7e8d3d02 --- /dev/null +++ b/src/main/java/cofh/api/item/ISpecialFilterFluid.java @@ -0,0 +1,24 @@ +package cofh.api.item; + +import net.minecraft.item.ItemStack; +import net.minecraftforge.fluids.FluidStack; + +/** + * Implement this interface on subclasses of Item to change how the item works in Thermal Dynamics Fluiducts filter slots. + * + * This can be used to create customizable Items which are determined to be "equal" for the purposes of filtering. + */ +public interface ISpecialFilterFluid { + + /** + * This method is called to find out if the given FluidStack should be matched by the given Filter ItemStack. + * + * @param filter + * ItemStack representing the filter. + * @param fluid + * FluidStack representing the queried fluid. + * @return True if the filter should match the FluidStack. False if the default matching should be used. + */ + public boolean matchesFluid(ItemStack filter, FluidStack fluid); + +} diff --git a/src/main/java/cofh/api/item/ISpecialFilterItem.java b/src/main/java/cofh/api/item/ISpecialFilterItem.java new file mode 100644 index 00000000..ef9f953d --- /dev/null +++ b/src/main/java/cofh/api/item/ISpecialFilterItem.java @@ -0,0 +1,23 @@ +package cofh.api.item; + +import net.minecraft.item.ItemStack; + +/** + * Implement this interface on subclasses of Item to change how the item works in Thermal Dynamics Itemducts filter slots. + * + * This can be used to create customizable Items which are determined to be "equal" for the purposes of filtering. + */ +public interface ISpecialFilterItem { + + /** + * This method is called to find out if the given ItemStack should be matched by the given Filter ItemStack. + * + * @param filter + * ItemStack representing the filter. + * @param item + * ItemStack representing the queried item. + * @return True if the filter should match. False if the default matching should be used. + */ + public boolean matchesItem(ItemStack filter, ItemStack item); + +} diff --git a/src/main/java/cofh/api/transport/IEnderDestination.java b/src/main/java/cofh/api/transport/IEnderDestination.java index 30153c0d..f3042a76 100644 --- a/src/main/java/cofh/api/transport/IEnderDestination.java +++ b/src/main/java/cofh/api/transport/IEnderDestination.java @@ -5,8 +5,11 @@ public interface IEnderDestination extends IEnderAttuned { public boolean isNotValid(); public int x(); + public int y(); + public int z(); + public int dimension(); public int getDestination(); @@ -14,4 +17,5 @@ public interface IEnderDestination extends IEnderAttuned { public boolean setDestination(int frequency); public boolean clearDestination(); + }