use of jackiecrazy.wardance.capability.skill.CasterData in project WarDance by Jackiecrazy.
the class EntityHandler method caps.
@SubscribeEvent
public static void caps(AttachCapabilitiesEvent<Entity> e) {
if (e.getObject() instanceof LivingEntity) {
e.addCapability(new ResourceLocation("wardance:combatinfo"), new CombatData((LivingEntity) e.getObject()));
e.addCapability(new ResourceLocation("wardance:statuseffects"), new Marks((LivingEntity) e.getObject()));
if (e.getObject() instanceof PlayerEntity)
e.addCapability(new ResourceLocation("wardance:casterinfo"), new CasterData((LivingEntity) e.getObject()));
}
}
Aggregations