Class MojangApiHelper

java.lang.Object
de.z0rdak.yawp.util.MojangApiHelper

public class MojangApiHelper extends Object
  • Method Details

    • getGameProfileInfo

      public static void getGameProfileInfo(UUID uuid, Consumer<@Nullable com.mojang.authlib.GameProfile> onResult)
    • getGameProfileInfo

      public static void getGameProfileInfo(String username, Consumer<@Nullable com.mojang.authlib.GameProfile> onResult)
    • lookupGameProfileInCache

      public static Optional<com.mojang.authlib.GameProfile> lookupGameProfileInCache(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> ctx, String playerName)
    • lookupGameProfileInCache

      public static Optional<com.mojang.authlib.GameProfile> lookupGameProfileInCache(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> ctx, UUID uuid)