Avoid some magic values and suppress warnings for the rest.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user