Search in sources :

Example 1 with BlockConnectionStorage

use of com.viaversion.viaversion.protocols.protocol1_13to1_12_2.storage.BlockConnectionStorage 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)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 ClientWorld (com.viaversion.viaversion.protocols.protocol1_9_3to1_9_1_2.storage.ClientWorld)1