Search in sources :

Example 6 with EntityTrackerBase

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

the class Protocol1_17To1_16_4 method init.

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

Example 7 with EntityTrackerBase

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

the class Protocol1_12_2To1_13 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_13Types.EntityType.PLAYER));
    user.put(new BackwardsBlockStorage());
    user.put(new TabCompleteStorage());
    if (ViaBackwards.getConfig().isFix1_13FacePlayer() && !user.has(PlayerPositionStorage1_13.class)) {
        user.put(new PlayerPositionStorage1_13());
    }
}
Also used : BackwardsBlockStorage(com.viaversion.viabackwards.protocol.protocol1_12_2to1_13.storage.BackwardsBlockStorage) PlayerPositionStorage1_13(com.viaversion.viabackwards.protocol.protocol1_12_2to1_13.storage.PlayerPositionStorage1_13) ClientWorld(com.viaversion.viaversion.protocols.protocol1_9_3to1_9_1_2.storage.ClientWorld) EntityTrackerBase(com.viaversion.viaversion.data.entity.EntityTrackerBase) TabCompleteStorage(com.viaversion.viabackwards.protocol.protocol1_12_2to1_13.storage.TabCompleteStorage)

Example 8 with EntityTrackerBase

use of com.viaversion.viaversion.data.entity.EntityTrackerBase 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)

Example 9 with EntityTrackerBase

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

the class Protocol1_16To1_15_2 method init.

@Override
public void init(UserConnection userConnection) {
    userConnection.addEntityTracker(this.getClass(), new EntityTrackerBase(userConnection, Entity1_16Types.PLAYER));
    userConnection.put(new InventoryTracker1_16());
}
Also used : InventoryTracker1_16(com.viaversion.viaversion.protocols.protocol1_16to1_15_2.storage.InventoryTracker1_16) EntityTrackerBase(com.viaversion.viaversion.data.entity.EntityTrackerBase)

Example 10 with EntityTrackerBase

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

the class Protocol1_18To1_17_1 method init.

@Override
public void init(final UserConnection connection) {
    addEntityTracker(connection, new EntityTrackerBase(connection, Entity1_17Types.PLAYER));
    connection.put(new ChunkLightStorage());
}
Also used : ChunkLightStorage(com.viaversion.viaversion.protocols.protocol1_18to1_17_1.storage.ChunkLightStorage) EntityTrackerBase(com.viaversion.viaversion.data.entity.EntityTrackerBase)

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