Class InstructionContextHelper
java.lang.Object
com.hypixel.hytale.server.npc.asset.builder.InstructionContextHelper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ComponentContextprivate List<BiConsumer<InstructionType, ComponentContext>> private final InstructionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanextraContextMatches(EnumSet<ComponentContext> contexts) static booleanextraContextMatches(EnumSet<ComponentContext> validContexts, ComponentContext context) booleanbooleanisInCorrectInstruction(EnumSet<InstructionType> validTypes) static booleanisInCorrectInstruction(EnumSet<InstructionType> validTypes, InstructionType instructionContext) voidsetComponentContext(ComponentContext context) voidvalidateComponentContext(InstructionType instructionContext, ComponentContext componentContext)
-
Field Details
-
context
-
componentContext
-
componentContextEvaluators
-
-
Constructor Details
-
InstructionContextHelper
-
-
Method Details
-
isComponent
public boolean isComponent() -
setComponentContext
-
isInCorrectInstruction
-
isInCorrectInstruction
public static boolean isInCorrectInstruction(@Nonnull EnumSet<InstructionType> validTypes, InstructionType instructionContext) -
extraContextMatches
-
extraContextMatches
public static boolean extraContextMatches(@Nullable EnumSet<ComponentContext> validContexts, ComponentContext context) -
addComponentContextEvaluator
-
validateComponentContext
public void validateComponentContext(InstructionType instructionContext, ComponentContext componentContext) -
getInstructionContext
-
getComponentContext
-