Package com.hypixel.hytale.event
Class EventRegistration<KeyType,EventType extends IBaseEvent<KeyType>>
java.lang.Object
com.hypixel.hytale.registry.Registration
com.hypixel.hytale.event.EventRegistration<KeyType,EventType>
-
Field Summary
FieldsFields inherited from class com.hypixel.hytale.registry.Registration
isEnabled, unregister -
Constructor Summary
ConstructorsConstructorDescriptionEventRegistration(EventRegistration<KeyType, EventType> registration, BooleanSupplier isEnabled, Runnable unregister) EventRegistration(Class<EventType> eventClass, BooleanSupplier isEnabled, Runnable unregister) -
Method Summary
Modifier and TypeMethodDescriptionstatic <KeyType,EventType extends IBaseEvent<KeyType>>
EventRegistration<KeyType, EventType> combine(EventRegistration<KeyType, EventType> thisRegistration, EventRegistration<KeyType, EventType>... containerRegistrations) toString()Methods inherited from class com.hypixel.hytale.registry.Registration
isRegistered, unregister
-
Field Details
-
eventClass
-
-
Constructor Details
-
EventRegistration
public EventRegistration(@Nonnull Class<EventType> eventClass, @Nonnull BooleanSupplier isEnabled, @Nonnull Runnable unregister) -
EventRegistration
public EventRegistration(@Nonnull EventRegistration<KeyType, EventType> registration, @Nonnull BooleanSupplier isEnabled, @Nonnull Runnable unregister)
-
-
Method Details
-
getEventClass
-
toString
- Overrides:
toStringin classRegistration
-
combine
@Nonnull @SafeVarargs public static <KeyType,EventType extends IBaseEvent<KeyType>> EventRegistration<KeyType,EventType> combine(@Nonnull EventRegistration<KeyType, EventType> thisRegistration, EventRegistration<KeyType, EventType>... containerRegistrations)
-