Class BodyMotionTeleport
java.lang.Object
com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
com.hypixel.hytale.server.npc.corecomponents.MotionBase
com.hypixel.hytale.server.npc.corecomponents.BodyMotionBase
com.hypixel.hytale.server.npc.corecomponents.movement.BodyMotionTeleport
- All Implemented Interfaces:
BodyMotion,Motion,RoleStateChange,IAnnotatedComponent
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final floatprotected static final ComponentType<EntityStore, BoundingBox> protected doubleprotected final Vector3dstatic final intprotected final doubleprotected final doublestatic final intprotected final doubleprotected final Vector3dprotected final BodyMotionTeleport.Orientationprotected final Vector3dstatic final doubleprotected static final ComponentType<EntityStore, TransformComponent> protected intFields inherited from class com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
index, parent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(Ref<EntityStore> ref, Role role, ComponentAccessor<EntityStore> componentAccessor) booleancomputeSteering(Ref<EntityStore> ref, Role role, InfoProvider sensorInfo, double dt, Steering desiredSteering, ComponentAccessor<EntityStore> componentAccessor) protected booleantickCooldown(double dt) Methods inherited from class com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
getIndex, getInfo, getParent, setContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.server.npc.instructions.BodyMotion
getSteeringMotionMethods inherited from interface com.hypixel.hytale.server.npc.util.IAnnotatedComponent
getBreadCrumbs, getBreadCrumbs, getIndex, getInfo, getLabel, getParent, setContextMethods inherited from interface com.hypixel.hytale.server.npc.instructions.Motion
deactivate, preComputeSteeringMethods inherited from interface com.hypixel.hytale.server.npc.instructions.RoleStateChange
loaded, motionControllerChanged, registerWithSupport, removed, spawned, teleported, unloaded
-
Field Details
-
MAX_TRIES
public static final int MAX_TRIES- See Also:
-
MIN_MOVE_CHANGE
public static final int MIN_MOVE_CHANGE- See Also:
-
TELEPORT_COOLDOWN
public static final double TELEPORT_COOLDOWN- See Also:
-
TRANSFORM_COMPONENT_TYPE
-
BOUNDING_BOX_COMPONENT_TYPE
-
minOffset
protected final double minOffset -
maxOffset
protected final double maxOffset -
maxYOffset
protected final double maxYOffset -
angle
protected final float angle -
orientation
-
target
-
offsetVector
-
lastTriedTarget
-
tries
protected int tries -
cooldown
protected double cooldown
-
-
Constructor Details
-
BodyMotionTeleport
-
-
Method Details
-
activate
public void activate(@Nonnull Ref<EntityStore> ref, @Nonnull Role role, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
computeSteering
public boolean computeSteering(@Nonnull Ref<EntityStore> ref, @Nonnull Role role, @Nullable InfoProvider sensorInfo, double dt, @Nonnull Steering desiredSteering, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
tickCooldown
protected boolean tickCooldown(double dt)
-