public class Instruction implementsRoleStateChange,IAnnotatedComponentCollection
Class Instruction. Provides instruction functionality for the Hytale server.
java.lang.Object > Instruction
Field Summary
parent
protected
IAnnotatedComponent
parent
Field parent.
index
protected
int
index
Field index.
continueAfter
protected
boolean
continueAfter
Field continueAfter.
parentTreeModeStep
protected
Instruction
parentTreeModeStep
Field parentTreeModeStep.
tag
final
String
tag
Field tag.
debugSupport
final
DebugSupport
debugSupport
Field debugSupport.
traceSensorFails
final
boolean
traceSensorFails
Field traceSensorFails.
uuidComponent
final
UUIDComponent
uuidComponent
Field uuidComponent.
sensorInfo
final
InfoProvider
sensorInfo
Field sensorInfo.
Method Detail
Instruction
public
private
Instruction
(final Instruction[] instructionList, @Nonnull final BuilderSupport support)
Method Instruction.
- Parameters:
final Instruction[]instructionList@Nonnull final BuilderSupportsupport
getDebugTag
public
String
getDebugTag
()
Method getDebugTag.
getWeight
public
double
getWeight
()
Method getWeight.
isContinueAfter
public
boolean
isContinueAfter
()
Method isContinueAfter.
motionControllerChanged
public
void
motionControllerChanged
(@Nullable final Ref ref, @Nonnull final NPCEntity npcComponent, final MotionController motionController, @Nullable final ComponentAccessor componentAccessor)
Method motionControllerChanged.
- Parameters:
@Nullable final Refref@Nonnull final NPCEntitynpcComponentfinal MotionControllermotionController@Nullable final ComponentAccessorcomponentAccessor
componentCount
public
int
componentCount
()
Method componentCount.
getComponent
Method getComponent.
- Parameters:
final intindex
getIndex
public
int
getIndex
()
Method getIndex.
getLabel
public
String
getLabel
()
Method getLabel.
matches
public
boolean
matches
(@Nonnull final Ref ref, @Nonnull final Role role, final double dt, @Nonnull final Store store)
Method matches.
- Parameters:
@Nonnull final Refref@Nonnull final Rolerolefinal doubledt@Nonnull final Storestore
executeActions
public
void
executeActions
(@Nonnull final Ref ref, @Nonnull final Role role, final InfoProvider sensorInfo, final double dt, @Nonnull final Store store)
Method executeActions.
- Parameters:
@Nonnull final Refref@Nonnull final Rolerolefinal InfoProvidersensorInfofinal doubledt@Nonnull final Storestore
execute
public
void
execute
(@Nonnull final Ref ref, @Nonnull final Role role, final double dt, @Nonnull final Store store)
Method execute.
- Parameters:
@Nonnull final Refref@Nonnull final Rolerolefinal doubledt@Nonnull final Storestore
clearOnce
public
void
clearOnce
()
Method clearOnce.
onEndMotion
public
void
onEndMotion
()
Method onEndMotion.
notifyChildSensorMatch
public
void
notifyChildSensorMatch
()
Method notifyChildSensorMatch.
reset
public
void
reset
()
Method reset.
forEachInstruction
protected
void
forEachInstruction
(@Nonnull final Consumer instructionConsumer)
Method forEachInstruction.
- Parameters:
@Nonnull final ConsumerinstructionConsumer
createRootInstruction
static
Instruction
createRootInstruction
(final Instruction[] instructions, @Nonnull final BuilderSupport support)
Method createRootInstruction.
- Parameters:
final Instruction[]instructions@Nonnull final BuilderSupportsupport