use of com.teamwizardry.wizardry.api.capability.player.mana.DefaultManaCapability 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);
}
}
use of com.teamwizardry.wizardry.api.capability.player.mana.DefaultManaCapability in project Wizardry by TeamWizardry.
the class ModCapabilities method preInit.
public static void preInit() {
CapabilityManager.INSTANCE.register(IManaCapability.class, new ManaCapabilityStorage(), DefaultManaCapability::new);
CapabilityManager.INSTANCE.register(IMiscCapability.class, new MiscCapabilityStorage(), DefaultMiscCapability::new);
}
Aggregations