HyCodeYourTale
classpublicabstractPriority 3

SteeringForceWithGroup

com.hypixel.hytale.server.npc.movement.steeringforces.SteeringForceWithGroup

implements SteeringForce

5

Methods

5

Public Methods

1

Fields

1

Constructors

Constructors

public
SteeringForceWithGroup()

Methods

Public Methods (5)

public
void add(Ref<EntityStore> var1, CommandBuffer<EntityStore> var2)
public
boolean compute(Steering output)
@Override
public
void reset()
public
void setComponentSelector(Vector3d componentSelector)
public
void setSelf(Ref<EntityStore> ref, Vector3d position, ComponentAccessor<EntityStore> componentAccessor)

Fields

Protected Fields (1)

protectedVector3d componentSelector

Inheritance

Parent
Current
Interface
Child

Use mouse wheel to zoom, drag to pan. Click nodes to navigate.

Related Classes

Source Code

package com.hypixel.hytale.server.npc.movement.steeringforces;

import com.hypixel.hytale.component.CommandBuffer;
import com.hypixel.hytale.component.ComponentAccessor;
import com.hypixel.hytale.component.Ref;
import com.hypixel.hytale.math.vector.Vector3d;
import com.hypixel.hytale.server.core.universe.world.storage.EntityStore;
import com.hypixel.hytale.server.npc.movement.Steering;
import javax.annotation.Nonnull;

public abstract class SteeringForceWithGroup implements SteeringForce {
   @Nonnull
   protected final Vector3d selfPosition = new Vector3d();
   protected Vector3d componentSelector;

   public SteeringForceWithGroup() {
   }

   public void setSelf(@Nonnull Ref<EntityStore> ref, @Nonnull Vector3d position, @Nonnull ComponentAccessor<EntityStore> componentAccessor) {
      this.selfPosition.assign(position.getX(), position.getY(), position.getZ());
   }

   public void setComponentSelector(Vector3d componentSelector) {
      this.componentSelector = componentSelector;
   }

   public abstract void reset();

   public abstract void add(@Nonnull Ref<EntityStore> var1, @Nonnull CommandBuffer<EntityStore> var2);

   @Override
   public boolean compute(Steering output) {
      return true;
   }
}