Search in sources :

Example 1 with PlayerSneakStorage

use of com.viaversion.viabackwards.protocol.protocol1_15_2to1_16.storage.PlayerSneakStorage in project ViaBackwards by ViaVersion.

the class Protocol1_15_2To1_16 method init.

@Override
public void init(UserConnection user) {
    if (!user.has(ClientWorld.class)) {
        user.put(new ClientWorld(user));
    }
    user.put(new PlayerSneakStorage());
    user.put(new WorldNameTracker());
    user.addEntityTracker(this.getClass(), new EntityTrackerBase(user, Entity1_16Types.PLAYER, true));
}
Also used : WorldNameTracker(com.viaversion.viabackwards.protocol.protocol1_15_2to1_16.data.WorldNameTracker) PlayerSneakStorage(com.viaversion.viabackwards.protocol.protocol1_15_2to1_16.storage.PlayerSneakStorage) ClientWorld(com.viaversion.viaversion.protocols.protocol1_9_3to1_9_1_2.storage.ClientWorld) EntityTrackerBase(com.viaversion.viaversion.data.entity.EntityTrackerBase)

Aggregations

WorldNameTracker (com.viaversion.viabackwards.protocol.protocol1_15_2to1_16.data.WorldNameTracker)1 PlayerSneakStorage (com.viaversion.viabackwards.protocol.protocol1_15_2to1_16.storage.PlayerSneakStorage)1 EntityTrackerBase (com.viaversion.viaversion.data.entity.EntityTrackerBase)1 ClientWorld (com.viaversion.viaversion.protocols.protocol1_9_3to1_9_1_2.storage.ClientWorld)1