Class InstructionContextHelper

java.lang.Object
com.hypixel.hytale.server.npc.asset.builder.InstructionContextHelper

public class InstructionContextHelper extends Object
Created on 30/10/2018
  • Constructor Details

    • InstructionContextHelper

      public InstructionContextHelper(InstructionType context)
  • Method Details

    • isComponent

      public boolean isComponent()
    • setComponentContext

      public void setComponentContext(ComponentContext context)
    • isInCorrectInstruction

      public boolean isInCorrectInstruction(@Nonnull EnumSet<InstructionType> validTypes)
    • isInCorrectInstruction

      public static boolean isInCorrectInstruction(@Nonnull EnumSet<InstructionType> validTypes, InstructionType instructionContext)
    • extraContextMatches

      public boolean extraContextMatches(@Nullable EnumSet<ComponentContext> contexts)
    • extraContextMatches

      public static boolean extraContextMatches(@Nullable EnumSet<ComponentContext> validContexts, ComponentContext context)
    • addComponentContextEvaluator

      public void addComponentContextEvaluator(BiConsumer<InstructionType, ComponentContext> evaluator)
    • validateComponentContext

      public void validateComponentContext(InstructionType instructionContext, ComponentContext componentContext)
    • getInstructionContext

      public InstructionType getInstructionContext()
    • getComponentContext

      public ComponentContext getComponentContext()
    • pushForEach

      public void pushForEach(boolean isolated)
      Enters a ForEach scope while its nested actions are read.
    • popForEach

      public void popForEach()
    • isInForEach

      public boolean isInForEach()
    • isInUnisolatedForEach

      public boolean isInUnisolatedForEach()
      True when inside a ForEach whose innermost scope is not IsolatePerTarget (so per-target instances are shared).