Examples of onPlantGrow()


Examples of net.minecraft.block.Block.onPlantGrow()

            if (isSoil)
            {
                if (!checkClear(world, xPos, yPos, zPos, height))
                    return false;

                soil.onPlantGrow(world, xPos, yPos - 1, zPos, xPos, yPos, zPos);
                placeCanopy(world, random, xPos, yPos, zPos, height);
                placeTrunk(world, xPos, yPos, zPos, height);
                return true;
            }
        }
View Full Code Here

Examples of net.minecraft.block.Block.onPlantGrow()

                Block soil = world.getBlock(xPos, yPos - 1, zPos);
                boolean isSoil = (soil != null && soil.canSustainPlant(world, xPos, yPos - 1, zPos, ForgeDirection.UP, (NSaplingBlock) NContent.floraSapling)) || soil == Blocks.netherrack;

                if (isSoil && yPos < 256 - treeHeight - 1)
                {
                    soil.onPlantGrow(world, xPos, yPos - 1, zPos, xPos, yPos, zPos);
                    b0 = 3;
                    byte b1 = 0;
                    int i2;
                    int j2;
                    int k2;
View Full Code Here

Examples of net.minecraft.block.Block.onPlantGrow()

        block = Block.blocksList[blockId];
        if (block == null)
        { // this HAPPENS. wtf?
          return false; // abort, something went weird
        }
        block.onPlantGrow(world, x, y - 1, z, x, y, z);

        for(yOffset = y - 3 + treeHeight; yOffset <= y + treeHeight; ++yOffset)
        {
          int var12 = yOffset - (y + treeHeight),
              center = 1 - var12 / 2;
View Full Code Here

Examples of net.minecraft.block.Block.onPlantGrow()

                Block soil = world.getBlock(xPos, yPos - 1, zPos);
                boolean isSoil = (soil != null && soil.canSustainPlant(world, xPos, yPos - 1, zPos, ForgeDirection.UP, (NSaplingBlock) NContent.floraSapling)) || soil == Blocks.netherrack;

                if (isSoil && yPos < 256 - treeHeight - 1)
                {
                    soil.onPlantGrow(world, xPos, yPos - 1, zPos, xPos, yPos, zPos);
                    b0 = 3;
                    byte b1 = 0;
                    int i2;
                    int j2;
                    int k2;
View Full Code Here

Examples of net.minecraft.block.Block.onPlantGrow()

            {
                //TODO Fix this for 1.7
                //if (!checkClear(world, xPos, yPos, zPos, height))
                //    return false;

                soil.onPlantGrow(world, xPos, yPos - 1, zPos, xPos, yPos, zPos);
                placeCanopy(world, random, xPos, yPos, zPos, height);
                placeTrunk(world, xPos, yPos, zPos, height);
                return true;
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.