mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-12-22 16:05:01 +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
1 changed files with 3 additions and 2 deletions
|
@ -13,11 +13,12 @@ import org.bukkit.block.Block;
|
|||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.scheduler.BukkitRunnable;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
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 boolean overloading = false;
|
||||
|
@ -241,7 +242,7 @@ public class PhaseChangeFreeze extends IceAbility {
|
|||
this.radius = radius;
|
||||
}
|
||||
|
||||
public static ConcurrentHashMap<Block, Byte> getFrozenBlocks() {
|
||||
public static Map<Block, Byte> getFrozenBlocks() {
|
||||
return FROZEN_BLOCKS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue