Search in sources :

Example 1 with SmokeParticle

use of cn.nukkit.level.particle.SmokeParticle in project Nukkit by Nukkit.

the class EntityMinecartAbstract method close.

@Override
public void close() {
    super.close();
    if (linkedEntity instanceof Player) {
        linkedEntity.riding = null;
        linkedEntity = null;
    }
    SmokeParticle particle = new SmokeParticle(this);
    level.addParticle(particle);
}
Also used : Player(cn.nukkit.Player) SmokeParticle(cn.nukkit.level.particle.SmokeParticle)

Example 2 with SmokeParticle

use of cn.nukkit.level.particle.SmokeParticle in project Nukkit by Nukkit.

the class EntityBoat method close.

@Override
public void close() {
    super.close();
    if (this.linkedEntity instanceof Player) {
        this.linkedEntity.riding = null;
    }
    SmokeParticle particle = new SmokeParticle(this);
    this.level.addParticle(particle);
}
Also used : Player(cn.nukkit.Player) SmokeParticle(cn.nukkit.level.particle.SmokeParticle)

Aggregations

Player (cn.nukkit.Player)2 SmokeParticle (cn.nukkit.level.particle.SmokeParticle)2