ActionBeacon

public class ActionBeacon extends ActionBase

Class ActionBeacon. Provides actionbeacon functionality for the Hytale server.

java.lang.Object > ActionBase > ActionBeacon

Field Summary

target

final Ref target

Field target.

positionCache

final PositionCache positionCache

Field positionCache.

npcComponent

final NPCEntity npcComponent

Field npcComponent.

role

final Role role

Field role.

random

final ThreadLocalRandom random

Field random.

color

final Vector3f color

Field color.

matrix

final Matrix4d matrix

Field matrix.

tmp

final Matrix4d tmp

Field tmp.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

pos

final Vector3d pos

Field pos.

modelComponent

final ModelComponent modelComponent

Field modelComponent.

model

final Model model

Field model.

targetTransformComponent

final TransformComponent targetTransformComponent

Field targetTransformComponent.

targetPos

final Vector3d targetPos

Field targetPos.

targetModelComponent

final ModelComponent targetModelComponent

Field targetModelComponent.

targetEyeHeight

final float targetEyeHeight

Field targetEyeHeight.

angleY

final double angleY

Field angleY.

angleX

final double angleX

Field angleX.

beaconSupportComponent

final BeaconSupport beaconSupportComponent

Field beaconSupportComponent.

Method Detail

ActionBeacon

public public ActionBeacon (@Nonnull final BuilderActionBeacon builderActionBeacon, @Nonnull final BuilderSupport support)

Method ActionBeacon.

Parameters:
@Nonnull final BuilderActionBeacon builderActionBeacon
@Nonnull final BuilderSupport support

registerWithSupport

public void registerWithSupport (@Nonnull final Role role)

Method registerWithSupport.

Parameters:
@Nonnull final Role role

canExecute

public boolean canExecute (@Nonnull final Ref ref, @Nonnull final Role role, final InfoProvider sensorInfo, final double dt, @Nonnull final Store store)

Method canExecute.

Parameters:
@Nonnull final Ref ref
@Nonnull final Role role
final InfoProvider sensorInfo
final double dt
@Nonnull final Store store

execute

public boolean execute (@Nonnull final Ref ref, @Nonnull final Role role, final InfoProvider sensorInfo, final double dt, @Nonnull final Store store)

Method execute.

Parameters:
@Nonnull final Ref ref
@Nonnull final Role role
final InfoProvider sensorInfo
final double dt
@Nonnull final Store store

filterNPCs

static boolean filterNPCs (@Nonnull final Ref ref, @Nonnull final ActionBeacon _this, @Nonnull final Role role, @Nonnull final ComponentAccessor componentAccessor)

Method filterNPCs.

Parameters:
@Nonnull final Ref ref
@Nonnull final ActionBeacon _this
@Nonnull final Role role
@Nonnull final ComponentAccessor componentAccessor

sendNPCMessage

protected void sendNPCMessage (@Nonnull final Ref self, @Nonnull final Ref targetRef, @Nonnull final Ref target, @Nonnull final ComponentAccessor componentAccessor)

Method sendNPCMessage.

Parameters:
@Nonnull final Ref self
@Nonnull final Ref targetRef
@Nonnull final Ref target
@Nonnull final ComponentAccessor componentAccessor

Vector3f

public new Vector3f (random.nextFloat()

Method Vector3f.

Parameters:
random.nextFloat( random.nextFloat(