PathProvider class

Пакет: com.hypixel.hytale.server.npc.sensorinfo

Файл: com/hypixel/hytale/server/npc/sensorinfo/PathProvider.java

implements: IPathProvider

Методы (1)

МодификаторыВозвратСигнатура
public void setPathvoid setPath(IPath<? extends IPathWaypoint> var1)

Исходный код

Показать/скрыть
class="kw">package com.hypixel.hytale.server.npc.sensorinfo;

class="kw">import com.hypixel.hytale.server.core.universe.world.path.IPath;
class="kw">import com.hypixel.hytale.server.core.universe.world.path.IPathWaypoint;
class="kw">import javax.annotation.Nullable;

class="kw">public class PathProvider class="kw">implements IPathProvider {
   @Nullable
   class="kw">private IPath<? class="kw">extends IPathWaypoint> path;
   class="kw">private boolean isValid;

   class="kw">public PathProvider() {
   }

   class="kw">public void setPath(IPath<? class="kw">extends IPathWaypoint> var1) {
      this.path = var1;
      this.isValid = true;
   }

   @Override
   class="kw">public void clear() {
      this.path = null;
      this.isValid = false;
   }

   @Override
   class="kw">public boolean hasPath() {
      class="kw">return this.isValid;
   }

   @Nullable
   @Override
   class="kw">public IPath<? class="kw">extends IPathWaypoint> getPath() {
      class="kw">return this.path;
   }
}