Contents
Class Registration
java.lang.Object
com.hypixel.hytale.registry.Registration
- Direct Known Subclasses:
ClientFeatureRegistration, CommandRegistration, EntityRegistration, EventRegistration, TaskRegistration
A registration that can be unregistered.
-
Constructor Summary
ConstructorsConstructorDescriptionRegistration(BooleanSupplier isEnabled, Runnable unregister) Default Constructor for aRegistrationinstance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIs this registration still registered.toString()voidCalled to unregister this registration.
-
Constructor Details
-
Registration
Default Constructor for aRegistrationinstance.- Parameters:
isEnabled- Whether this registration is enabled.unregister- The unregister action to perform when unregistering this registration.
-
-
Method Details
-
unregister
public void unregister()Called to unregister this registration. -
isRegistered
public boolean isRegistered()Is this registration still registered.- Returns:
- is this registration still registered.
-
toString
-