Search in sources :

Example 6 with FabricVersionProvider

use of com.viaversion.fabric.mc118.providers.FabricVersionProvider 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 7 with FabricVersionProvider

use of com.viaversion.fabric.mc118.providers.FabricVersionProvider 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)7 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