Class FaceCache

java.lang.Object
com.realtime.crossfire.jxclient.faces.FaceCache

public class FaceCache extends Object
A cache for Face instances.
  • Constructor Details

    • FaceCache

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

    • 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 String faceName)
      Adds a new face.
      Parameters:
      faceNum - the face ID
      faceSetNum - the face set
      faceChecksum - the face checksum
      faceName - the face name