Examples of ordinal()


Examples of lineage2.gameserver.model.base.Race.ordinal()

      charInfopackage.setExp(chardata.getLong("exp"));
      charInfopackage.setSp(chardata.getInt("sp"));
      charInfopackage.setClanId(chardata.getInt("clanid"));

      charInfopackage.setKarma(chardata.getInt("karma"));
      charInfopackage.setRace(race.ordinal());
      charInfopackage.setClassId(classid);
      charInfopackage.setBaseClassId(baseClassId[0]);
      long deletetime = chardata.getLong("deletetime");
      int deletedays = 0;
      if (Config.DELETE_DAYS > 0)
View Full Code Here

Examples of mekanism.common.IFactory.RecipeType.ordinal()

            toSet = type;
            break;
          }
        }

        if(toSet != null && recipeType != toSet.ordinal())
        {
          if(recipeTicks < RECIPE_TICKS_REQUIRED)
          {
            recipeTicks++;
          }
View Full Code Here

Examples of mekanism.common.IRedstoneControl.RedstoneControl.ordinal()

    if(button == 0)
    {
      if(xAxis >= 179 && xAxis <= 197 && yAxis >= 142 && yAxis <= 160)
      {
        RedstoneControl current = control.getControlType();
        int ordinalToSet = current.ordinal() < (RedstoneControl.values().length-1) ? current.ordinal()+1 : 0;

        SoundHandler.playSound("gui.button.press");
        Mekanism.packetHandler.sendToServer(new RedstoneControlMessage(Coord4D.get(tileEntity), RedstoneControl.values()[ordinalToSet]));
      }
    }
View Full Code Here

Examples of mekanism.common.util.FluidContainerUtils.ContainerEditMode.ordinal()

    if(button == 0)
    {
      if(xAxis >= 179 && xAxis <= 197 && yAxis >= 142 && yAxis <= 160)
      {
        ContainerEditMode current = manager.getContainerEditMode();
        int ordinalToSet = current.ordinal() < (ContainerEditMode.values().length-1) ? current.ordinal()+1 : 0;

        SoundHandler.playSound("gui.button.press");
        Mekanism.packetHandler.sendToServer(new ContainerEditModeMessage(Coord4D.get(tileEntity), ContainerEditMode.values()[ordinalToSet]));
      }
    }
View Full Code Here

Examples of micdoodle8.mods.galacticraft.core.tile.ReceiverMode.ordinal()

                {
                    ReceiverMode mode = ((EnergyStorageTile) tile).getModeFromDirection(newDirection.getOpposite());

                    if (mode != null)
                    {
                        this.modeReceive = mode.ordinal();
                    }
                    else
                    {
                        this.modeReceive = ReceiverMode.UNDEFINED.ordinal();
                    }
View Full Code Here

Examples of mods.railcraft.api.signals.SignalAspect.ordinal()

        if (!canChange())
            return;
        changed = true;
        if (button instanceof GuiToggleButton) {
            SignalAspect aspect = SignalAspect.values()[button.id];
            aspects[aspect.ordinal()] = !aspects[aspect.ordinal()];
            ((GuiToggleButton) button).active = aspects[aspect.ordinal()];
        }
    }

    @Override
View Full Code Here

Examples of mods.railcraft.common.blocks.aesthetics.EnumBlockMaterial.ordinal()

    public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z) {
        TileEntity tile = world.getTileEntity(x, y, z);
        if (tile instanceof TileSlab) {
            EnumBlockMaterial slab = ((TileSlab) tile).getUpmostSlab();
            if (slab != null)
                return new ItemStack(this, 1, slab.ordinal());
        }
        return null;
    }

    @Override
View Full Code Here

Examples of mods.railcraft.common.blocks.aesthetics.cube.EnumCube.ordinal()

            type = EnumCube.CRUSHED_OBSIDIAN;
            if (RailcraftConfig.isSubBlockEnabled(type.getTag())) {
                ItemStack stack = type.getItem();

                BallastRegistry.registerBallast(BlockCube.getBlock(), type.ordinal());

                if (IC2Plugin.isModInstalled() && RailcraftConfig.addObsidianRecipesToMacerator()) {
                    IC2Plugin.addMaceratorRecipe(new ItemStack(Blocks.obsidian), stack);
                    IC2Plugin.addMaceratorRecipe(stack, ItemDust.getDust(ItemDust.EnumDust.OBSIDIAN));
                }
View Full Code Here

Examples of mods.railcraft.common.blocks.tracks.EnumTrackMeta.ordinal()

                            setActive(false);
                        }
                        placeRail = false;
                    } else if (TrackTools.isRailBlockAt(worldObj, x, y, z)) {
                        if (!dir.isEqual(TrackTools.getTrackMeta(worldObj, this, x, y, z))) {
                            worldObj.setBlockMetadataWithNotify(x, y, z, dir.ordinal(), 3);
                            setDelay(STANDARD_DELAY);
                        }
                    } else if (worldObj.isAirBlock(x, y, z) || replaceableBlocks.contains(worldObj.getBlock(x, y, z))) {
                        placeRail = true;
                        setDelay(STANDARD_DELAY);
View Full Code Here

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

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

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

            int lock = loco.getLockController().getCurrentState();
            if (this.lastLockState != lock)
                var2.sendProgressBarUpdate(this, 12, lock);
        }
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.