/** @param viewDistance */
 private void setDynamicViewDistance(RenderDistance distance) {
   int lastDistance = serverDistance;
   if (distance.getValue() < serverDistance) {
     lastDistance = distance.getValue();
   }
   Reflection.field("e").ofType(int.class).in(this).set(lastDistance);
 }
  /** @param instance */
  public RockyPlayerServerManager(PlayerChunkMap instance) {
    super(Reflection.field("world").ofType(WorldServer.class).in(instance).get(), 3);

    serverDistance = Reflection.field("e").ofType(int.class).in(instance).get();

    Reflection.field("managedPlayers")
        .ofType(List.class)
        .in(this)
        .set(Reflection.field("managedPlayers").ofType(List.class).in(instance).get());
    Reflection.field("c")
        .ofType(LongHashMap.class)
        .in(this)
        .set(Reflection.field("c").ofType(LongHashMap.class).in(instance).get());
    Reflection.field("d")
        .ofType(Queue.class)
        .in(this)
        .set(Reflection.field("d").ofType(Queue.class).in(instance).get());
  }
 private void setRunning(MessageQueue mq) {
   Reflection.field("running").ofType(AtomicBoolean.class).in(mq).get().set(true);
 }
 /**
  * Sets the metadata of the entity
  *
  * @param metadata the metadata of the entity
  */
 public void setMetadata(List<WatchableObject> metadata) {
   Reflection.field("b").ofType(List.class).in(packet).set(metadata);
 }
 /** Gets the data of the entity */
 @SuppressWarnings("unchecked")
 public List<WatchableObject> getMetadata() {
   return (List<WatchableObject>) Reflection.field("b").ofType(List.class).in(packet).get();
 }