Class CustomPlayersHandlerTickable<T extends CustomPlayerTickable>

java.lang.Object
com.jubiman.customplayerlib.CustomPlayersHandler<T>
com.jubiman.customplayerlib.CustomPlayersHandlerTickable<T>
Type Parameters:
T - your CustomPlayerTickable class
All Implemented Interfaces:
ITickable

public class CustomPlayersHandlerTickable<T extends CustomPlayerTickable> extends CustomPlayersHandler<T> implements ITickable
A tickable variant of the CustomPlayersHandler
  • Constructor Details

    • CustomPlayersHandlerTickable

      public CustomPlayersHandlerTickable(Class<T> clazz, String name)
      Constructs the tickable storage class for custom players
      Parameters:
      clazz - the class extending CustomPlayer
      name - the name of the class, used for creating a save component
  • Method Details

    • serverTick

      public void serverTick(necesse.engine.network.server.Server server)
      Server ticks all players in the userMap
      Specified by:
      serverTick in interface ITickable
      Parameters:
      server - the server to perform the tick on
    • clientTick

      public void clientTick(necesse.engine.network.client.Client client)
      Client ticks all players in the userMap
      Specified by:
      clientTick in interface ITickable
      Parameters:
      client - the client to perform the tick on