Examples of intArray()


Examples of org.jboss.test.annotation.factory.support.ComplexWithDefault.intArray()

      assertEquals(MyEnum.ONE, complex.enumVal());
      assertEquals("default", complex.annotation().value());
      assertEquals(new String[]{"The", "defaults"}, complex.array());

      int[] expectedIntArray = new int[] {1,2,3};
      int[] actualIntArray = complex.intArray();
      assertEquals(expectedIntArray.length, actualIntArray.length);
      for (int i = 0 ; i < expectedIntArray.length ; i++)
      {
         assertEquals(expectedIntArray[i], actualIntArray[i]);
      }
View Full Code Here

Examples of se.llbit.nbt.AnyTag.intArray()

  }

  private int[] extractHeightmapData(@NotNull Map<String, AnyTag> data) {
    AnyTag heightmapTag = data.get(LEVEL_HEIGHTMAP);
    if (heightmapTag.isIntArray(X_MAX*Z_MAX)) {
      return heightmapTag.intArray();
    } else {
      int[] fallback = new int[X_MAX*Z_MAX];
      for (int i = 0; i < fallback.length; ++i) {
        fallback[i] = Y_MAX-1;
      }
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.