SimpleCondition

abstract class SimpleCondition extends Condition

Class SimpleCondition. Provides simplecondition functionality for the Hytale server.

java.lang.Object > Condition > SimpleCondition

Field Summary

falseValue

protected double falseValue

Field falseValue.

trueValue

protected double trueValue

Field trueValue.

Method Detail

SimpleCondition

public protected SimpleCondition ()

Method SimpleCondition.

calculateUtility

public double calculateUtility (final int selfIndex, final ArchetypeChunk archetypeChunk, final Ref target, final CommandBuffer commandBuffer, final EvaluationContext context)

Method calculateUtility.

Parameters:
final int selfIndex
final ArchetypeChunk archetypeChunk
final Ref target
final CommandBuffer commandBuffer
final EvaluationContext context

getSimplicity

public int getSimplicity ()

Method getSimplicity.

toString

public String toString ()

Method toString.

KeyedCodec

public new KeyedCodec ("TrueValue", Codec.DOUBLE)

Method KeyedCodec.

Parameters:
"TrueValue" "TrueValue"
Codec.DOUBLE Codec.DOUBLE