From dc3df3edd5843bde0c1335d6a8e460b2c832aa48 Mon Sep 17 00:00:00 2001 From: Foghrye4 Date: Sat, 17 Jun 2017 08:12:18 +0300 Subject: full project files --- javadoc/net/minecraftforge/common/IShearable.html | 264 ++++++++++++++++++++++ 1 file changed, 264 insertions(+) create mode 100644 javadoc/net/minecraftforge/common/IShearable.html (limited to 'javadoc/net/minecraftforge/common/IShearable.html') diff --git a/javadoc/net/minecraftforge/common/IShearable.html b/javadoc/net/minecraftforge/common/IShearable.html new file mode 100644 index 0000000..4c316d5 --- /dev/null +++ b/javadoc/net/minecraftforge/common/IShearable.html @@ -0,0 +1,264 @@ + + + + + +IShearable (Forge API) + + + + + + + +
+ + + + + +
+ + + +
+
net.minecraftforge.common
+

Interface IShearable

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      booleanisShearable(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.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isShearable

        +
        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
        +
        Parameters:
        item - The itemstack that is being used, Possible to be null
        world - The current world
        x - The X Position
        y - The Y Position
        z - The Z Position
        +
        Returns:
        If this is shearable, and onSheared should be called.
        +
      • +
      + + + +
        +
      • +

        onSheared

        +
        java.util.ArrayList<ItemStack> onSheared(ItemStack item,
        +                                       IBlockAccess world,
        +                                       int x,
        +                                       int y,
        +                                       int z,
        +                                       int fortune)
        +
        Performs the shear function on this object. + This is called for both client, and server. + The object should perform all actions related to being sheared, + except for dropping of the items, and removal of the block. + As those are handled by ItemShears itself. + + Returns a list of items that resulted from the shearing process. + + For entities, they should trust there internal location information + over the values passed into this function.
        +
        Parameters:
        item - The itemstack that is being used, Possible to be null
        world - The current world
        x - The X Position
        y - The Y Position
        z - The Z Position
        fortune - The fortune level of the shears being used
        +
        Returns:
        A ArrayList containing all items from this shearing. Possible to be null.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + -- cgit v1.2.3