@Deprecated
public interface IShearable
修飾子とタイプ | メソッドと説明 |
---|---|
default boolean |
isShearable(ItemStack item,
IWorldReader world,
BlockPos pos)
非推奨です。
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)
非推奨です。
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.