public interface IShearable
| Modifier and Type | Method and Description |
|---|---|
boolean |
isShearable(ItemStack item,
IBlockAccess world,
int x,
int y,
int z)
Checks if the object is currently shearable
Example: Sheep return false when they have no wool
|
java.util.ArrayList<ItemStack> |
onSheared(ItemStack item,
IBlockAccess world,
int x,
int y,
int z,
int fortune)
Performs the shear function on this object.
|
boolean isShearable(ItemStack item, IBlockAccess world, int x, int y, int z)
item - The itemstack that is being used, Possible to be nullworld - The current worldx - The X Positiony - The Y Positionz - The Z Positionjava.util.ArrayList<ItemStack> onSheared(ItemStack item, IBlockAccess world, int x, int y, int z, int fortune)
item - The itemstack that is being used, Possible to be nullworld - The current worldx - The X Positiony - The Y Positionz - The Z Positionfortune - The fortune level of the shears being used