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