Class ReplayMod
java.lang.Object
com.zenith.module.api.ModuleUtils
com.zenith.module.api.Module
com.zenith.module.impl.ReplayMod
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classEvent listeners even when the module is disabled -
Field Summary
Fields inherited from class ModuleUtils
moduleAlertPrefix, moduleLogPrefix -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether this module should be enabled automatically on startup Typically, this should be read from a config boolean valuevoidvoidonClientTick(ClientTickEvent event) voidOverride to run a custom hook when the module is disabledvoidvoidonEnable()Override to run a custom hook when the module is enabledvoidonInboundPacket(Packet packet, Session session) voidonPostOutgoing(Packet packet, Session session) Override this to register client packet handlers Meaning packets between zenith and the destination serverList<com.github.rfresh2.EventConsumer<?>> Override this to register module eventsvoidstartDelayedRecordingStop(int delaySeconds, BooleanSupplier condition) Methods inherited from class Module
disable, enable, getClientPacketHandlerCodec, getServerPacketHandlerCodec, isEnabled, registerServerPacketHandlerCodec, setEnabled, subscribeEvents, syncEnabledFromConfig, unsubscribeEventsMethods inherited from class ModuleUtils
debug, debug, debug, disconnect, discordAndIngameNotification, discordNotification, error, error, error, executeCommand, info, info, info, inGameAlert, inGameAlertActivePlayer, sendClientPacket, sendClientPacketAsync, sendClientPacketAwait, sendClientPacketsAsync, warn, warn, warn
-
Constructor Details
-
ReplayMod
public ReplayMod()
-
-
Method Details
-
registerEvents
Description copied from class:ModuleOverride this to register module events- Overrides:
registerEventsin classModule
-
enabledSetting
public boolean enabledSetting()Description copied from class:ModuleWhether this module should be enabled automatically on startup Typically, this should be read from a config boolean value- Specified by:
enabledSettingin classModule
-
registerClientPacketHandlerCodec
Description copied from class:ModuleOverride this to register client packet handlers Meaning packets between zenith and the destination server- Overrides:
registerClientPacketHandlerCodecin classModule
-
onEnable
-
onDisable
-
startDelayedRecordingStop
-
onClientTick
-
onInboundPacket
-
onPostOutgoing
-
onDisconnectEvent
-
handleProxyClientDisconnectedEvent
-