Class MinecraftKey

java.lang.Object
org.geysermc.geyser.util.MinecraftKey

public final class MinecraftKey extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static @Nullable net.kyori.adventure.key.Key
    identifierToKey(@Nullable org.geysermc.geyser.api.util.Identifier identifier)
     
    static net.kyori.adventure.key.Key
    To prevent constant warnings from invalid regex.
    static net.kyori.adventure.key.Key
    key(String namespace, String value)
    To prevent constant warnings from invalid regex.
    static @Nullable org.geysermc.geyser.api.util.Identifier
    keyToIdentifier(@Nullable net.kyori.adventure.key.Key key)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MinecraftKey

      public MinecraftKey()
  • Method Details

    • key

      public static net.kyori.adventure.key.Key key(String s)
      To prevent constant warnings from invalid regex.
    • key

      public static net.kyori.adventure.key.Key key(String namespace, String value)
      To prevent constant warnings from invalid regex.
    • identifierToKey

      public static @Nullable net.kyori.adventure.key.Key identifierToKey(@Nullable org.geysermc.geyser.api.util.Identifier identifier)
    • keyToIdentifier

      public static @Nullable org.geysermc.geyser.api.util.Identifier keyToIdentifier(@Nullable net.kyori.adventure.key.Key key)