Fix item package

This commit is contained in:
Ben Spiers committed 2016-01-25 00:54:05 +00:00
1 parent 591fc1e4b4
commit 8af7ec270a
53 files changed
+309 -397

No files matched your search

@@ -9,6 +9,7 @@
package buildcraft.api.tools;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.BlockPos;
/***
* Implement this interface on subclasses of Item to have that item work as a wrench for buildcraft
@@ -20,12 +21,11 @@ public interface IToolWrench {
*
* @param player
* - The player doing the wrenching
* @param x
* ,y,z - The coordinates for the block being wrenched
* @param pos - The coordinates for the block being wrenched
*
* @return true if wrenching is allowed, false if not
*/
boolean canWrench(EntityPlayer player, int x, int y, int z);
boolean canWrench(EntityPlayer player, BlockPos pos);
/***
* Callback after the wrench has been used. This can be used to decrease durability or for other purposes. To get the ItemStack that was used, check
@@ -33,8 +33,7 @@ public interface IToolWrench {
*
* @param player
* - The player doing the wrenching
* @param x
* ,y,z - The coordinates of the block being wrenched
* @param pos - The coordinates of the block being wrenched
*/
void wrenchUsed(EntityPlayer player, int x, int y, int z);
void wrenchUsed(EntityPlayer player, BlockPos pos);
}
+3 -2
View File
@@ -2,6 +2,7 @@ package cofh.api.item;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.item.ItemStack;
import net.minecraft.util.BlockPos;
/**
* Implement this interface on subclasses of Item to have that item work as a tool for CoFH mods.
@@ -23,7 +24,7 @@ public interface IToolHammer {
* Z location of the block/tile
* @return True if this tool can be used
*/
boolean isUsable(ItemStack item, EntityLivingBase user, int x, int y, int z);
boolean isUsable(ItemStack item, EntityLivingBase user, BlockPos pos);
/**
* Callback for when the tool has been used reactively.
@@ -39,6 +40,6 @@ public interface IToolHammer {
* @param z
* Z location of the block/tile
*/
void toolUsed(ItemStack item, EntityLivingBase user, int x, int y, int z);
void toolUsed(ItemStack item, EntityLivingBase user, BlockPos pos);
}