Class FaceCache
- java.lang.Object
-
- com.realtime.crossfire.jxclient.faces.FaceCache
-
public class FaceCache extends java.lang.ObjectA cache forFaceinstances.
-
-
Constructor Summary
Constructors Constructor Description FaceCache()Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFace(int faceNum, int faceSetNum, int faceChecksum, @NotNull java.lang.String faceName)Adds a new face.voidaddFace(@NotNull Face face)Adds a new face to the cache.@NotNull FacegetFace(int faceNum)Returns a face by face id.voidreset()Forgets about all face information.
-
-
-
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 IDfaceSetNum- the face setfaceChecksum- the face checksumfaceName- the face name
-
-