Package org.spout.api.exception

Examples of org.spout.api.exception.InvalidControllerException


  private Point point;

  public PlayerRespawnEvent(Entity e, Point point) {
    super(e, point);
    if (e.get(Human.class) == null) {
      throw new InvalidControllerException();
    }
    this.point = point;
  }
View Full Code Here


  private int data = 15; // default to white wool

  public SheepWoolEvent(Entity e, SheepWoolEventType type) {
    super(e);
    if (e.get(Sheep.class) == null) {
      throw new InvalidControllerException();
    }
    this.type = type;
  }
View Full Code Here

  private boolean showEffect;

  public XPBottleEvent(Entity e, Cause<?> cause, int experience, boolean showEffect) throws InvalidControllerException {
    super(e, cause);
    if (e.get(XPBottle.class) == null) {
      throw new InvalidControllerException();
    }
    this.experience = experience;
    this.showEffect = showEffect;
  }
View Full Code Here

  private int amount, size;

  public SlimeSplitEvent(Entity e) throws InvalidControllerException {
    super(e);
    if (e.get(Slime.class) == null) {
      throw new InvalidControllerException();
    }
    amount = 0;
    size = 0;
  }
View Full Code Here

  private ItemStack itemStack;

  public SheepShearedEvent(Entity sheared, Entity shearer, ItemStack itemStack) {
    super(sheared);
    if (sheared.get(Sheep.class) == null) {
      throw new InvalidControllerException();
    }
    this.itemStack = itemStack;
  }
View Full Code Here

  private Potion potion;

  public PotionSplashEvent(Entity e, Cause<?> cause, Map<Entity, Double> entitiesAffected) throws InvalidControllerException {
    super(e, cause);
    if (e.get(Potion.class) == null) {
      throw new InvalidControllerException();
    }
    this.entitiesAffected = entitiesAffected;
    potion = e.get(Potion.class);
  }
View Full Code Here

TOP

Related Classes of org.spout.api.exception.InvalidControllerException

Copyright © 2018 www.massapicom. 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.