Search in sources :

Example 1 with UpdateTask

use of com.github.dirtpowered.dirtmv.network.versions.Release39To29.sound.UpdateTask in project DirtMultiversion by DirtPowered.

the class ProtocolRelease39To29 method onConnect.

@Override
public void onConnect(ServerSession session) {
    ProtocolStorage storage = session.getStorage();
    storage.set(UpdateTask.class, new UpdateTask(session));
    storage.set(OpenChestTracker.class, new OpenChestTracker());
    if (!storage.hasObject(BlockStorage.class)) {
        storage.set(BlockStorage.class, new BlockStorage(MinecraftVersion.R1_2_4));
    }
    if (!storage.hasObject(EntityTracker.class)) {
        storage.set(EntityTracker.class, new EntityTracker());
    }
}
Also used : UpdateTask(com.github.dirtpowered.dirtmv.network.versions.Release39To29.sound.UpdateTask) BlockStorage(com.github.dirtpowered.dirtmv.network.versions.Beta17To14.storage.BlockStorage) ProtocolStorage(com.github.dirtpowered.dirtmv.data.user.ProtocolStorage) EntityTracker(com.github.dirtpowered.dirtmv.network.versions.Release39To29.entity.EntityTracker) OpenChestTracker(com.github.dirtpowered.dirtmv.network.versions.Release39To29.sound.OpenChestTracker)

Aggregations

ProtocolStorage (com.github.dirtpowered.dirtmv.data.user.ProtocolStorage)1 BlockStorage (com.github.dirtpowered.dirtmv.network.versions.Beta17To14.storage.BlockStorage)1 EntityTracker (com.github.dirtpowered.dirtmv.network.versions.Release39To29.entity.EntityTracker)1 OpenChestTracker (com.github.dirtpowered.dirtmv.network.versions.Release39To29.sound.OpenChestTracker)1 UpdateTask (com.github.dirtpowered.dirtmv.network.versions.Release39To29.sound.UpdateTask)1