Package vazkii.botania.api.subtile

Examples of vazkii.botania.api.subtile.ISubTileContainer


  public int getSurroundingFlowers() {
    int flowers = 0;
    for(ForgeDirection dir : LibMisc.CARDINAL_DIRECTIONS) {
      TileEntity tile = supertile.getWorldObj().getTileEntity(supertile.xCoord + dir.offsetX, supertile.yCoord, supertile.zCoord + dir.offsetZ);
      if(tile != null && tile instanceof ISubTileContainer) {
        ISubTileContainer flower = (ISubTileContainer) tile;
        if(flower.getSubTile() != null && flower.getSubTile().getClass() == getClass()) {
          flowers++;

          Color color = new Color(getColor());
          float r = color.getRed() / 255F;
          float g = color.getGreen() / 255F;
View Full Code Here

TOP

Related Classes of vazkii.botania.api.subtile.ISubTileContainer

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.