Search in sources :

Example 1 with IWailaRegistrar

use of mcp.mobius.waila.api.IWailaRegistrar 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 IWailaRegistrar

use of mcp.mobius.waila.api.IWailaRegistrar 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)2 IWailaRegistrar (mcp.mobius.waila.api.IWailaRegistrar)2