Search in sources :

Example 1 with KeepAliveTask

use of com.github.dirtpowered.dirtmv.network.versions.Beta17To14.other.KeepAliveTask in project DirtMultiversion by DirtPowered.

the class ProtocolBeta17to14 method onConnect.

@Override
public void onConnect(ServerSession session) {
    ProtocolStorage storage = session.getStorage();
    storage.set(BlockStorage.class, new BlockStorage(MinecraftVersion.B1_7_3));
    storage.set(PlayerTabListCache.class, new PlayerTabListCache());
    storage.set(KeepAliveTask.class, new KeepAliveTask(session));
    storage.set(PlayerHealthTracker.class, new PlayerHealthTracker());
    session.broadcastPacket(createTabEntryPacket(session.getUserData().getUsername(), true), getFrom());
}
Also used : BlockStorage(com.github.dirtpowered.dirtmv.network.versions.Beta17To14.storage.BlockStorage) ProtocolStorage(com.github.dirtpowered.dirtmv.data.user.ProtocolStorage) KeepAliveTask(com.github.dirtpowered.dirtmv.network.versions.Beta17To14.other.KeepAliveTask) PlayerHealthTracker(com.github.dirtpowered.dirtmv.network.versions.Beta17To14.other.PlayerHealthTracker)

Aggregations

ProtocolStorage (com.github.dirtpowered.dirtmv.data.user.ProtocolStorage)1 KeepAliveTask (com.github.dirtpowered.dirtmv.network.versions.Beta17To14.other.KeepAliveTask)1 PlayerHealthTracker (com.github.dirtpowered.dirtmv.network.versions.Beta17To14.other.PlayerHealthTracker)1 BlockStorage (com.github.dirtpowered.dirtmv.network.versions.Beta17To14.storage.BlockStorage)1