Class Connections


  • public class Connections
    extends java.lang.Object
    Utility class to parse "connected" fields in game objects.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int @Nullable [] parseConnections​(@NotNull BaseObject<?,​?,​?,​?> gameObject)
      Extract the "connected" value(s) from a given game object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • parseConnections

        public static int @Nullable [] parseConnections​(@NotNull
                                                        @NotNull BaseObject<?,​?,​?,​?> gameObject)
        Extract the "connected" value(s) from a given game object.
        Parameters:
        gameObject - the game object to process
        Returns:
        the connected values, or null if the game object does not contain a "connected" field