Search in sources :

Example 1 with VRHandItemProvider

use of com.viaversion.fabric.mc115.providers.VRHandItemProvider 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.mc18.providers.FabricVersionProvider) VRHandItemProvider(com.viaversion.fabric.mc18.providers.VRHandItemProvider)

Example 2 with VRHandItemProvider

use of com.viaversion.fabric.mc115.providers.VRHandItemProvider 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.mc117.providers.FabricVersionProvider) VRHandItemProvider(com.viaversion.fabric.mc117.providers.VRHandItemProvider)

Example 3 with VRHandItemProvider

use of com.viaversion.fabric.mc115.providers.VRHandItemProvider 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.mc114.providers.FabricVersionProvider) VRHandItemProvider(com.viaversion.fabric.mc114.providers.VRHandItemProvider)

Example 4 with VRHandItemProvider

use of com.viaversion.fabric.mc115.providers.VRHandItemProvider 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.mc116.providers.FabricVersionProvider) VRHandItemProvider(com.viaversion.fabric.mc116.providers.VRHandItemProvider)

Example 5 with VRHandItemProvider

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

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