mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-11-01 01:42:18 +00:00
Generi-size PhaseChangeFreeze (#594)
* Generi-size PhaseChangeFreeze Make the ConcurrentHashMap in PhaseChangeFreeze Generic to allow for Java 7 / Java 8 compatibility. * Add missing import to PhaseChangeFreeze * Update PhaseChangeFreeze accessor
This commit is contained in:
parent
fad2f5542b
commit
2b3ae10c2b
|
@ -13,11 +13,12 @@ import org.bukkit.block.Block;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.scheduler.BukkitRunnable;
|
import org.bukkit.scheduler.BukkitRunnable;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
|
|
||||||
public class PhaseChangeFreeze extends IceAbility {
|
public class PhaseChangeFreeze extends IceAbility {
|
||||||
|
|
||||||
private static final ConcurrentHashMap<Block, Byte> FROZEN_BLOCKS = new ConcurrentHashMap<>();
|
private static final Map<Block, Byte> FROZEN_BLOCKS = new ConcurrentHashMap<>();
|
||||||
private static final double REMOVE_RANGE = 50; // TODO: Make the remove range non static
|
private static final double REMOVE_RANGE = 50; // TODO: Make the remove range non static
|
||||||
|
|
||||||
private static boolean overloading = false;
|
private static boolean overloading = false;
|
||||||
|
@ -241,7 +242,7 @@ public class PhaseChangeFreeze extends IceAbility {
|
||||||
this.radius = radius;
|
this.radius = radius;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ConcurrentHashMap<Block, Byte> getFrozenBlocks() {
|
public static Map<Block, Byte> getFrozenBlocks() {
|
||||||
return FROZEN_BLOCKS;
|
return FROZEN_BLOCKS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue