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