Examples of Item


Examples of com.mks.api.response.Item

                if (itemList.isEmpty()) {
                    System.out.println("}");
                } else {
                    System.out.println();
                    for (Iterator iterator = itemList.iterator(); iterator.hasNext(); ) {
                                        final Item next = (Item) iterator.next();
                                        debug(newTab + "\t", next);
                                    }
                    System.out.println(newTab + "}");
                }
            } else {
View Full Code Here

Examples of com.mojang.escape.entities.Item

  public void render(Game game, boolean hasFocus) {
    if (game.level == null) {
      fill(0, 0, width, height, 0);
    } else {
      boolean itemUsed = game.player.itemUseTime > 0;
      Item item = game.player.items[game.player.selectedSlot];

      if (game.pauseTime > 0) {
        fill(0, 0, width, height, 0);
        String[] messages = { "Entering " + game.level.name, };
        for (int y = 0; y < messages.length; y++) {
          draw(messages[y], (width - messages[y].length() * 6) / 2, (viewport.height - messages.length * 8) / 2 + y * 8 + 1, 0x111111);
          draw(messages[y], (width - messages[y].length() * 6) / 2, (viewport.height - messages.length * 8) / 2 + y * 8, 0x555544);
        }
      } else {
        viewport.render(game);
        viewport.postProcess(game.level);

        Block block = game.level.getBlock((int) (game.player.x + 0.5), (int) (game.player.z + 0.5));
        if (block.messages != null && hasFocus) {
          for (int y = 0; y < block.messages.length; y++) {
            viewport.draw(block.messages[y], (width - block.messages[y].length() * 6) / 2, (viewport.height - block.messages.length * 8) / 2 + y * 8 + 1, 0x111111);
            viewport.draw(block.messages[y], (width - block.messages[y].length() * 6) / 2, (viewport.height - block.messages.length * 8) / 2 + y * 8, 0x555544);
          }
        }

        draw(viewport, 0, 0);
        int xx = (int) (game.player.turnBob * 32);
        int yy = (int) (Math.sin(game.player.bobPhase * 0.4) * 1 * game.player.bob + game.player.bob * 2);

        if (itemUsed) xx = yy = 0;
        xx += width / 2;
        yy += height - PANEL_HEIGHT - 15 * 3;
        if (item != Item.none) {
          scaleDraw(Art.items, 3, xx, yy, 16 * item.icon + 1, 16 + 1 + (itemUsed ? 16 : 0), 15, 15, Art.getCol(item.color));
        }

        if (game.player.hurtTime > 0 || game.player.dead) {
          double offs = 1.5 - game.player.hurtTime / 30.0;
          Random random = new Random(111);
          if (game.player.dead) offs = 0.5;
          for (int i = 0; i < pixels.length; i++) {
            double xp = ((i % width) - viewport.width / 2.0) / width * 2;
            double yp = ((i / width) - viewport.height / 2.0) / viewport.height * 2;

            if (random.nextDouble() + offs < Math.sqrt(xp * xp + yp * yp)) pixels[i] = (random.nextInt(5) / 4) * 0x550000;
          }
        }
      }

      draw(Art.panel, 0, height - PANEL_HEIGHT, 0, 0, width, PANEL_HEIGHT, Art.getCol(0x707070));

      draw("å", 3, height - 26 + 0, 0x00ffff);
      draw("" + game.player.keys + "/4", 10, height - 26 + 0, 0xffffff);
      draw("Ä", 3, height - 26 + 8, 0xffff00);
      draw("" + game.player.loot, 10, height - 26 + 8, 0xffffff);
      draw("Å", 3, height - 26 + 16, 0xff0000);
      draw("" + game.player.health, 10, height - 26 + 16, 0xffffff);

      for (int i = 0; i < 8; i++) {
        Item slotItem = game.player.items[i];
        if (slotItem != Item.none) {
          draw(Art.items, 30 + i * 16, height - PANEL_HEIGHT + 2, slotItem.icon * 16, 0, 16, 16, Art.getCol(slotItem.color));
          if (slotItem == Item.pistol) {
            String str = "" + game.player.ammo;
            draw(str, 30 + i * 16 + 17 - str.length() * 6, height - PANEL_HEIGHT + 1 + 10, 0x555555);
View Full Code Here

Examples of com.mojang.ld22.item.Item

    return this;
  }

  public void checkCanCraft(Player player) {
    for (int i = 0; i < costs.size(); i++) {
      Item item = costs.get(i);
      if (item instanceof ResourceItem) {
        ResourceItem ri = (ResourceItem) item;
        if (!player.inventory.hasResources(ri.resource, ri.count)) {
          canCraft = false;
          return;
View Full Code Here

Examples of com.mojang.minecraft.item.Item

      }

      int var2 = (int)(Math.random() + Math.random() + 1.0D);

      for(int var3 = 0; var3 < var2; ++var3) {
         this.level.addEntity(new Item(this.level, this.x, this.y, this.z, Block.BROWN_MUSHROOM.id));
      }

      super.die(var1);
   }
View Full Code Here

Examples of com.oltpbenchmark.benchmarks.tpcc.pojo.Item

            + "item.csv"));
        LOG.debug("\nWriting Item file to: " + fileLocation
            + "item.csv");
      }

      Item item = new Item();

      for (int i = 1; i <= itemKount; i++) {

        item.i_id = i;
        item.i_name = TPCCUtil.randomStr(TPCCUtil.randomNumber(14, 24,
View Full Code Here

Examples of com.palepail.TestGame.Model.Items.Item

  protected void die(World world) {
    this.setActive(false);
    if (timesToSplit < 1) {
      int dropNum = this.getNumberOfDrops();
      for (int x = 0; x < dropNum; x++) {
        Item item = this.getDrop();
        if (item != null) {
          world.putItem(item);
        }
      }
    } else {
View Full Code Here

Examples of com.pre.entity.base.Item

  private void delete(ArrayList<String> ids) {
    try {
      int result=Messagebox.show("Delete "+divisionCombo.getText()+" ?", "Confirm delete", Messagebox.YES | Messagebox.CANCEL, null);
      if(result==Messagebox.YES){
        Item toDelete=itemManager.find(new Long(ids.get(0)));
        //Cannot delete a locked item
        if(!toDelete.isLocked()){
          itemManager.delete(toDelete.getId());
        }
       
      }
    } catch (WrongValueException e) {
      // TODO Auto-generated catch block
View Full Code Here

Examples of com.rakaizsys.eims.model.Item

    SQLMapHolder.sqlMap.insert("insertItem", dbObject);
  }

  @Override
  protected void doNew() throws Exception {
    dbObject = new Item();
  }
View Full Code Here

Examples of com.rometools.rome.feed.rss.Item

    @Override
    protected List<Item> buildFeedItems(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception {
      List<Item> items = new ArrayList<Item>();
      for (String name : model.keySet()) {
        Item item = new Item();
        item.setTitle(name);
        Description description = new Description();
        description.setValue((String) model.get(name));
        item.setDescription(description);
        items.add(item);
      }
      return items;
    }
View Full Code Here

Examples of com.salas.bb.utils.parser.Item

     * Tests normal update sequence with updates to times and retrieval counts.
     */
    public void testUpdateNotNull()
    {
        Channel channel = new Channel();
        channel.addItem(new Item("1"));

        DummyDataFeed feed = new DummyDataFeed();
        feed.setChannel(channel);

        long base = System.currentTimeMillis();
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.