use of com.github.dirtpowered.dirtmv.network.versions.Beta17To14.other.PlayerHealthTracker 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());
}
Aggregations