Package org.spout.vanilla.data

Examples of org.spout.vanilla.data.ViewDistance


  @Override
  public void handleServer(ServerSession session, PlayerLocaleViewDistanceMessage message) {
    Player player = session.getPlayer();
    Human human = player.get(Human.class);
    if (human != null) {
      ViewDistance distance = ViewDistance.byId(message.getViewDistance());
      human.setViewDistance(distance);
    }
  }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.data.ViewDistance

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.