Class FaceCache


  • public class FaceCache
    extends java.lang.Object
    A cache for Face instances.
    • Constructor Summary

      Constructors 
      Constructor Description
      FaceCache()
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addFace​(int faceNum, int faceSetNum, int faceChecksum, @NotNull java.lang.String faceName)
      Adds a new face.
      void addFace​(@NotNull Face face)
      Adds a new face to the cache.
      @NotNull Face getFace​(int faceNum)
      Returns a face by face id.
      void reset()
      Forgets about all face information.
      • Methods inherited from class java.lang.Object

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

      • FaceCache

        public FaceCache()
        Creates a new instance.
    • Method Detail

      • addFace

        public void addFace​(@NotNull
                            @NotNull Face face)
        Adds a new face to the cache.
        Parameters:
        face - the face to add
      • getFace

        @NotNull
        public @NotNull Face getFace​(int faceNum)
        Returns a face by face id.
        Parameters:
        faceNum - the face id to look up
        Returns:
        the face
      • reset

        public void reset()
        Forgets about all face information. Should be called when connecting to a Crossfire server.
      • addFace

        public void addFace​(int faceNum,
                            int faceSetNum,
                            int faceChecksum,
                            @NotNull
                            @NotNull java.lang.String faceName)
        Adds a new face.
        Parameters:
        faceNum - the face ID
        faceSetNum - the face set
        faceChecksum - the face checksum
        faceName - the face name