Avoid some magic values and suppress warnings for the rest.

This commit is contained in:
Olof Larsson
2013-09-20 12:50:32 +02:00
parent 5a7024db4c
commit a5f4781f7b
4 changed files with 12 additions and 3 deletions

View File

@ -37,12 +37,14 @@ public class VisualizeUtil
// SINGLE
// -------------------------------------------- //
@SuppressWarnings("deprecation")
public static void addLocation(Player player, Location location, int typeId, byte data)
{
getPlayerLocations(player).add(location);
player.sendBlockChange(location, typeId, data);
}
@SuppressWarnings("deprecation")
public static void addLocation(Player player, Location location, int typeId)
{
getPlayerLocations(player).add(location);
@ -53,6 +55,7 @@ public class VisualizeUtil
// MANY
// -------------------------------------------- //
@SuppressWarnings("deprecation")
public static void addLocations(Player player, Map<Location, Integer> locationMaterialIds)
{
Set<Location> ploc = getPlayerLocations(player);
@ -63,6 +66,7 @@ public class VisualizeUtil
}
}
@SuppressWarnings("deprecation")
public static void addLocations(Player player, Collection<Location> locations, int typeId)
{
Set<Location> ploc = getPlayerLocations(player);
@ -73,6 +77,7 @@ public class VisualizeUtil
}
}
@SuppressWarnings("deprecation")
public static void addBlocks(Player player, Collection<Block> blocks, int typeId)
{
Set<Location> ploc = getPlayerLocations(player);
@ -88,6 +93,7 @@ public class VisualizeUtil
// CLEAR
// -------------------------------------------- //
@SuppressWarnings("deprecation")
public static void clear(Player player)
{
Set<Location> locations = getPlayerLocations(player);