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);
}
}
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);
}
}
Aggregations