Package com.jubiman.customplayerlib
Class CustomPlayerTickable
java.lang.Object
com.jubiman.customplayerlib.CustomPlayer
com.jubiman.customplayerlib.CustomPlayerTickable
- All Implemented Interfaces:
ITickable
The tickable variant of a CustomPlayer. Ticks are automatically called, no need for patches
-
Field Summary
Fields inherited from class com.jubiman.customplayerlib.CustomPlayer
auth
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
clientTick
(necesse.engine.network.client.Client client) Performs a client tickabstract void
serverTick
(necesse.engine.network.server.Server server) Performs a server tickMethods inherited from class com.jubiman.customplayerlib.CustomPlayer
addSaveData, generatePlayerSave, loadEnter, loadExit
-
Constructor Details
-
CustomPlayerTickable
public CustomPlayerTickable(long auth) Creates new tickable CustomPlayer- Parameters:
auth
- the authentication of the player
-
-
Method Details
-
serverTick
public abstract void serverTick(necesse.engine.network.server.Server server) Performs a server tick- Specified by:
serverTick
in interfaceITickable
- Parameters:
server
- the server to tick on
-
clientTick
public abstract void clientTick(necesse.engine.network.client.Client client) Performs a client tick- Specified by:
clientTick
in interfaceITickable
- Parameters:
client
- the client to tick on
-