Class ServerManager
java.lang.Object
com.hypixel.hytale.server.core.plugin.PluginBase
com.hypixel.hytale.server.core.plugin.JavaPlugin
com.hypixel.hytale.server.core.io.ServerManager
- All Implemented Interfaces:
CommandOwner
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CompletableFuture<Void> private static ServerManagerprivate final List<io.netty.channel.Channel> static final PluginManifestprivate static final NetworkUtil.AddressType[]private CompletableFuture<Void> private final List<Function<IPacketHandler, SubPacketHandler>> private TransportFields inherited from class com.hypixel.hytale.server.core.plugin.PluginBase
METRICS_REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbind(InetSocketAddress address) private io.netty.channel.Channelbind0(InetSocketAddress address) static ServerManagerget()List<io.netty.channel.Channel> voidinit()voidpopulateSubPacketHandlers(GamePacketHandler packetHandler) voidprotected voidsetup()protected voidshutdown()protected voidstart()booleanunbind(io.netty.channel.Channel channel) private booleanunbind0(io.netty.channel.Channel channel) voidvoidMethods inherited from class com.hypixel.hytale.server.core.plugin.JavaPlugin
getClassLoader, getFile, getType, start0Methods inherited from class com.hypixel.hytale.server.core.plugin.PluginBase
getAssetRegistry, getBasePermission, getBlockStateRegistry, getChunkStoreRegistry, getClientFeatureRegistry, getCodecRegistry, getCodecRegistry, getCodecRegistry, getCommandRegistry, getDataDirectory, getEntityRegistry, getEntityStoreRegistry, getEventRegistry, getIdentifier, getLogger, getManifest, getName, getState, getTaskRegistry, isDisabled, isEnabled, preLoad, setup0, shutdown0, withConfig, withConfig
-
Field Details
-
MANIFEST
-
NON_PUBLIC_ADDRESS_TYPES
-
instance
-
listeners
-
subPacketHandlers
-
transport
-
registerFuture
-
bootFuture
-
-
Constructor Details
-
ServerManager
-
-
Method Details
-
get
-
init
public void init() -
setup
protected void setup()- Overrides:
setupin classPluginBase
-
start
protected void start()- Overrides:
startin classPluginBase
-
shutdown
protected void shutdown()- Overrides:
shutdownin classPluginBase
-
unbindAllListeners
public void unbindAllListeners() -
getListeners
-
bind
-
unbind
public boolean unbind(@Nonnull io.netty.channel.Channel channel) -
getLocalOrPublicAddress
- Throws:
SocketException
-
getNonLoopbackAddress
- Throws:
SocketException
-
getPublicAddress
- Throws:
SocketException
-
waitForBindComplete
public void waitForBindComplete() -
registerSubPacketHandlers
-
populateSubPacketHandlers
-
bind0
-
unbind0
private boolean unbind0(@Nonnull io.netty.channel.Channel channel)
-