Package org.geysermc.event.bus.impl.util
Class Utils
java.lang.Object
org.geysermc.event.bus.impl.util.Utils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionancestorsThatUse(Class<?> clazz, Class<?> use) Looks at all the superclasses and superinterfaces of a given class and checks if it is assignable from the given base class.static booleanisEventCancelled(Object event) static booleanshouldCallSubscriber(Subscriber<?> subscriber, Object event)
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
isEventCancelled
-
shouldCallSubscriber
-
ancestorsThatUse
Looks at all the superclasses and superinterfaces of a given class and checks if it is assignable from the given base class. Superclasses and superinterfaces of the base class and the base class itself are not included in the result, but the given class is included if a super type is assignable.- Parameters:
clazz- the class to look atuse- the base class
-