From dc3df3edd5843bde0c1335d6a8e460b2c832aa48 Mon Sep 17 00:00:00 2001 From: Foghrye4 Date: Sat, 17 Jun 2017 08:12:18 +0300 Subject: full project files --- .../net/minecraftforge/common/UsernameCache.html | 339 +++++++++++++++++++++ 1 file changed, 339 insertions(+) create mode 100644 javadoc/net/minecraftforge/common/UsernameCache.html (limited to 'javadoc/net/minecraftforge/common/UsernameCache.html') diff --git a/javadoc/net/minecraftforge/common/UsernameCache.html b/javadoc/net/minecraftforge/common/UsernameCache.html new file mode 100644 index 0000000..055d13a --- /dev/null +++ b/javadoc/net/minecraftforge/common/UsernameCache.html @@ -0,0 +1,339 @@ + + + + + +UsernameCache (Forge API) + + + + + + + +
+ + + + + +
+ + + +
+
net.minecraftforge.common
+

Class UsernameCache

+
+
+ +
+
    +
  • +
    +
    +
    public final class UsernameCache
    +extends java.lang.Object
    +
    Caches player's last known usernames +

    + Modders should use getLastKnownUsername(UUID) to determine a players + last known username.
    + For convenience, getMap() is provided to get an immutable copy of + the caches underlying map.

    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      static booleancontainsUUID(java.util.UUID uuid) +
      Check if the cache contains the given player's username
      +
      static java.lang.StringgetLastKnownUsername(java.util.UUID uuid) +
      Get the player's last known username
      +
      static java.util.Map<java.util.UUID,java.lang.String>getMap() +
      Get an immutable copy of the cache's underlying map
      +
      protected static voidload() +
      Load the cache from file
      +
      protected static booleanremoveUsername(java.util.UUID uuid) +
      Remove a player's username from the cache
      +
      protected static voidsave() +
      Save the cache to file
      +
      protected static voidsetUsername(java.util.UUID uuid, + java.lang.String username) +
      Set a player's current username
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setUsername

        +
        protected static void setUsername(java.util.UUID uuid,
        +               java.lang.String username)
        +
        Set a player's current username
        +
        Parameters:
        uuid - the player's UUID
        username - the player's username
        +
      • +
      + + + +
        +
      • +

        removeUsername

        +
        protected static boolean removeUsername(java.util.UUID uuid)
        +
        Remove a player's username from the cache
        +
        Parameters:
        uuid - the player's UUID
        +
        Returns:
        if the cache contained the user
        +
      • +
      + + + +
        +
      • +

        getLastKnownUsername

        +
        @Nullable
        +public static java.lang.String getLastKnownUsername(java.util.UUID uuid)
        +
        Get the player's last known username +

        + May be null

        +
        Parameters:
        uuid - the player's UUID
        +
        Returns:
        the player's last known username, or null if the + cache doesn't have a record of the last username
        +
      • +
      + + + +
        +
      • +

        containsUUID

        +
        public static boolean containsUUID(java.util.UUID uuid)
        +
        Check if the cache contains the given player's username
        +
        Parameters:
        uuid - the player's UUID
        +
        Returns:
        if the cache contains a username for the given player
        +
      • +
      + + + +
        +
      • +

        getMap

        +
        public static java.util.Map<java.util.UUID,java.lang.String> getMap()
        +
        Get an immutable copy of the cache's underlying map
        +
        Returns:
        the map
        +
      • +
      + + + +
        +
      • +

        save

        +
        protected static void save()
        +
        Save the cache to file
        +
      • +
      + + + +
        +
      • +

        load

        +
        protected static void load()
        +
        Load the cache from file
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + -- cgit v1.2.3