public class InstructionRandomized extends Instruction
Class InstructionRandomized. Provides instructionrandomized functionality for the Hytale server.
java.lang.Object > Instruction > InstructionRandomized
Field Summary
timeout
protected
double
timeout
Field timeout.
current
protected
InstructionHolder
current
Field current.
mapBuilder
final
WeightedMap.Builder
mapBuilder
Field mapBuilder.
executeTimeRange
final
double[]
executeTimeRange
Field executeTimeRange.
random
final
ThreadLocalRandom
random
Field random.
instruction
final
Instruction
instruction
Field instruction.
Method Detail
InstructionRandomized
public
public
InstructionRandomized
(@Nonnull final BuilderInstructionRandomized builder, final Sensor sensor, @Nonnull final Instruction[] instructionList, @Nonnull final BuilderSupport support)
Method InstructionRandomized.
- Parameters:
@Nonnull final BuilderInstructionRandomizedbuilderfinal Sensorsensor@Nonnull final Instruction[]instructionList@Nonnull final BuilderSupportsupport
InstructionHolder
public
new
InstructionHolder
(instruction)
Method InstructionHolder.
- Parameters:
instructioninstruction
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.
reset
public
void
reset
()
Method reset.