public class TargetMemoryCountCondition extends ScaledCurveCondition
Class TargetMemoryCountCondition. Provides targetmemorycountcondition functionality for the Hytale server.
java.lang.Object > ScaledCurveCondition > TargetMemoryCountCondition
Field Summary
targetType
protected
TargetType
targetType
Field targetType.
memory
final
TargetMemory
memory
Field memory.
Method Detail
TargetMemoryCountCondition
public
public
TargetMemoryCountCondition
()
Method TargetMemoryCountCondition.
getInput
protected
double
getInput
(final int selfIndex, @Nonnull final ArchetypeChunk archetypeChunk, final Ref target, final CommandBuffer commandBuffer, final EvaluationContext context)
Method getInput.
- Parameters:
final intselfIndex@Nonnull final ArchetypeChunkarchetypeChunkfinal Reftargetfinal CommandBuffercommandBufferfinal EvaluationContextcontext
switch
public
return
switch
(this.targetType.ordinal()
Method switch.
- Parameters:
this.targetType.ordinal(this.targetType.ordinal(
KeyedCodec
public
new
KeyedCodec
("TargetType", TargetMemoryCountCondition.TARGET_TYPE_CODEC)
Method KeyedCodec.
- Parameters:
"TargetType""TargetType"TargetMemoryCountCondition.TARGET_TYPE_CODECTargetMemoryCountCondition.TARGET_TYPE_CODEC