Examples of flood()


Examples of org.jamesii.core.math.Matrix.flood()

  /** Tests the {@link Matrix#flood(double)} method. */
  public void testFlood() {
    Matrix m = new Matrix(10, 10);

    m.flood(42.23);

    for (int c = 0; c < m.getColumns(); c++) {
      for (int r = 0; r < m.getRows(); r++) {
        assertEquals(42.23, m.getElement(r, c));
      }
View Full Code Here

Examples of org.spout.vanilla.material.map.Map.flood()

    if (i == null || !(i.getMaterial() instanceof Map)) {
      throw new CommandException("Held item is not a map");
    }
    Map m = (Map) i.getMaterial();
    int col = args.popInteger("col");
    for (ProtocolEvent e : m.flood(i, col)) {
      player.getNetwork().callProtocolEvent(e);
    }
  }

  @CommandDescription (aliases = "respawn", usage = "", desc = "Forces the client to respawn")
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.