mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-01 05:58:00 +01:00
Use of Char2ObjectMap instead of classic Map
This commit is contained in:
parent
136e1d1e6d
commit
f925e31b29
@ -1,5 +1,7 @@
|
||||
package net.minestom.server.chat;
|
||||
|
||||
import it.unimi.dsi.fastutil.chars.Char2ObjectMap;
|
||||
import it.unimi.dsi.fastutil.chars.Char2ObjectOpenHashMap;
|
||||
import it.unimi.dsi.fastutil.ints.Int2ObjectMap;
|
||||
import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
|
||||
import net.minestom.server.utils.validate.Check;
|
||||
@ -41,7 +43,7 @@ public class ChatColor {
|
||||
|
||||
private static Int2ObjectMap<ChatColor> idColorMap = new Int2ObjectOpenHashMap<>();
|
||||
private static Map<String, ChatColor> colorCode = new HashMap<>();
|
||||
private static Map<Character, ChatColor> legacyColorCodesMap = new HashMap<>();
|
||||
private static Char2ObjectMap<ChatColor> legacyColorCodesMap = new Char2ObjectOpenHashMap<>();
|
||||
|
||||
static {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user