Ejemplo n.º 1
0
 @Override
 public void detectAndSendChanges() {
   super.detectAndSendChanges();
   for (Object crafter : crafters) {
     tile.sendGUINetworkData(this, (ICrafting) crafter);
   }
 }
Ejemplo n.º 2
0
  public ContainerAlveary(InventoryPlayer player, TileAlvearyPlain tile) {
    super(tile);

    this.tile = tile;
    tile.sendNetworkUpdate();

    // Queen/Princess
    this.addSlotToContainer(new SlotFiltered(tile, TileAlvearyPlain.SLOT_QUEEN, 29, 39));

    // Drone
    this.addSlotToContainer(new SlotFiltered(tile, TileAlvearyPlain.SLOT_DRONE, 29, 65));

    // Product Inventory
    this.addSlotToContainer(new SlotOutput(tile, 2, 116, 52));
    this.addSlotToContainer(new SlotOutput(tile, 3, 137, 39));
    this.addSlotToContainer(new SlotOutput(tile, 4, 137, 65));
    this.addSlotToContainer(new SlotOutput(tile, 5, 116, 78));
    this.addSlotToContainer(new SlotOutput(tile, 6, 95, 65));
    this.addSlotToContainer(new SlotOutput(tile, 7, 95, 39));
    this.addSlotToContainer(new SlotOutput(tile, 8, 116, 26));

    // Player inventory
    for (int i = 0; i < 3; i++) {
      for (int j = 0; j < 9; j++) {
        addSlotToContainer(new Slot(player, j + i * 9 + 9, 8 + j * 18, 108 + i * 18));
      }
    }
    // Player hotbar
    for (int i = 0; i < 9; i++) {
      addSlotToContainer(new Slot(player, i, 8 + i * 18, 166));
    }
  }
Ejemplo n.º 3
0
 @Override
 public void updateProgressBar(int i, int j) {
   tile.getGUINetworkData(i, j);
 }