use of com.teamwizardry.wizardry.api.capability.player.mana.ManaCapabilityProvider in project Wizardry by TeamWizardry.
the class ModCapabilities method attachEntity.
@SubscribeEvent
public static void attachEntity(AttachCapabilitiesEvent<Entity> e) {
if (e.getObject() instanceof EntityPlayer) {
ManaCapabilityProvider manaCap = new ManaCapabilityProvider(new DefaultManaCapability());
e.addCapability(new ResourceLocation(Wizardry.MODID, "capability_mana"), manaCap);
MiscCapabilityProvider miscCap = new MiscCapabilityProvider(new DefaultMiscCapability());
e.addCapability(new ResourceLocation(Wizardry.MODID, "capability_misc"), miscCap);
}
}
Aggregations