Search in sources :

Example 1 with EntityFlyingHeart

use of uk.co.wehavecookies56.kk.common.entity.EntityFlyingHeart in project Kingdom-Keys-Re-Coded by Wehavecookies56.

the class BaseEntityHeartless method onDeath.

@Override
public void onDeath(DamageSource cause) {
    super.onDeath(cause);
    if (this instanceof IKHMob) {
        if (((IKHMob) this).getType() == MobType.HEARTLESS_EMBLEM) {
            if (!world.isRemote) {
                EntityFlyingHeart heart = new EntityFlyingHeart(this.world);
                heart.setPosition(this.posX, this.posY + 1, this.posZ);
                world.spawnEntity(heart);
            }
        }
    }
}
Also used : EntityFlyingHeart(uk.co.wehavecookies56.kk.common.entity.EntityFlyingHeart)

Aggregations

EntityFlyingHeart (uk.co.wehavecookies56.kk.common.entity.EntityFlyingHeart)1