|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IShearable
This allows for mods to create there own Shear-like items and have them interact with Blocks/Entities without extra work. Also, if your block/entity supports the Shears, this allows you to support mod-shears as well.
| Method Summary | |
|---|---|
boolean |
isShearable(ItemStack item,
World world,
int x,
int y,
int z)
Checks if the object is currently shearable Example: Sheep return false when they have no wool |
ArrayList<ItemStack> |
onSheared(ItemStack item,
World world,
int x,
int y,
int z,
int fortune)
Performs the shear function on this object. |
| Method Detail |
|---|
boolean isShearable(ItemStack item,
World 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 Position
ArrayList<ItemStack> onSheared(ItemStack item,
World 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||