Java 类org.lwjgl.util.Timer 实例源码

项目:SignPicture    文件:Sign.java   
public SendPacketTask(final @Nonnull EntryId id, final @Nonnull TileEntitySign entity) {
    this.timer = new Timer();
    this.lines = new String[4];
    id.toStrings(this.lines);
    this.limit = getExpectedEditTime(this.lines, false);
    this.id = id;
    this.entity = entity;
}
项目:redrun    文件:GameObject.java   
/**
 * Creates a new game object at the specified position.
 * 
 * @param x the x position of the game object
 * @param y the y position of the game object
 * @param z the z position of the game object
 * @param textureName the name of the texture to apply to the game object
 */
public GameObject(float x, float y, float z, String textureName)
{
  body = new PhysicsBody(0, new Quat4f(0, 0, 0, 1), new Vector3f(x, y, z), null, 0);

  if (textureName != null)
  {
    texture = Tools.loadTexture(textureName, "png");
  }

  timer = new Timer();
  timer.pause();

  id = counter++;

  if (gameObjects.containsKey(id))
  {
    try
    {
      throw new IllegalArgumentException();
    }
    catch (IllegalArgumentException ex)
    {
      Logger.getLogger(GameObject.class.getName()).log(Level.SEVERE, null, ex);
    }
  }

  gameObjects.put(id, this);
}
项目:SignPicture    文件:KeyHandler.java   
private KeyHandler() {
    this.signpickeypressed = new Timer();
    this.signpickeypressed.pause();
}
项目:SignPicture    文件:CoreHandler.java   
@SubscribeEvent
public void onRenderTick(final @Nonnull TickEvent.RenderTickEvent event) {
    Timer.tick();
}
项目:EEWReciever    文件:OverlayFrame.java   
@SubscribeEvent
public void onRenderTick(final TickEvent.RenderTickEvent event) {
    Timer.tick();
}
项目:EEWReciever    文件:GuiAuthPin.java   
public MLabel setErrorText(final String s) {
    this.timer = new Timer();
    this.timer.set(-3);
    setColor(0xdd5555);
    return super.setText(s);
}