Well but i cant,
@SubscribeEvent
public void entitySpawned(EntityJoinWorldEvent event) {
Entity entity = event.getEntity();
if (MonsterConfig.isEnhancedMob(entity.getDisplayName().getUnformattedText()) && !entity.isDead)
{
//Add potion effect to entity here
}
}
This is my event currently, i have no idea how to convert the entity to a entitylivingbase.
No idea what that means, i already tried this:
EntityLivingBase entityLivingBase = (Entity) entity;