Package net.minecraft.tileentity

Examples of net.minecraft.tileentity.TileEntityBrewingStand


        int brewingBrewingStands = 0;
        for(int i = x - SQUARE_RADIUS; i <= x + SQUARE_RADIUS; i++) {
            for(int j = y - MAX_HEIGHT_DIFF; j <= y + MAX_HEIGHT_DIFF; j++) {
                for(int k = z - SQUARE_RADIUS; k <= z + SQUARE_RADIUS; k++) {
                    if(world.getBlock(i, j, k) == Blocks.brewing_stand && world.getTileEntity(i, j, k) instanceof TileEntityBrewingStand) {
                        TileEntityBrewingStand brewingStand = (TileEntityBrewingStand)world.getTileEntity(i, j, k);
                        if(brewingStand.getBrewTime() > 0) brewingBrewingStands++;
                    }
                }
            }
        }
        return super.getGrowthRate(world, x, y, z) * (1 + brewingBrewingStands * 0.333F);
 
View Full Code Here

TOP

Related Classes of net.minecraft.tileentity.TileEntityBrewingStand

Copyright © 2018 www.massapicom. 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.