Class SmoothFaces

  • All Implemented Interfaces:
    java.lang.Iterable<java.util.Map.Entry<java.lang.String,​SmoothFace>>

    public class SmoothFaces
    extends java.lang.Object
    implements java.lang.Iterable<java.util.Map.Entry<java.lang.String,​SmoothFace>>
    Collection of all smoothing information.
    • Constructor Summary

      Constructors 
      Constructor Description
      SmoothFaces​(@NotNull FaceObjects faceObjects)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • SmoothFaces

        public SmoothFaces​(@NotNull
                           @NotNull FaceObjects faceObjects)
        Creates a new instance.
        Parameters:
        faceObjects - the face objects for looking up faces
    • Method Detail

      • getSmoothFace

        @Nullable
        public @Nullable FaceObject getSmoothFace​(@NotNull
                                                  @NotNull GameObject<?,​?,​?> gameObject)
        Returns the smooth faces for a GameObject.
        Parameters:
        gameObject - the game object
        Returns:
        the smooth face or null if the game object has no attached smooth face
      • iterator

        @NotNull
        public @NotNull java.util.Iterator<java.util.Map.Entry<java.lang.String,​SmoothFace>> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<java.util.Map.Entry<java.lang.String,​SmoothFace>>