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