Examples of ordinal()


Examples of mods.railcraft.common.carts.EntityLocomotive.LocoSpeed.ordinal()

        for (int var1 = 0; var1 < this.crafters.size(); ++var1) {
            ICrafting var2 = (ICrafting) this.crafters.get(var1);

            LocoSpeed speed = loco.getSpeed();
            if (this.lastSpeed != speed)
                var2.sendProgressBarUpdate(this, 10, speed.ordinal());

            LocoMode mode = loco.getMode();
            if (this.lastMode != mode)
                var2.sendProgressBarUpdate(this, 11, mode.ordinal());
View Full Code Here

Examples of mods.railcraft.common.util.misc.EnumColor.ordinal()

            TileEntity tile = world.getTileEntity(x, y, z);
            if (tile instanceof TilePostEmblem) {
                TilePostEmblem post = (TilePostEmblem) tile;
                EnumColor color = post.getColor();
                if (color != null && BlockPostMetal.textures != null)
                    return BlockPostMetal.textures[color.ordinal()];
            }
        }
        return super.getIcon(world, x, y, z, side);
    }
View Full Code Here

Examples of net.azib.ipscan.core.state.ScanningState.ordinal()

    // add listeners to all state changes
    stateMachine.addTransitionListener(this);
   
    // set the default image
    ScanningState state = stateMachine.getState();
    button.setImage(buttonImages[state.ordinal()]);
    button.setText(buttonTexts[state.ordinal()]);
  }

  /**
   * Called when scanning button is clicked
View Full Code Here

Examples of net.hasor.db.transaction.Isolation.ordinal()

        defStatus.setCompleted();
        /*释放资源*/
        /*恢复当时的隔离级别*/
        Isolation transactionIsolation = defStatus.getTranConn().getOriIsolationLevel();
        if (transactionIsolation != null) {
            defStatus.getTranConn().getHolder().getConnection().setTransactionIsolation(transactionIsolation.ordinal());
        }
        defStatus.getTranConn().getHolder().released();//ref--
        defStatus.getTranConn().stopTransaction();
        /*恢复挂起的事务*/
        if (defStatus.isSuspend()) {
View Full Code Here

Examples of net.minecraft.src.buildcraft.api.Orientations.ordinal()

            TileEntity tile = worldObj.getBlockTileEntity((int) pos.x, (int) pos.y,
                              (int) pos.z);

            if (isInput (tile)) {
                newMeta = o.ordinal();
                break;
            }
        }

        if (newMeta != meta) {
View Full Code Here

Examples of net.minecraft.util.EnumFacing.ordinal()

      {
        int x = dispenser.getXInt() + enumfacing.getFrontOffsetX();
        int y = dispenser.getYInt() + enumfacing.getFrontOffsetY();
        int z = dispenser.getZInt() + enumfacing.getFrontOffsetZ();

        tm.onItemUse( dispensedItem, Platform.getPlayer( (WorldServer) w ), w, x, y, z, enumfacing.ordinal(), 0.5f, 0.5f, 0.5f );
      }
    }
    return dispensedItem;
  }
}
View Full Code Here

Examples of net.minecraftforge.common.ForgeDirection.ordinal()

         * and bottom.
         */
        for (int side = 0; side < 6; side++)
        {
           
            if (direction.ordinal() != side)
            {
                GL11.glPushMatrix();
                GL11.glPolygonOffset(-10, -10);
                GL11.glEnable(GL11.GL_POLYGON_OFFSET_FILL);
               
View Full Code Here

Examples of net.minecraftforge.common.util.ForgeDirection.ordinal()

  protected void actionPerformed(GuiButton b) {
    ForgeDirection dir = ForgeDirection.values()[b.id];
    EntityClientPlayerMP player = Minecraft.getMinecraft().thePlayer;
    BlockCoord loc = cb.getLocation();
    PacketHandler.INSTANCE.sendToServer(new PacketOpenConduitUI(cb.getEntity(), dir));
    player.openGui(EnderIO.instance, GuiHandler.GUI_ID_EXTERNAL_CONNECTION_BASE + dir.ordinal(), player.worldObj, loc.x, loc.y, loc.z);
  }

  @Override
  public void initGui() {
    GuiButton b;
View Full Code Here

Examples of net.sf.joafip.store.entity.objectio.EnumObjectInput.ordinal()

        throw new ObjectIOException(exception);
      }
      // ASSERTX
      assert !EnumObjectInput.OBJECT_INPUT_SPECIFIC
          .equals(enumObjectInput) : "no default object io for specific io";
      objectInput = objectInputs[enumObjectInput.ordinal()];
      // ASSERTX
      assert enumObjectInput.isLazy() == objectInput.isLazy() : "lazy mode mismatch";
    }
    return objectInput;
  }
View Full Code Here

Examples of net.sf.joafip.store.entity.objectio.EnumObjectOutput.ordinal()

        enumObjectOutput = classInfo.getObjectOutput();
      } catch (final ClassInfoException exception) {
        throw new ObjectIOException(exception);
      }
      assert assertNotSpecificObjectOutput(enumObjectOutput);
      objectOutput = objectOutputs[enumObjectOutput.ordinal()];
    }
    return objectOutput;
  }

  private boolean assertNotSpecificObjectOutput(
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.