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; }
/** * 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); }
private KeyHandler() { this.signpickeypressed = new Timer(); this.signpickeypressed.pause(); }
@SubscribeEvent public void onRenderTick(final @Nonnull TickEvent.RenderTickEvent event) { Timer.tick(); }
@SubscribeEvent public void onRenderTick(final TickEvent.RenderTickEvent event) { Timer.tick(); }
public MLabel setErrorText(final String s) { this.timer = new Timer(); this.timer.set(-3); setColor(0xdd5555); return super.setText(s); }