use of am2.api.spell.component.interfaces.IRitualInteraction in project ArsMagica2 by Mithion.
the class CompendiumEntryRitual method getCompendiumGui.
@Override
@SideOnly(Side.CLIENT)
protected GuiArcaneCompendium getCompendiumGui(String searchID, int meta) {
if (this.ritualShape != null) {
try {
Field f = RitualShapeHelper.class.getField(ritualShape);
MultiblockStructureDefinition def = (MultiblockStructureDefinition) f.get(RitualShapeHelper.instance);
ISkillTreeEntry entry = SkillManager.instance.getSkill(ritualController);
if (entry instanceof IRitualInteraction) {
IRitualInteraction controller = (IRitualInteraction) entry;
return new GuiArcaneCompendium(searchID, def, controller);
}
} catch (Throwable e) {
e.printStackTrace();
}
}
return new GuiArcaneCompendium(searchID);
}
Aggregations