Examples of Item


Examples of net.minecraft.src.Item

    }
    else {
      itemstack = is.asNMSItenStack();
    }

    Item rawItem = Item.itemsList[itemstack.itemID];
    List<String> list;
    if (rawItem != null) {
      list = itemstack.getTooltip(Minecraft.getMinecraft().thePlayer, Minecraft.getMinecraft().gameSettings.advancedItemTooltips);
    } else {
      list = new ArrayList<String>();
View Full Code Here

Examples of net.sf.jiga.xtended.impl.game.gl.MemScratch.Item

                                GL11.glBindTexture(Sf3Texture._EXTtex, buffer);
                                GL11.glTexParameteri(Sf3Texture._EXTtex, GL11.GL_TEXTURE_WRAP_S, GL11.GL_CLAMP);
                                GL11.glTexParameteri(Sf3Texture._EXTtex, GL11.GL_TEXTURE_WRAP_T, GL11.GL_CLAMP);
                                GL11.glTexParameteri(Sf3Texture._EXTtex, GL11.GL_TEXTURE_MIN_FILTER, GL11.GL_NEAREST);
                                GL11.glTexParameteri(Sf3Texture._EXTtex, GL11.GL_TEXTURE_MAG_FILTER, GL11.GL_NEAREST);
                                sTex.addItem(texture.hashCode(), new Item(buffer, texture.toTexScratchDataStore()));
                                texture.validatePixelBuffer();
                                /**
                                 * PBO loading
                                 */
                                if (ext.PixelBufferObjects.GL_isAvailable()) {
                                        if (!sPbo.hasItem(pboHash)) {
                                                sPbo.genVRAMBuffersMap(1);
                                                sPbo.addItem(pboHash, new Item(sPbo.getVRAMFindVacant(), BufferIO._new(0)));
                                        }
                                        Item pboItem = sPbo.firstItem(pboHash);
                                        ARBPixelBufferObject.glBindBufferARB(ARBPixelBufferObject.GL_PIXEL_UNPACK_BUFFER_ARB, pboItem.name);
                                        if (!pboInput) {
                                                ARBPixelBufferObject.glBufferDataARB(ARBPixelBufferObject.GL_PIXEL_UNPACK_BUFFER_ARB, texture.getTextureBufferSize() * BufferIO.Data._findType(texture.accessPixelBuffer()).byteSize, ARBPixelBufferObject.GL_STREAM_COPY_ARB);
                                                sPbo.firstItem(pboHash).data = ARBPixelBufferObject.glMapBufferARB(ARBPixelBufferObject.GL_PIXEL_UNPACK_BUFFER_ARB, ARBPixelBufferObject.GL_WRITE_ONLY_ARB, texture.getTextureBufferSize() * BufferIO.Data._findType(texture.accessPixelBuffer()).byteSize, null);
                                        }
View Full Code Here

Examples of net.sf.joafip.entity.Item

      FilePersistenceTooBigForSerializationException {
    final IDataAccessSession session1 = filePersistence
        .createDataAccessSession();
    final IDataAccessSession session2 = filePersistence
        .createDataAccessSession();
    final Item item1 = new Item();
    final Item item2 = new Item();
    session1.open();
    session2.open();
    session1.setObject("item1", item1);
    session2.setObject("item2", item2);
    ended = false;
View Full Code Here

Examples of net.sf.joafip.entity.rel400.Item

      FilePersistenceTooBigForSerializationException {

    IFilePersistence filePersistence = createFilePersistence(true);
    IDataAccessSession session = filePersistence.createDataAccessSession();
    session.open();
    Item item = new Item(0, "value");
    session.setObject("key", item);
    session.closeAndWait(EnumFilePersistenceCloseAction.SAVE);
    filePersistence.close();

    filePersistence = createFilePersistence(false);
    session = filePersistence.createDataAccessSession();
    session.open();
    item = (Item) session.getObject("key");
    assertEquals("bad state", 0, item.getIdentifier());
    assertEquals("bad state", "value", item.getValue());
    session.closeAndWait(EnumFilePersistenceCloseAction.SAVE);
    filePersistence.close();
  }
View Full Code Here

Examples of net.sf.joafip.performance.items.entity.Item

    String line;
    while ((line = reader.readLine()) != null) {// NOPMD
      reader.readLine();// skip one
      final int identifier = Integer.parseInt(line);
      final ItemList itemList = getItemList(session);
      final Item item = itemList.removeItem(identifier);
      if (item == null) {
        Exception closeException=null;
        try {
          reader.close();
        } catch (Exception exception) {
          closeException=exception;
        }
        throw new FilePersistenceException("must found #" + identifier
            + " to be deleted",closeException);
      }
      if (++count == BATCH_SIZE) {
        count = 0;
        session.close(EnumFilePersistenceCloseAction.SAVE);
        session.open();
        consistencyCheck();
        ++batchCount;
        logger.info("delete batch #" + batchCount);
      }
    }
    reader.close();
    session.close(EnumFilePersistenceCloseAction.SAVE);

    session.open();
    batchCount = 0;
    count = 0;
    reader = new BufferedReader(new FileReader(insertLogFilePath));
    // "runtime_perf/toSearch.txt"));
    while (reader.readLine() != null && (line = reader.readLine()) != null) {// NOPMD
      final int identifier = Integer.parseInt(line);
      final ItemList itemList = getItemList(session);
      final Item item = itemList.get(identifier);
      if (item == null) {
        throw new FilePersistenceException("must found #" + identifier
            + " because not deleted");
      }
      if (++count == BATCH_SIZE) {
        count = 0;
        session.close(EnumFilePersistenceCloseAction.SAVE);
        session.open();
        ++batchCount;
        logger.info("search batch #" + batchCount);
      }
    }
    reader.close();
    session.close(EnumFilePersistenceCloseAction.SAVE);

    session.open();
    batchCount = 0;
    count = 0;
    reader = new BufferedReader(new FileReader(insertLogFilePath));
    // "runtime_perf/toDelete.txt"));
    while ((line = reader.readLine()) != null) { // NOPMD
      reader.readLine();// skip
      final int identifier = Integer.parseInt(line);
      final ItemList itemList = getItemList(session);
      final Item item = itemList.getItem(identifier);
      if (item != null) {
        throw new FilePersistenceException("must not found #"
            + identifier + " because deleted");
      }
      if (++count == BATCH_SIZE) {
View Full Code Here

Examples of net.sf.l2j.gameserver.Item

   * Returns a new object Item
   * @return
   */
    public Item newItem()
  {
        return new Item();
  }
View Full Code Here

Examples of net.sf.saxon.om.Item

          }
        }
    }
   
  public XMLType createXMLType(final SequenceIterator iter, BufferManager bufferManager, boolean emptyOnEmpty) throws XPathException, TeiidComponentException, TeiidProcessingException {
    Item item = iter.next();
    if (item == null && !emptyOnEmpty) {
      return null;
    }
    XMLType.Type type = Type.CONTENT;
    if (item instanceof NodeInfo) {
      NodeInfo info = (NodeInfo)item;
      switch (info.getNodeKind()) {
        case net.sf.saxon.type.Type.DOCUMENT:
          type = Type.DOCUMENT;
          break;
        case net.sf.saxon.type.Type.ELEMENT:
          type = Type.ELEMENT;
          break;
        case net.sf.saxon.type.Type.TEXT:
          type = Type.TEXT;
          break;
      }
    }
    Item next = iter.next();
    if (next != null) {
      type = Type.CONTENT;
    }
    SQLXMLImpl xml = XMLSystemFunctions.saveToBufferManager(bufferManager, new XMLTranslator() {
     
View Full Code Here

Examples of net.sourceforge.cruisecontrol.publishers.rss.Item

            this.rssFeed.setMaxLength(this.maxLength);
            this.rssFeed.setLink(this.channelLinkURL);
        }

        // Create the RSSFeedItem
        Item rssItem = new CruiseControlItem(helper, this.buildresultsurl);
        rssFeed.addItem(rssItem);

        // Publish the feed.
        publishFeed();
    }
View Full Code Here

Examples of net.stinfoservices.pacifiq.server.model.Item

    private void checkConsumedItemQuantities(DSP5 dsp5) throws Exception {
        ServiceSecurityHelper.hasAuthority(ProfileHelper.LICENSES_CONSULTATION, getSession());

        if (dsp5.getItems() != null) {
            for (Item item : dsp5.getItems()) {
                final Item theItem = item;

                Long response = consumptionDAO.getConsumptionQuantityForItem(theItem.getId());

                if (itemQuantitiesConsumed == null) {
                    itemQuantitiesConsumed = new HashMap<Long, Long>();
                }
                itemQuantitiesConsumed.put(theItem.getId(), response);
            }
        }
    }
View Full Code Here

Examples of nl.oneday.data.domain.items.Item

    model.addAttribute("action", "edit");

    LOG.info("item om te editen met id:" + id);

    if (id != null) {
      Item item = itemService.getItemById(id);

      if (item != null) {
        model.addAttribute("id", item.getId());
        model.addAttribute("name", item.getName());
        model.addAttribute("price", item.getPrice());
        model.addAttribute("description", item.getShortDescription());
        return TEMPLATE_ITEM_SHOW_AND_EDIT_FORM;
      }
    }
    return TEMPLATE_ITEM_OVERVIEW;
  }
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.