Class NetworkUtils

java.lang.Object
me.desht.pneumaticcraft.common.network.NetworkUtils

public class NetworkUtils extends Object
  • Constructor Details

    • NetworkUtils

      public NetworkUtils()
  • Method Details

    • getSyncedFields

      public static List<SyncedField<?>> getSyncedFields(Object syncable, Class<? extends Annotation> searchedAnnotation)
      Get a list of all the synced fields for a syncable object
      Parameters:
      syncable - the object whose fields we are extracting
      searchedAnnotation - the annotation type to search for
      Returns:
      a list of all the fields annotated with the given type