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

Class BlockFluidClassic

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    IFluidBlock
    +
    +
    +
    +
    public class BlockFluidClassic
    +extends BlockFluidBase
    +
    This is a fluid block implementation which emulates vanilla Minecraft fluid behavior. + + It is highly recommended that you use/extend this class for "classic" fluid blocks.
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        isOptimalFlowDirection

        +
        protected boolean[] isOptimalFlowDirection
        +
      • +
      + + + +
        +
      • +

        flowCost

        +
        protected int[] flowCost
        +
      • +
      + + + + +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        BlockFluidClassic

        +
        public BlockFluidClassic(Fluid fluid,
        +                 Material material)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        setFluidStackAmount

        +
        public BlockFluidClassic setFluidStackAmount(int amount)
        +
      • +
      + + + + + + + +
        +
      • +

        canCollideCheck

        +
        public boolean canCollideCheck(int meta,
        +                      boolean fullHit)
        +
        +
        Specified by:
        +
        canCollideCheck in class BlockFluidBase
        +
        +
      • +
      + + + + + + + +
        +
      • +

        getLightValue

        +
        public int getLightValue(IBlockAccess world,
        +                int x,
        +                int y,
        +                int z)
        +
        Description copied from class: Block
        +
        Get a light value for the block at the specified coordinates, normal ranges are between 0 and 15
        +
        +
        Overrides:
        +
        getLightValue in class BlockFluidBase
        +
        Parameters:
        world - The current world
        x - X Position
        y - Y position
        z - Z position
        +
        Returns:
        The light value
        +
      • +
      + + + +
        +
      • +

        updateTick

        +
        public void updateTick(World world,
        +              int x,
        +              int y,
        +              int z,
        +              java.util.Random rand)
        +
        +
        Overrides:
        +
        updateTick in class Block
        +
        +
      • +
      + + + +
        +
      • +

        isFlowingVertically

        +
        public boolean isFlowingVertically(IBlockAccess world,
        +                          int x,
        +                          int y,
        +                          int z)
        +
      • +
      + + + +
        +
      • +

        isSourceBlock

        +
        public boolean isSourceBlock(IBlockAccess world,
        +                    int x,
        +                    int y,
        +                    int z)
        +
      • +
      + + + +
        +
      • +

        getOptimalFlowDirections

        +
        protected boolean[] getOptimalFlowDirections(World world,
        +                                 int x,
        +                                 int y,
        +                                 int z)
        +
      • +
      + + + +
        +
      • +

        calculateFlowCost

        +
        protected int calculateFlowCost(World world,
        +                    int x,
        +                    int y,
        +                    int z,
        +                    int recurseDepth,
        +                    int side)
        +
      • +
      + + + +
        +
      • +

        flowIntoBlock

        +
        protected void flowIntoBlock(World world,
        +                 int x,
        +                 int y,
        +                 int z,
        +                 int meta)
        +
      • +
      + + + +
        +
      • +

        canFlowInto

        +
        protected boolean canFlowInto(IBlockAccess world,
        +                  int x,
        +                  int y,
        +                  int z)
        +
      • +
      + + + +
        +
      • +

        getLargerQuanta

        +
        protected int getLargerQuanta(IBlockAccess world,
        +                  int x,
        +                  int y,
        +                  int z,
        +                  int compare)
        +
      • +
      + + + +
        +
      • +

        drain

        +
        public FluidStack drain(World world,
        +               int x,
        +               int y,
        +               int z,
        +               boolean doDrain)
        +
        Description copied from interface: IFluidBlock
        +
        Attempt to drain the block. This method should be called by devices such as pumps. + + NOTE: The block is intended to handle its own state changes.
        +
        doDrain - If false, the drain will only be simulated.
        +
        Returns:
        +
      • +
      + + + +
        +
      • +

        canDrain

        +
        public boolean canDrain(World world,
        +               int x,
        +               int y,
        +               int z)
        +
        Description copied from interface: IFluidBlock
        +
        Check to see if a block can be drained. This method should be called by devices such as + pumps.
        +
        Returns:
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + -- cgit v1.2.3