use of com.aether.entities.util.AetherPoisonMovement in project Paradise-Lost by devs-immortal.
the class PoisonDartEntity method onHit.
@Override
protected void onHit(LivingEntity entityIn) {
super.onHit(entityIn);
if (entityIn instanceof ServerPlayerEntity) {
// AetherAPI.get((PlayerEntity) entityIn).inflictPoison(500);
PacketByteBuf byteBuf = new PacketByteBuf(Unpooled.buffer());
byteBuf.writeInt(500);
((ServerPlayerEntity) entityIn).networkHandler.sendPacket(new CustomPayloadC2SPacket(Aether.locate("poison"), byteBuf));
} else {
this.victim = entityIn;
this.poison = new AetherPoisonMovement(this.victim);
this.poison.inflictPoison(500);
this.removed = false;
}
}
Aggregations