This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PlayerInput { | |
private static final HashMap<UUID, Consumer<?>> callbackMap = new HashMap<>(); | |
private static final Set<Class<?>> ignoredClasses = Sets.newHashSet( | |
ClientAnimationPacket.class, | |
ClientPongPacket.class, | |
ClientPlayerPositionPacket.class, | |
ClientPlayerRotationPacket.class, | |
ClientPlayerPositionAndRotationPacket.class, | |
ClientKeepAlivePacket.class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import net.kyori.adventure.text.Component; | |
import net.kyori.adventure.text.TextComponent; | |
import net.kyori.adventure.text.format.NamedTextColor; | |
import net.kyori.adventure.text.format.Style; | |
import net.kyori.adventure.text.format.TextDecoration; | |
import net.minestom.server.utils.StringUtils; | |
import java.util.*; | |
public class ComponentWrapper { |