public class ActionSetLeashPosition extends ActionBase
Class ActionSetLeashPosition. Provides actionsetleashposition functionality for the Hytale server.
java.lang.Object > ActionBase > ActionSetLeashPosition
Field Summary
targetRef
final
Ref
targetRef
Field targetRef.
selfNpcComponent
final
NPCEntity
selfNpcComponent
Field selfNpcComponent.
entityTransformComponent
final
TransformComponent
entityTransformComponent
Field entityTransformComponent.
entityBodyRotation
final
Vector3f
entityBodyRotation
Field entityBodyRotation.
Method Detail
ActionSetLeashPosition
public
public
ActionSetLeashPosition
(@Nonnull final BuilderActionSetLeashPosition builderActionSetLeashPosition)
Method ActionSetLeashPosition.
- Parameters:
@Nonnull final BuilderActionSetLeashPositionbuilderActionSetLeashPosition
execute
public
boolean
execute
(@Nonnull final Ref ref, @Nonnull final Role role, @Nullable final InfoProvider sensorInfo, final double dt, @Nonnull final Store store)
Method execute.
- Parameters:
@Nonnull final Refref@Nonnull final Rolerole@Nullable final InfoProvidersensorInfofinal doubledt@Nonnull final Storestore
if
public
else
if
(this.toTarget && sensorInfo != null)
Method if.
- Parameters:
this.toTarget && sensorInfo !=null
setLeashPosition
static
void
setLeashPosition
(@Nonnull final Ref ref, @Nonnull final Ref targetRef, @Nonnull final ComponentAccessor componentAccessor)
Method setLeashPosition.
- Parameters:
@Nonnull final Refref@Nonnull final ReftargetRef@Nonnull final ComponentAccessorcomponentAccessor