Ejemplo n.º 1
0
 @Override
 public String toString() {
   String ret = type.toString();
   // TODO: Will data ever be null, or will it just be 0?
   if (data != null) ret += "@" + data.get(type);
   return ret;
 }
  private void spawnParticle(Game game, Player player, String effect) {
    for (Effect e : Effect.values()) {
      if (e.toString().equals(effect)) {
        player.getWorld().playEffect(player.getLocation(), e, 0);
        return;
      }
    }

    DvZPackets.sendParticles(player.getLocation(), effect, 0.3f, 0.3f, 0.5f, 5, 32);
  }