InstructionContextHelper

public class InstructionContextHelper

Class InstructionContextHelper. Provides instructioncontexthelper functionality for the Hytale server.

java.lang.Object > InstructionContextHelper

Field Summary

componentContext

private ComponentContext componentContext

Field componentContext.

Method Detail

InstructionContextHelper

public public InstructionContextHelper (final InstructionType context)

Method InstructionContextHelper.

Parameters:
final InstructionType context

isComponent

public boolean isComponent ()

Method isComponent.

setComponentContext

public void setComponentContext (final ComponentContext context)

Method setComponentContext.

Parameters:
final ComponentContext context

isInCorrectInstruction

public boolean isInCorrectInstruction (@Nonnull final EnumSet validTypes)

Method isInCorrectInstruction.

Parameters:
@Nonnull final EnumSet validTypes

extraContextMatches

public boolean extraContextMatches (@Nullable final EnumSet contexts)

Method extraContextMatches.

Parameters:
@Nullable final EnumSet contexts

addComponentContextEvaluator

public void addComponentContextEvaluator (final BiConsumer evaluator)

Method addComponentContextEvaluator.

Parameters:
final BiConsumer evaluator

validateComponentContext

public void validateComponentContext (final InstructionType instructionContext, final ComponentContext componentContext)

Method validateComponentContext.

Parameters:
final InstructionType instructionContext
final ComponentContext componentContext

getInstructionContext

public InstructionType getInstructionContext ()

Method getInstructionContext.

getComponentContext

public ComponentContext getComponentContext ()

Method getComponentContext.