public interface IShearable
Modifier and Type | Method and Description |
---|---|
boolean |
isShearable(ItemStack item,
IBlockAccess world,
BlockPos pos)
Checks if the object is currently shearable
Example: Sheep return false when they have no wool
|
java.util.List<ItemStack> |
onSheared(ItemStack item,
IBlockAccess world,
BlockPos pos,
int fortune)
Performs the shear function on this object.
|
boolean isShearable(@Nonnull ItemStack item, IBlockAccess world, BlockPos pos)
item
- The itemstack that is being used, Possible to be nullworld
- The current worldpos
- Block's position in world.java.util.List<ItemStack> onSheared(@Nonnull ItemStack item, IBlockAccess world, BlockPos pos, int fortune)
item
- The itemstack that is being used, Possible to be nullworld
- The current worldpos
- If this is a block, the block's position in world.fortune
- The fortune level of the shears being used