Search in sources :

Example 6 with BungeeMovementTransmitter

use of com.viaversion.viaversion.bungee.providers.BungeeMovementTransmitter in project LiquidBouncePlus by WYSI-Foundation.

the class ProviderLoader method load.

@Override
public void load() {
    Via.getManager().getProviders().use(MovementTransmitterProvider.class, new BungeeMovementTransmitter());
    Via.getManager().getProviders().use(VersionProvider.class, new BaseVersionProvider() {

        @Override
        public int getClosestServerProtocol(UserConnection connection) throws Exception {
            if (connection.isClientSide())
                return ViaForge.getInstance().getVersion();
            return super.getClosestServerProtocol(connection);
        }
    });
}
Also used : BungeeMovementTransmitter(com.viaversion.viaversion.bungee.providers.BungeeMovementTransmitter) UserConnection(com.viaversion.viaversion.api.connection.UserConnection) BaseVersionProvider(com.viaversion.viaversion.protocols.base.BaseVersionProvider)

Example 7 with BungeeMovementTransmitter

use of com.viaversion.viaversion.bungee.providers.BungeeMovementTransmitter in project ViaFabric by ViaVersion.

the class VFLoader method load.

@Override
public void load() {
    Via.getManager().getProviders().use(MovementTransmitterProvider.class, new BungeeMovementTransmitter());
    Via.getManager().getProviders().use(VersionProvider.class, new FabricVersionProvider());
    if (Via.getPlatform().getConf().isItemCache()) {
        VRHandItemProvider handProvider = new VRHandItemProvider();
        if (FabricLoader.getInstance().getEnvironmentType() == EnvType.CLIENT) {
            handProvider.registerClientTick();
        }
        handProvider.registerServerTick();
        Via.getManager().getProviders().use(HandItemProvider.class, handProvider);
    }
}
Also used : BungeeMovementTransmitter(com.viaversion.viaversion.bungee.providers.BungeeMovementTransmitter) FabricVersionProvider(com.viaversion.fabric.mc115.providers.FabricVersionProvider) VRHandItemProvider(com.viaversion.fabric.mc115.providers.VRHandItemProvider)

Example 8 with BungeeMovementTransmitter

use of com.viaversion.viaversion.bungee.providers.BungeeMovementTransmitter in project ViaFabric by ViaVersion.

the class VFLoader method load.

@Override
public void load() {
    Via.getManager().getProviders().use(MovementTransmitterProvider.class, new BungeeMovementTransmitter());
    Via.getManager().getProviders().use(VersionProvider.class, new FabricVersionProvider());
    if (Via.getPlatform().getConf().isItemCache()) {
        VRHandItemProvider handProvider = new VRHandItemProvider();
        if (FabricLoader.getInstance().getEnvironmentType() == EnvType.CLIENT) {
            handProvider.registerClientTick();
        }
        handProvider.registerServerTick();
        Via.getManager().getProviders().use(HandItemProvider.class, handProvider);
    }
}
Also used : BungeeMovementTransmitter(com.viaversion.viaversion.bungee.providers.BungeeMovementTransmitter) FabricVersionProvider(com.viaversion.fabric.mc118.providers.FabricVersionProvider) VRHandItemProvider(com.viaversion.fabric.mc118.providers.VRHandItemProvider)

Example 9 with BungeeMovementTransmitter

use of com.viaversion.viaversion.bungee.providers.BungeeMovementTransmitter in project ViaFabric by ViaVersion.

the class VFLoader method load.

@Override
public void load() {
    Via.getManager().getProviders().use(MovementTransmitterProvider.class, new BungeeMovementTransmitter());
    Via.getManager().getProviders().use(VersionProvider.class, new FabricVersionProvider());
    if (Via.getPlatform().getConf().isItemCache()) {
        VRHandItemProvider handProvider = new VRHandItemProvider();
        if (FabricLoader.getInstance().getEnvironmentType() == EnvType.CLIENT) {
            handProvider.registerClientTick();
        }
        handProvider.registerServerTick();
        Via.getManager().getProviders().use(HandItemProvider.class, handProvider);
    }
}
Also used : BungeeMovementTransmitter(com.viaversion.viaversion.bungee.providers.BungeeMovementTransmitter) FabricVersionProvider(com.viaversion.fabric.mc119.providers.FabricVersionProvider) VRHandItemProvider(com.viaversion.fabric.mc119.providers.VRHandItemProvider)

Aggregations

BungeeMovementTransmitter (com.viaversion.viaversion.bungee.providers.BungeeMovementTransmitter)9 FabricVersionProvider (com.viaversion.fabric.mc114.providers.FabricVersionProvider)1 VRHandItemProvider (com.viaversion.fabric.mc114.providers.VRHandItemProvider)1 FabricVersionProvider (com.viaversion.fabric.mc115.providers.FabricVersionProvider)1 VRHandItemProvider (com.viaversion.fabric.mc115.providers.VRHandItemProvider)1 FabricVersionProvider (com.viaversion.fabric.mc116.providers.FabricVersionProvider)1 VRHandItemProvider (com.viaversion.fabric.mc116.providers.VRHandItemProvider)1 FabricVersionProvider (com.viaversion.fabric.mc117.providers.FabricVersionProvider)1 VRHandItemProvider (com.viaversion.fabric.mc117.providers.VRHandItemProvider)1 FabricVersionProvider (com.viaversion.fabric.mc118.providers.FabricVersionProvider)1 VRHandItemProvider (com.viaversion.fabric.mc118.providers.VRHandItemProvider)1 FabricVersionProvider (com.viaversion.fabric.mc119.providers.FabricVersionProvider)1 VRHandItemProvider (com.viaversion.fabric.mc119.providers.VRHandItemProvider)1 FabricVersionProvider (com.viaversion.fabric.mc18.providers.FabricVersionProvider)1 VRHandItemProvider (com.viaversion.fabric.mc18.providers.VRHandItemProvider)1 UserConnection (com.viaversion.viaversion.api.connection.UserConnection)1 BungeeServerHandler (com.viaversion.viaversion.bungee.handlers.BungeeServerHandler)1 ElytraPatch (com.viaversion.viaversion.bungee.listeners.ElytraPatch)1 UpdateListener (com.viaversion.viaversion.bungee.listeners.UpdateListener)1 BungeeBossBarProvider (com.viaversion.viaversion.bungee.providers.BungeeBossBarProvider)1