Package org.spout.vanilla.event.entity

Examples of org.spout.vanilla.event.entity.SheepShearedEvent


        return;
      }
      short col = sheep.getColor().getData();
      ItemStack itemStack = new ItemStack(VanillaMaterials.WOOL, col, GenericMath.getRandom().nextInt(3) + 1);

      SheepShearedEvent event = VanillaPlugin.getInstance().getEngine().getEventManager().callEvent(new SheepShearedEvent(other, entity, itemStack));

      if (event.isCancelled()) {
        return;
      }

      sheep.setSheared(true);

      Item.dropNaturally(other.getPhysics().getPosition(), event.getItemStack());
    }
  }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.event.entity.SheepShearedEvent

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.