Package forestry.apiculture.gadgets

Examples of forestry.apiculture.gadgets.TileBeehouse


          Defaults.FLAG_BLOCK_SYNCH);
      ForestryBlock.apiculture.block().onBlockAdded(world, xCoord, yCoord, zCoord);

      TileEntity tile = world.getTileEntity(xCoord, yCoord, zCoord);
      if (tile instanceof TileBeehouse) {
        TileBeehouse apiary = ((TileBeehouse) tile);
        apiary.initialize();
        apiary.setSlotContents(TileBeehouse.SLOT_QUEEN,
            PluginApiculture.beeInterface.getMemberStack(getVillageBee(world, xCoord, yCoord, zCoord), EnumBeeType.PRINCESS.ordinal()));
        apiary.setSlotContents(TileBeehouse.SLOT_DRONE,
            PluginApiculture.beeInterface.getMemberStack(getVillageBee(world, xCoord, yCoord, zCoord), EnumBeeType.DRONE.ordinal()));

        for (int i = TileBeehouse.SLOT_FRAMES_1; i < TileBeehouse.SLOT_FRAMES_1 + TileBeehouse.SLOT_FRAMES_COUNT; i++) {
          float roll = world.rand.nextFloat();
          if (roll < 0.2f)
            apiary.setSlotContents(i, ForestryItem.frameUntreated.getItemStack());
          else if (roll < 0.4f)
            apiary.setSlotContents(i, ForestryItem.frameImpregnated.getItemStack());
          else if (roll < 0.6)
            apiary.setSlotContents(i, ForestryItem.frameProven.getItemStack());
        }

      }
    }
  }
View Full Code Here


  @Override
  protected void drawGuiContainerBackgroundLayer(float var1, int mouseX, int mouseY) {
    super.drawGuiContainerBackgroundLayer(var1, mouseX, mouseY);

    TileBeehouse machine = tile;
    drawHealthMeter(guiLeft + 20, guiTop + 37, machine.getHealthScaled(46), Utils.rateTankLevel(machine.getHealthScaled(100)));
  }
View Full Code Here

TOP

Related Classes of forestry.apiculture.gadgets.TileBeehouse

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.