Class NetworkUtils
java.lang.Object
me.desht.pneumaticcraft.common.network.NetworkUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<SyncedField<?>>getSyncedFields(Object syncable, Class<? extends Annotation> searchedAnnotation) Get a list of all the synced fields for a syncable 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 extractingsearchedAnnotation- the annotation type to search for- Returns:
- a list of all the fields annotated with the given type
-