@Test public void testSerialize() throws Exception { World world = Mockito.mock(World.class); Mockito.when(world.getName()).thenReturn("world"); String serialize = serialize(new Location(world, 123D, 64D, 123.5D)); Assert.assertEquals("world,123,64,123.5", serialize); serialize = serialize(new Location(world, 123D, 64D, 123.5D, 1F, 0F)); Assert.assertEquals("world,123,64,123.5,1", serialize); serialize = serialize(new Location(world, 123D, 64D, 123.5D, 1F, 123F)); Assert.assertEquals("world,123,64,123.5,1,123", serialize); serialize = serialize(new Location(world, 123D, 64D, 123.5D, 0F, 123F)); Assert.assertEquals("world,123,64,123.5,0,123", serialize); }
public static String serialize(Location location) { return serialize(location, true); }
LocationUtils { public static String serialize(Location location) { return serialize(location, true); } }
LocationUtils { public static String serialize(Location location) { return serialize(location, true); }  }
LocationUtils { public static String serialize(Location location) { return serialize(location, true); }  @Nonnull static Location deserialize(@Nonnull String string); static String serialize(Location location); static String serialize(Location location, boolean direction); static String serialize(Location location, boolean yaw, boolean pitch); static Location getRandomLocationWithin(Location min, Location max); static Location getRandomLocationWithin(@Nonnull Location min, @Nonnull Location max,
                                                 boolean highestBlock); static Location getRandomLocationWithin(@Nonnull Random random, @Nonnull Location min,
                                                 @Nonnull Location max); static Location getRandomLocationWithin(@Nonnull Random random, @Nonnull Location min,
                                                 @Nonnull Location max, boolean highestBlock); static Location getFreeLocation(@Nonnull Location location, double required); static boolean isSameBlock(@Nullable Location l1, @Nullable Location l2); static boolean isSameCoordinates(@Nullable Location l1, @Nullable Location l2); static Function<Location, Vector> toVectorFunction(); static Location toLocation(@Nonnull com.supaham.commons.minecraft.world.space.Vector vector, World world); static Location toLocation(@Nonnull Position position, World world); }
LocationUtils { public static String serialize(Location location) { return serialize(location, true); }  @Nonnull static Location deserialize(@Nonnull String string); static String serialize(Location location); static String serialize(Location location, boolean direction); static String serialize(Location location, boolean yaw, boolean pitch); static Location getRandomLocationWithin(Location min, Location max); static Location getRandomLocationWithin(@Nonnull Location min, @Nonnull Location max,
                                                 boolean highestBlock); static Location getRandomLocationWithin(@Nonnull Random random, @Nonnull Location min,
                                                 @Nonnull Location max); static Location getRandomLocationWithin(@Nonnull Random random, @Nonnull Location min,
                                                 @Nonnull Location max, boolean highestBlock); static Location getFreeLocation(@Nonnull Location location, double required); static boolean isSameBlock(@Nullable Location l1, @Nullable Location l2); static boolean isSameCoordinates(@Nullable Location l1, @Nullable Location l2); static Function<Location, Vector> toVectorFunction(); static Location toLocation(@Nonnull com.supaham.commons.minecraft.world.space.Vector vector, World world); static Location toLocation(@Nonnull Position position, World world);  }