Examples of ordinal()


Examples of org.bukkit.SkullType.ordinal()

      type = SkullType.CREEPER;
    } else {
      return null;
    }
    @SuppressWarnings("deprecation")
    final ItemType i = new ItemType(Material.SKULL_ITEM.getId(), (short) type.ordinal());
    if (o instanceof OfflinePlayer) {
      final SkullMeta s = (SkullMeta) Bukkit.getItemFactory().getItemMeta(Material.SKULL_ITEM);
      s.setOwner(((OfflinePlayer) o).getName());
      i.setItemMeta(s);
    }
View Full Code Here

Examples of org.bukkit.block.Biome.ordinal()

                    else {
                        Biome bb = snap.getBiome(bx, bz);
                        if(bb == null)
                            bm = BiomeMap.NULL;
                        else
                            bm = biome_to_bmap[bb.ordinal()];
                    }
                    biomemap[i][j] = bm;
                    int cnt = 0;
                    if(i > 0) {
                        if(bm == biomemap[i-1][j]) {   /* Same as one to left */
 
View Full Code Here

Examples of org.cspoker.common.elements.cards.Card.ordinal()

        int rank = startRank;
        Card sampleCard1;
        do{
          sampleCard1 = Card.values()[random.nextInt(Card.values().length)];
        }while(cards.contains(sampleCard1));
        rank = handRanks[sampleCard1.ordinal() + 1 + rank];

        Card sampleCard2;
        do{
          sampleCard2 = Card.values()[random.nextInt(Card.values().length)];
        }while(cards.contains(sampleCard2) || sampleCard2.equals(sampleCard1));
View Full Code Here

Examples of org.dynmap.utils.BlockStep.ordinal()

         */
        @Override
        public BlockStep unstepPosition()
        {
            BlockStep ls = laststep;
            stepPosition(unstep[ls.ordinal()]);
            return ls;
        }
        /**
         * Unstep current position in oppisite director of given step
         */
 
View Full Code Here

Examples of org.fusesource.mqtt.client.QoS.ordinal()

                try {
                    onReSubscribe(mqttSubscription);
                } catch (IOException e) {
                    throw new MQTTProtocolException("Failed to find subscription strategy", true, e);
                }
                return (byte) requestedQoS.ordinal();
            }
        }

        try {
            return onSubscribe(destinationName, requestedQoS);
View Full Code Here

Examples of org.hibernate.annotations.OptimisticLockType.ordinal()

    entityBinding.setMutable( mutable );
    entityBinding.setDynamicInsert( dynamicInsert );
    entityBinding.setDynamicUpdate( dynamicUpdate );
    entityBinding.setSelectBeforeUpdate( selectBeforeUpdate );
    entityBinding.setExplicitPolymorphism( PolymorphismType.EXPLICIT.equals( polymorphism ) );
    entityBinding.setOptimisticLockMode( optimisticLock.ordinal() );
  }

  private Hierarchical getSuperType() {
    ConfiguredClass parent = configuredClass.getParent();
    if ( parent == null ) {
View Full Code Here

Examples of org.jboss.aop.advice.AdviceType.ordinal()

            {
               continue;
            }
            AdviceMethodProperties properties = getAdviceMethodProperties(info, allSetups[i]);
            AdviceType type = allSetups[i].getType();
            int index = type.ordinal();
            if (aspects[index] == null)
            {
               aspects[index] = new ArrayList<AdviceSetup>();
            }
           
View Full Code Here

Examples of org.jbox2d.collision.shapes.ShapeType.ordinal()

  public Contact popContact(Fixture fixtureA, int indexA, Fixture fixtureB, int indexB) {
    final ShapeType type1 = fixtureA.getType();
    final ShapeType type2 = fixtureB.getType();

    final ContactRegister reg = contactStacks[type1.ordinal()][type2.ordinal()];
    final IDynamicStack<Contact> creator = reg.creator;
    if (creator != null) {
      if (reg.primary) {
        Contact c = creator.pop();
        c.init(fixtureA, indexA, fixtureB, indexB);
View Full Code Here

Examples of org.jquantlib.time.Weekday.ordinal()

                                            bmaIndex,
                                            liborIndex);
        }

        final Weekday w = vars.today.weekday();
        final Date lastWednesday = (w.ordinal() >= 4) ? vars.today.sub(w.ordinal() - 4) : vars.today.add(4 - w.ordinal() - 7);
        final Date lastFixing = bmaIndex.fixingCalendar().adjust(lastWednesday);
        bmaIndex.addFixing(lastFixing, 0.03);

        vars.termStructure = new PiecewiseYieldCurve<T,I,B>(
                      classT, classI, classB,
View Full Code Here

Examples of org.jruby.pg.internal.ConnectionState.ordinal()

    @JRubyMethod(alias = "reset_poll")
    public IRubyObject connect_poll(ThreadContext context) {
      try {
        ConnectionState state = postgresqlConnection.connectPoll();
        return context.runtime.newFixnum(state.ordinal());
      } catch (Exception e) {
        throw newPgError(context, e.getLocalizedMessage(), null, getClientEncodingAsJavaEncoding(context));
      }
    }
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.