Search in sources :

Example 1 with IWailaDataProvider

use of mcp.mobius.waila.api.IWailaDataProvider in project MorePlanets by SteveKunG.

the class WailaUtil method register.

public static void register(Class<?> clazz, boolean nbt, boolean head, boolean body, boolean tail, boolean stack) {
    IWailaRegistrar register = WailaUtil.register;
    IWailaDataProvider dataProvider = WailaUtil.dataProvider;
    if (nbt) {
        register.registerNBTProvider(dataProvider, clazz);
    }
    if (head) {
        register.registerHeadProvider(dataProvider, clazz);
    }
    if (body) {
        register.registerBodyProvider(dataProvider, clazz);
    }
    if (tail) {
        register.registerTailProvider(dataProvider, clazz);
    }
    if (stack) {
        register.registerStackProvider(dataProvider, clazz);
    }
}
Also used : IWailaRegistrar(mcp.mobius.waila.api.IWailaRegistrar) IWailaDataProvider(mcp.mobius.waila.api.IWailaDataProvider)

Example 2 with IWailaDataProvider

use of mcp.mobius.waila.api.IWailaDataProvider in project AgriCraft by AgriCraft.

the class WailaPlugin method initWaila.

public static void initWaila(IWailaRegistrar registry) {
    //All blocks.
    IWailaDataProvider agriProvider = new AgriWailaAdapter();
    registry.registerStackProvider(agriProvider, BlockBase.class);
    registry.registerBodyProvider(agriProvider, BlockBase.class);
}
Also used : IWailaDataProvider(mcp.mobius.waila.api.IWailaDataProvider)

Example 3 with IWailaDataProvider

use of mcp.mobius.waila.api.IWailaDataProvider in project MorePlanets by SteveKunG.

the class WailaUtils method register.

public static void register(Class<?> clazz, boolean nbt, boolean head, boolean body, boolean tail, boolean stack) {
    IWailaRegistrar register = WailaUtils.register;
    IWailaDataProvider dataProvider = WailaUtils.dataProvider;
    if (nbt) {
        register.registerNBTProvider(dataProvider, clazz);
    }
    if (head) {
        register.registerHeadProvider(dataProvider, clazz);
    }
    if (body) {
        register.registerBodyProvider(dataProvider, clazz);
    }
    if (tail) {
        register.registerTailProvider(dataProvider, clazz);
    }
    if (stack) {
        register.registerStackProvider(dataProvider, clazz);
    }
}
Also used : IWailaRegistrar(mcp.mobius.waila.api.IWailaRegistrar) IWailaDataProvider(mcp.mobius.waila.api.IWailaDataProvider)

Aggregations

IWailaDataProvider (mcp.mobius.waila.api.IWailaDataProvider)3 IWailaRegistrar (mcp.mobius.waila.api.IWailaRegistrar)2