Class CoordObfuscation
java.lang.Object
com.zenith.module.api.ModuleUtils
com.zenith.module.api.Module
com.zenith.module.impl.CoordObfuscation
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class ModuleUtils
moduleAlertPrefix, moduleLogPrefix -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddisconnect(ServerSession session, String minimessage) voiddisconnect(ServerSession session, String publicReason, String privateReason) booleanWhether this module should be enabled automatically on startup Typically, this should be read from a config boolean valuegetCoordOffset(ServerSession session) getPlayerState(ServerSession session) it.unimi.dsi.fastutil.ints.IntSetbooleanbooleanvoidvoidOverride to run a custom hook when the module is disabledvoidonEnable()Override to run a custom hook when the module is enabledvoidvoidonRespawn(ServerSession session, int dimension) voidvoidonServerTeleport(ServerSession session, double x, double y, double z, int teleportId, List<PositionElement> relative) voidplayerMovePos(ServerSession session, double x, double z) voidreconnect(ServerSession session, String reason) Override this to register client packet handlers Meaning packets between zenith and the destination serverList<com.github.rfresh2.EventConsumer<?>> Override this to register module eventsOverride this to register server packet handlers Meaning packets between zenith and players - both spectators and controlling playervoidsetServerTeleportPos(ServerSession session, double x, double y, double z, int teleportId) booleanshouldObfuscateSession(ServerSession session) Methods inherited from class Module
disable, enable, getClientPacketHandlerCodec, getServerPacketHandlerCodec, isEnabled, setEnabled, subscribeEvents, syncEnabledFromConfig, unsubscribeEventsMethods inherited from class ModuleUtils
debug, debug, debug, discordAndIngameNotification, discordNotification, error, error, error, executeCommand, info, info, info, inGameAlert, inGameAlertActivePlayer, sendClientPacket, sendClientPacketAsync, sendClientPacketAwait, sendClientPacketsAsync, warn, warn, warn
-
Field Details
-
genericDisconnectReason
- See Also:
-
-
Constructor Details
-
CoordObfuscation
public CoordObfuscation()
-
-
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
-
shouldObfuscateSession
-
registerServerPacketHandlerCodec
Description copied from class:ModuleOverride this to register server packet handlers Meaning packets between zenith and players - both spectators and controlling player- Overrides:
registerServerPacketHandlerCodecin 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
-
getPlayerState
-
getCoordOffset
-
onPlayerLoginEvent
-
onServerConnectionRemoved
-
onConfigChange
public void onConfigChange() -
playerMovePos
-
setServerTeleportPos
public void setServerTeleportPos(ServerSession session, double x, double y, double z, int teleportId) -
onServerTeleport
public void onServerTeleport(ServerSession session, double x, double y, double z, int teleportId, List<PositionElement> relative) -
onRespawn
-
reconnect
-
disconnect
-
disconnect
- Overrides:
disconnectin classModuleUtils
-
delayIncomingLogins
public void delayIncomingLogins() -
isEnderEyeInWorld
public boolean isEnderEyeInWorld() -
isNearOffsetBlockStates
public boolean isNearOffsetBlockStates() -
validateSetup
-
getSpectatorEntityIds
public it.unimi.dsi.fastutil.ints.IntSet getSpectatorEntityIds()
-