public interface Internals
Modifier and Type | Method and Description |
---|---|
void |
broadcastMessage(int channel,
java.lang.Object message)
Broadcasts a packet/message using a particular channel.
|
void |
broadcastMessage(java.lang.Object message)
Broadcasts a packet/message using the default TCP channel.
|
java.lang.Object |
getClientConnection(int id)
Gets the internal client connection ("AbstractConnection").
|
java.lang.Object |
getGlobalItem(int id) |
java.lang.Class |
getMessageClass(short id)
Gets a message class from an id.
|
java.lang.Object |
getNetwork()
Provides access to the underlying network server ("AbstractServer")
|
java.lang.Object |
getNpc(int id) |
java.lang.Object |
getPlayer(long uid) |
java.lang.Object |
getPlayerInventory(long uid) |
java.lang.Object |
getRawChunk(int x,
int y,
int z) |
java.lang.Object |
getRawChunkAddition(int x,
int z) |
byte[] |
getRawChunkBlocks(int x,
int y,
int z)
Gets the raw internal block data of a chunk, as a compressed byte array.
|
byte[] |
getRawChunkConstructions(int x,
int z) |
java.lang.Object |
getRawChunkLOD(int x,
int z) |
byte[] |
getRawChunkObjects(int x,
int z) |
byte[] |
getRawChunkTerrain(int x,
int y,
int z)
Gets the raw internal terrain data of a chunk, as a compressed byte array.
|
byte[] |
getRawChunkVegetations(int x,
int z) |
java.lang.Object |
getServer()
Provides access to the internal game server object.
|
java.lang.Object |
getServerNpcManager() |
java.lang.Object |
getServerPlayerManager() |
java.lang.Object |
getServerWorldManager() |
java.lang.Object |
getStorage(int id) |
java.lang.Object |
getVehicle(int id) |
boolean |
isChunkAdditionDirty(int x,
int z) |
boolean |
isChunkDirty(int x,
int y,
int z) |
void |
isGuiElementVisible(int playerID,
java.lang.String name,
Callback<java.lang.Boolean> result) |
void |
reset(boolean reload)
Resets/Reloads or unloads all plugins.
|
void |
sendClientMessage(java.lang.Object connection,
int channel,
java.lang.Object message) |
void |
sendClientMessage(java.lang.Object connection,
java.lang.Object message)
Sends a packet/message to a client.
|
void |
setGuiElementColor(int playerID,
java.lang.String name,
int rgba) |
void |
setGuiElementContentVisible(int playerID,
java.lang.String name,
boolean contentVisible) |
void |
setGuiElementPosition(int playerID,
java.lang.String name,
float x,
float y,
boolean relative) |
void |
setGuiElementVisible(int playerID,
java.lang.String name,
boolean visible) |
void |
setMultithreadedRaycasting(boolean set)
Enables or disables multithreaded raycasting (e.g. player.raycast()).
|
java.lang.Object getServer()
java.lang.Object getServerPlayerManager()
java.lang.Object getServerWorldManager()
java.lang.Object getServerNpcManager()
java.lang.Object getNetwork()
void broadcastMessage(java.lang.Object message)
message
- the packet/message object.void broadcastMessage(int channel, java.lang.Object message)
channel
- the channel (0 == default TCP channel, 1 == default UDP channel etc).message
- the packet/message object.void sendClientMessage(java.lang.Object connection, java.lang.Object message)
connection
- the internal client connection (see getClientConnection(int)
).message
- the packet/message object.void sendClientMessage(java.lang.Object connection, int channel, java.lang.Object message)
java.lang.Class getMessageClass(short id)
id
- the message class id.java.lang.Object getClientConnection(int id)
id
- the player id.java.lang.Object getPlayer(long uid)
java.lang.Object getPlayerInventory(long uid)
java.lang.Object getNpc(int id)
java.lang.Object getStorage(int id)
java.lang.Object getVehicle(int id)
java.lang.Object getGlobalItem(int id)
void setGuiElementPosition(int playerID, java.lang.String name, float x, float y, boolean relative)
void setGuiElementVisible(int playerID, java.lang.String name, boolean visible)
void isGuiElementVisible(int playerID, java.lang.String name, Callback<java.lang.Boolean> result)
void setGuiElementContentVisible(int playerID, java.lang.String name, boolean contentVisible)
void setGuiElementColor(int playerID, java.lang.String name, int rgba)
boolean isChunkDirty(int x, int y, int z)
boolean isChunkAdditionDirty(int x, int z)
java.lang.Object getRawChunk(int x, int y, int z)
java.lang.Object getRawChunkLOD(int x, int z)
java.lang.Object getRawChunkAddition(int x, int z)
byte[] getRawChunkTerrain(int x, int y, int z)
x
- the x offset of the chunk.y
- the y offset of the chunk.z
- the z offset of the chunk.byte[] getRawChunkBlocks(int x, int y, int z)
x
- the x offset of the chunk.y
- the y offset of the chunk.z
- the z offset of the chunk.byte[] getRawChunkObjects(int x, int z)
byte[] getRawChunkVegetations(int x, int z)
byte[] getRawChunkConstructions(int x, int z)
void setMultithreadedRaycasting(boolean set)
set
- true to enable multithreading (default setting), false to disable it.void reset(boolean reload)
reload
- true to reload all plugins, false to unload all plugins.