public class SmoothFaces extends java.lang.Object implements java.lang.Iterable<java.util.Map.Entry<java.lang.String,SmoothFace>>
| Constructor and Description |
|---|
SmoothFaces(@NotNull FaceObjects faceObjects)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(@NotNull SmoothFace smoothFace)
Adds a
SmoothFace instance. |
@Nullable FaceObject |
getSmoothFace(@NotNull GameObject<?,?,?> gameObject)
Returns the smooth faces for a
GameObject. |
@NotNull java.util.Iterator<java.util.Map.Entry<java.lang.String,SmoothFace>> |
iterator() |
public SmoothFaces(@NotNull
@NotNull FaceObjects faceObjects)
faceObjects - the face objects for looking up facespublic void add(@NotNull
@NotNull SmoothFace smoothFace)
throws DuplicateSmoothFaceException
SmoothFace instance.smoothFace - the smooth face instanceDuplicateSmoothFaceException - if the smooth face is not unique@Nullable public @Nullable FaceObject getSmoothFace(@NotNull @NotNull GameObject<?,?,?> gameObject)
GameObject.gameObject - the game objectnull if the game object has no
attached smooth face@NotNull public @NotNull java.util.Iterator<java.util.Map.Entry<java.lang.String,SmoothFace>> iterator()
iterator in interface java.lang.Iterable<java.util.Map.Entry<java.lang.String,SmoothFace>>