classpublicPriority 2
InstructionContextHelper
com.hypixel.hytale.server.npc.asset.builder.InstructionContextHelper
10
Methods
10
Public Methods
3
Fields
1
Constructors
Constructors
public
InstructionContextHelper(InstructionType context)Methods
Public Methods (10)
public
void addComponentContextEvaluator(BiConsumer<InstructionType, ComponentContext> evaluator)public
boolean extraContextMatches(EnumSet<ComponentContext> contexts)publicstatic
boolean extraContextMatches(EnumSet<ComponentContext> validContexts, ComponentContext context)public
ComponentContext getComponentContext()public
InstructionType getInstructionContext()public
boolean isComponent()public
boolean isInCorrectInstruction(EnumSet<InstructionType> validTypes)publicstatic
boolean isInCorrectInstruction(EnumSet<InstructionType> validTypes, InstructionType instructionContext)public
void setComponentContext(ComponentContext context)public
void validateComponentContext(InstructionType instructionContext, ComponentContext componentContext)Fields
Private/Package Fields (3)
private
ComponentContext componentContextprivate
List<BiConsumer<InstructionType, ComponentContext>> componentContextEvaluatorsprivate
InstructionType context