public class ForgeServerHandler extends Object
Constructor and Description |
---|
ForgeServerHandler() |
Modifier and Type | Method and Description |
---|---|
void |
handle(PluginMessage message)
Handles any
PluginMessage that contains a FML Handshake or Forge
Register. |
void |
receive(PluginMessage message)
Receives a
PluginMessage from ForgeClientData to pass to Server. |
void |
setServerAsForgeServer()
Flags the server as a Forge server.
|
public void handle(PluginMessage message) throws IllegalArgumentException
PluginMessage
that contains a FML Handshake or Forge
Register.message
- The message to handle.IllegalArgumentException
- If the wrong packet is sent down.public void receive(PluginMessage message) throws IllegalArgumentException
PluginMessage
from ForgeClientData to pass to Server.message
- The message to being received.IllegalArgumentException
- if invalid packet receivedpublic void setServerAsForgeServer()
Copyright © 2012–2020 SpigotMC. All rights reserved.