BodyMotion interface

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

Файл: com/hypixel/hytale/server/npc/instructions/BodyMotion.java

extends: Motion

Методы (1)

МодификаторыВозвратСигнатура
default double getDesiredTargetDistancedouble getDesiredTargetDistance()

Исходный код

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

class="kw">import com.hypixel.hytale.component.Ref;
class="kw">import com.hypixel.hytale.server.core.universe.world.storage.EntityStore;
class="kw">import com.hypixel.hytale.server.npc.movement.constraints.RelaxedConstraint;
class="kw">import java.util.EnumSet;
class="kw">import javax.annotation.Nonnull;
class="kw">import javax.annotation.Nullable;

class="kw">public class="kw">interface BodyMotion class="kw">extends Motion {
   @Nullable
   class="kw">default BodyMotion getSteeringMotion() {
      class="kw">return this;
   }

   class="kw">default double getDesiredTargetDistance() {
      class="kw">return Double.MAX_VALUE;
   }

   @Nullable
   class="kw">default Ref<EntityStore> getDesiredTargetEntity() {
      class="kw">return null;
   }

   @Nullable
   class="kw">default <T class="kw">extends BodyMotion> T findWrappedBodyMotion(@Nonnull Class<T> var1) {
      class="kw">return var1.isInstance(this) ? var1.cast(this) : null;
   }

   @Nullable
   class="kw">default EnumSet<RelaxedConstraint> getRelaxedConstraints() {
      class="kw">return null;
   }
}