Search in sources :

Example 1 with EntityTrackerBase

use of com.viaversion.viaversion.data.entity.EntityTrackerBase in project ViaBackwards by ViaVersion.

the class Protocol1_16_4To1_17 method init.

@Override
public void init(UserConnection user) {
    addEntityTracker(user, new EntityTrackerBase(user, Entity1_17Types.PLAYER));
    user.put(new PingRequests());
}
Also used : PingRequests(com.viaversion.viabackwards.protocol.protocol1_16_4to1_17.storage.PingRequests) EntityTrackerBase(com.viaversion.viaversion.data.entity.EntityTrackerBase)

Example 2 with EntityTrackerBase

use of com.viaversion.viaversion.data.entity.EntityTrackerBase in project ViaBackwards by ViaVersion.

the class Protocol1_14_4To1_15 method init.

@Override
public void init(UserConnection user) {
    user.put(new ImmediateRespawn());
    user.addEntityTracker(getClass(), new EntityTrackerBase(user, Entity1_15Types.PLAYER));
}
Also used : ImmediateRespawn(com.viaversion.viabackwards.protocol.protocol1_14_4to1_15.data.ImmediateRespawn) EntityTrackerBase(com.viaversion.viaversion.data.entity.EntityTrackerBase)

Example 3 with EntityTrackerBase

use of com.viaversion.viaversion.data.entity.EntityTrackerBase in project ViaBackwards by ViaVersion.

the class Protocol1_13_2To1_14 method init.

@Override
public void init(UserConnection user) {
    // Register ClientWorld
    if (!user.has(ClientWorld.class)) {
        user.put(new ClientWorld(user));
    }
    user.addEntityTracker(this.getClass(), new EntityTrackerBase(user, Entity1_14Types.PLAYER, true));
    if (!user.has(ChunkLightStorage.class)) {
        user.put(new ChunkLightStorage(user));
    }
    user.put(new DifficultyStorage(user));
}
Also used : ChunkLightStorage(com.viaversion.viabackwards.protocol.protocol1_13_2to1_14.storage.ChunkLightStorage) DifficultyStorage(com.viaversion.viabackwards.protocol.protocol1_13_2to1_14.storage.DifficultyStorage) ClientWorld(com.viaversion.viaversion.protocols.protocol1_9_3to1_9_1_2.storage.ClientWorld) EntityTrackerBase(com.viaversion.viaversion.data.entity.EntityTrackerBase)

Example 4 with EntityTrackerBase

use of com.viaversion.viaversion.data.entity.EntityTrackerBase in project ViaBackwards by ViaVersion.

the class Protocol1_11_1To1_12 method init.

@Override
public void init(UserConnection user) {
    // Register ClientWorld
    if (!user.has(ClientWorld.class)) {
        user.put(new ClientWorld(user));
    }
    user.addEntityTracker(this.getClass(), new EntityTrackerBase(user, Entity1_12Types.EntityType.PLAYER, true));
    user.put(new ShoulderTracker(user));
}
Also used : ShoulderTracker(com.viaversion.viabackwards.protocol.protocol1_11_1to1_12.data.ShoulderTracker) ClientWorld(com.viaversion.viaversion.protocols.protocol1_9_3to1_9_1_2.storage.ClientWorld) EntityTrackerBase(com.viaversion.viaversion.data.entity.EntityTrackerBase)

Example 5 with EntityTrackerBase

use of com.viaversion.viaversion.data.entity.EntityTrackerBase in project ViaVersion by ViaVersion.

the class Protocol1_13To1_12_2 method init.

@Override
public void init(UserConnection userConnection) {
    userConnection.addEntityTracker(this.getClass(), new EntityTrackerBase(userConnection, Entity1_13Types.EntityType.PLAYER));
    userConnection.put(new TabCompleteTracker());
    if (!userConnection.has(ClientWorld.class))
        userConnection.put(new ClientWorld(userConnection));
    userConnection.put(new BlockStorage());
    if (Via.getConfig().isServersideBlockConnections()) {
        if (Via.getManager().getProviders().get(BlockConnectionProvider.class) instanceof PacketBlockConnectionProvider) {
            userConnection.put(new BlockConnectionStorage());
        }
    }
}
Also used : BlockStorage(com.viaversion.viaversion.protocols.protocol1_13to1_12_2.storage.BlockStorage) PacketBlockConnectionProvider(com.viaversion.viaversion.protocols.protocol1_13to1_12_2.blockconnections.providers.PacketBlockConnectionProvider) BlockConnectionProvider(com.viaversion.viaversion.protocols.protocol1_13to1_12_2.blockconnections.providers.BlockConnectionProvider) PacketBlockConnectionProvider(com.viaversion.viaversion.protocols.protocol1_13to1_12_2.blockconnections.providers.PacketBlockConnectionProvider) TabCompleteTracker(com.viaversion.viaversion.protocols.protocol1_13to1_12_2.storage.TabCompleteTracker) ClientWorld(com.viaversion.viaversion.protocols.protocol1_9_3to1_9_1_2.storage.ClientWorld) EntityTrackerBase(com.viaversion.viaversion.data.entity.EntityTrackerBase) BlockConnectionStorage(com.viaversion.viaversion.protocols.protocol1_13to1_12_2.storage.BlockConnectionStorage)

Aggregations

EntityTrackerBase (com.viaversion.viaversion.data.entity.EntityTrackerBase)10 ClientWorld (com.viaversion.viaversion.protocols.protocol1_9_3to1_9_1_2.storage.ClientWorld)5 ShoulderTracker (com.viaversion.viabackwards.protocol.protocol1_11_1to1_12.data.ShoulderTracker)1 BackwardsBlockStorage (com.viaversion.viabackwards.protocol.protocol1_12_2to1_13.storage.BackwardsBlockStorage)1 PlayerPositionStorage1_13 (com.viaversion.viabackwards.protocol.protocol1_12_2to1_13.storage.PlayerPositionStorage1_13)1 TabCompleteStorage (com.viaversion.viabackwards.protocol.protocol1_12_2to1_13.storage.TabCompleteStorage)1 ChunkLightStorage (com.viaversion.viabackwards.protocol.protocol1_13_2to1_14.storage.ChunkLightStorage)1 DifficultyStorage (com.viaversion.viabackwards.protocol.protocol1_13_2to1_14.storage.DifficultyStorage)1 ImmediateRespawn (com.viaversion.viabackwards.protocol.protocol1_14_4to1_15.data.ImmediateRespawn)1 WorldNameTracker (com.viaversion.viabackwards.protocol.protocol1_15_2to1_16.data.WorldNameTracker)1 PlayerSneakStorage (com.viaversion.viabackwards.protocol.protocol1_15_2to1_16.storage.PlayerSneakStorage)1 PingRequests (com.viaversion.viabackwards.protocol.protocol1_16_4to1_17.storage.PingRequests)1 BlockConnectionProvider (com.viaversion.viaversion.protocols.protocol1_13to1_12_2.blockconnections.providers.BlockConnectionProvider)1 PacketBlockConnectionProvider (com.viaversion.viaversion.protocols.protocol1_13to1_12_2.blockconnections.providers.PacketBlockConnectionProvider)1 BlockConnectionStorage (com.viaversion.viaversion.protocols.protocol1_13to1_12_2.storage.BlockConnectionStorage)1 BlockStorage (com.viaversion.viaversion.protocols.protocol1_13to1_12_2.storage.BlockStorage)1 TabCompleteTracker (com.viaversion.viaversion.protocols.protocol1_13to1_12_2.storage.TabCompleteTracker)1 InventoryTracker1_16 (com.viaversion.viaversion.protocols.protocol1_16to1_15_2.storage.InventoryTracker1_16)1 InventoryAcknowledgements (com.viaversion.viaversion.protocols.protocol1_17to1_16_4.storage.InventoryAcknowledgements)1 ChunkLightStorage (com.viaversion.viaversion.protocols.protocol1_18to1_17_1.storage.ChunkLightStorage)1