Package org.spout.vanilla.component.entity.misc

Examples of org.spout.vanilla.component.entity.misc.Sleep.sleep()


    if (isOccupied(head)) {
      player.sendMessage(OCCUPIED_MESSAGE);
      return;
    }

    sleep.sleep(head);
  }

  @Override
  public void initialize() {
    this.getDrops().clear();
View Full Code Here


    Entity entity = world.getEntity(message.getEntityId());

    Block block = world.getBlock(message.getX(), message.getY(), message.getZ());

    Sleep sleep = entity.get(Sleep.class);
    sleep.sleep(block);
  }
}
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.