Package com.bergerkiller.bukkit.tc.utils

Examples of com.bergerkiller.bukkit.tc.utils.Effect.play()


    Effect eff = parse(info);
    if (info.isAction(SignActionType.MEMBER_MOVE)) {
      if (move) {
        if (info.isTrainSign()) {
          for (MinecartMember<?> member : info.getGroup()) {
            eff.play(member.getEntity().getLocation());
          }
        } else if (info.isCartSign()) {
          eff.play(info.getMember().getEntity().getLocation());
        }
      }
View Full Code Here


        if (info.isTrainSign()) {
          for (MinecartMember<?> member : info.getGroup()) {
            eff.play(member.getEntity().getLocation());
          }
        } else if (info.isCartSign()) {
          eff.play(info.getMember().getEntity().getLocation());
        }
      }
      return;
    }
    if (info.isTrainSign() && info.isAction(SignActionType.REDSTONE_ON, SignActionType.GROUP_ENTER) && info.hasGroup()) {
View Full Code Here

      }
      return;
    }
    if (info.isTrainSign() && info.isAction(SignActionType.REDSTONE_ON, SignActionType.GROUP_ENTER) && info.hasGroup()) {
      for (MinecartMember<?> member : info.getGroup()) {
        eff.play(member.getEntity().getLocation());
      }
    } else if (info.isCartSign() && info.isAction(SignActionType.REDSTONE_ON, SignActionType.MEMBER_ENTER) && info.hasMember()) {
      eff.play(info.getMember().getEntity().getLocation());
    } else if (info.isRCSign() && info.isAction(SignActionType.REDSTONE_ON)) {
      for (MinecartGroup group : info.getRCTrainGroups()) {
View Full Code Here

    if (info.isTrainSign() && info.isAction(SignActionType.REDSTONE_ON, SignActionType.GROUP_ENTER) && info.hasGroup()) {
      for (MinecartMember<?> member : info.getGroup()) {
        eff.play(member.getEntity().getLocation());
      }
    } else if (info.isCartSign() && info.isAction(SignActionType.REDSTONE_ON, SignActionType.MEMBER_ENTER) && info.hasMember()) {
      eff.play(info.getMember().getEntity().getLocation());
    } else if (info.isRCSign() && info.isAction(SignActionType.REDSTONE_ON)) {
      for (MinecartGroup group : info.getRCTrainGroups()) {
        for (MinecartMember<?> member : group) {
          eff.play(member.getEntity().getLocation());
        }
View Full Code Here

    } else if (info.isCartSign() && info.isAction(SignActionType.REDSTONE_ON, SignActionType.MEMBER_ENTER) && info.hasMember()) {
      eff.play(info.getMember().getEntity().getLocation());
    } else if (info.isRCSign() && info.isAction(SignActionType.REDSTONE_ON)) {
      for (MinecartGroup group : info.getRCTrainGroups()) {
        for (MinecartMember<?> member : group) {
          eff.play(member.getEntity().getLocation());
        }
      }
    } else if (info.isAction(SignActionType.REDSTONE_ON)) {
      if (info.hasRails()) {
        eff.play(info.getCenterLocation());
View Full Code Here

          eff.play(member.getEntity().getLocation());
        }
      }
    } else if (info.isAction(SignActionType.REDSTONE_ON)) {
      if (info.hasRails()) {
        eff.play(info.getCenterLocation());
      } else {
        eff.play(info.getLocation().add(0.0, 2.0, 0.0));
      }
    }
  }
View Full Code Here

      }
    } else if (info.isAction(SignActionType.REDSTONE_ON)) {
      if (info.hasRails()) {
        eff.play(info.getCenterLocation());
      } else {
        eff.play(info.getLocation().add(0.0, 2.0, 0.0));
      }
    }
  }

  @Override
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.