Package org.spout.vanilla.protocol.entity.object

Examples of org.spout.vanilla.protocol.entity.object.ItemEntityProtocol


  private float timeLeft = VanillaConfiguration.ITEM_SPAWN_TIME.getFloat();

  @Override
  public void onAttached() {
    super.onAttached();
    setEntityProtocol(new ItemEntityProtocol());
    PhysicsComponent physics = getOwner().getPhysics();
    physics.activate(1f, new BoxShape(0.27f, 0.27f, 0.27f), false, true);
    if (getAttachedCount() == 1) {
      getOwner().add(Health.class).setSpawnHealth(20);
    }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.protocol.entity.object.ItemEntityProtocol

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.