public abstract class CommonPlatformInjector extends Object implements org.geysermc.floodgate.api.inject.PlatformInjector
| Constructor and Description |
|---|
CommonPlatformInjector() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAddon(org.geysermc.floodgate.api.inject.InjectorAddon addon) |
protected boolean |
addInjectedClient(io.netty.channel.Channel channel) |
void |
channelClosedCall(io.netty.channel.Channel channel)
Method to loop through all the addons and call
InjectorAddon.onChannelClosed(Channel)
if InjectorAddon.shouldInject() |
void |
injectAddonsCall(io.netty.channel.Channel channel,
boolean proxyToServer)
Method to loop through all the addons and call
InjectorAddon.onInject(Channel,
boolean) if InjectorAddon.shouldInject(). |
Set<io.netty.channel.Channel> |
injectedClients() |
<T extends org.geysermc.floodgate.api.inject.InjectorAddon> |
removeAddon(Class<T> addon) |
void |
removeAddonsCall(io.netty.channel.Channel channel)
Method to loop through all the addons and call
InjectorAddon.onRemoveInject(Channel)
if InjectorAddon.shouldInject(). |
boolean |
removeInjectedClient(io.netty.channel.Channel channel) |
protected boolean addInjectedClient(io.netty.channel.Channel channel)
public boolean removeInjectedClient(io.netty.channel.Channel channel)
public Set<io.netty.channel.Channel> injectedClients()
public boolean addAddon(org.geysermc.floodgate.api.inject.InjectorAddon addon)
addAddon in interface org.geysermc.floodgate.api.inject.PlatformInjectorpublic <T extends org.geysermc.floodgate.api.inject.InjectorAddon> T removeAddon(Class<T> addon)
removeAddon in interface org.geysermc.floodgate.api.inject.PlatformInjectorpublic void injectAddonsCall(io.netty.channel.Channel channel,
boolean proxyToServer)
InjectorAddon.onInject(Channel,
boolean) if InjectorAddon.shouldInject().channel - the channel to injectproxyToServer - true if the proxy is connecting to a server or false when the player is
connecting to the proxy or false when the platform isn't a proxypublic void channelClosedCall(io.netty.channel.Channel channel)
InjectorAddon.onChannelClosed(Channel)
if InjectorAddon.shouldInject()channel - the channel that was injectedpublic void removeAddonsCall(io.netty.channel.Channel channel)
InjectorAddon.onRemoveInject(Channel)
if InjectorAddon.shouldInject().channel - the channel that was injected