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
isComponent
public
boolean
isComponent
()
Method isComponent.
isInCorrectInstruction
public
boolean
isInCorrectInstruction
(@Nonnull final EnumSet validTypes)
Method isInCorrectInstruction.
- Parameters:
@Nonnull final EnumSetvalidTypes
extraContextMatches
public
boolean
extraContextMatches
(@Nullable final EnumSet contexts)
Method extraContextMatches.
- Parameters:
@Nullable final EnumSetcontexts
addComponentContextEvaluator
public
void
addComponentContextEvaluator
(final BiConsumer evaluator)
Method addComponentContextEvaluator.
- Parameters:
final BiConsumerevaluator
validateComponentContext
public
void
validateComponentContext
(final InstructionType instructionContext, final ComponentContext componentContext)
Method validateComponentContext.
- Parameters:
final InstructionTypeinstructionContextfinal ComponentContextcomponentContext