public void teleportEffect(Entity entity, double destX, double destY, double destZ) {
if (Game.isNotHost(entity.worldObj))
return;
try {
PacketEffect pkt = new PacketEffect(Effect.TELEPORT);
DataOutputStream data = pkt.getOutputStream();
data.writeDouble(entity.posX);
data.writeDouble(entity.posY);
data.writeDouble(entity.posZ);
data.writeDouble(destX);
data.writeDouble(destY);
data.writeDouble(destZ);
pkt.sendPacket(entity.worldObj, entity.posX, entity.posY, entity.posZ);
} catch (IOException ex) {
}
SoundHelper.playSoundAtEntity(entity, "mob.endermen.portal", 0.25F, 1.0F);