Class InstructionContextValidator
java.lang.Object
com.hypixel.hytale.server.npc.asset.builder.validators.Validator
com.hypixel.hytale.server.npc.asset.builder.validators.InstructionContextValidator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final EnumSet<ComponentContext> private final EnumSet<InstructionType> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateInstructionContextValidator(EnumSet<InstructionType> instructionTypes, EnumSet<ComponentContext> componentContexts) -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetErrorMessage(String value, InstructionType instructionContext, boolean instructionMatched, ComponentContext componentContext, boolean extraMatched, String breadcrumbs) static InstructionContextValidatorinInstructions(EnumSet<InstructionType> instructionTypes, EnumSet<ComponentContext> componentContexts)
-
Field Details
-
instructionTypes
-
componentContexts
-
-
Constructor Details
-
InstructionContextValidator
private InstructionContextValidator(EnumSet<InstructionType> instructionTypes, EnumSet<ComponentContext> componentContexts)
-
-
Method Details
-
getErrorMessage
@Nonnull public static String getErrorMessage(@Nonnull String value, @Nonnull InstructionType instructionContext, boolean instructionMatched, @Nonnull ComponentContext componentContext, boolean extraMatched, String breadcrumbs) -
inInstructions
@Nonnull public static InstructionContextValidator inInstructions(EnumSet<InstructionType> instructionTypes, EnumSet<ComponentContext> componentContexts)
-