Class MinecraftAPI

java.lang.Object
net.notcoded.codelib.minecraft.MinecraftAPI

public class MinecraftAPI extends Object
  • Constructor Details

    • MinecraftAPI

      public MinecraftAPI()
  • Method Details

    • getUUID

      public static UUID getUUID(@NotNull @NotNull String name)
      Returns the UUID of a name.
      Parameters:
      name - The name of the player, e.g. NotCoded
      Returns:
      The uuid of the player, e.g. fcbf27a9-535e-466f-ae75-7c7959fba7f0
    • getName

      public static String getName(@NotNull @NotNull UUID uuid)
      Returns the name of an UUID.
      Parameters:
      uuid - The uuid of a player, e.g. fcbf27a9-535e-466f-ae75-7c7959fba7f0
      Returns:
      The name of a player, e.g. NotCoded