Contents
- Description
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- isComponent()
- setComponentContext(ComponentContext)
- isInCorrectInstruction(EnumSet)
- isInCorrectInstruction(EnumSet, InstructionType)
- extraContextMatches(EnumSet)
- extraContextMatches(EnumSet, ComponentContext)
- addComponentContextEvaluator(BiConsumer)
- validateComponentContext(InstructionType, ComponentContext)
- getInstructionContext()
- getComponentContext()
- pushForEach(boolean)
- popForEach()
- isInForEach()
- isInUnisolatedForEach()
Class InstructionContextHelper
java.lang.Object
com.hypixel.hytale.server.npc.asset.builder.InstructionContextHelper
Created on 30/10/2018
-
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) booleanbooleanTrue when inside a ForEach whose innermost scope is not IsolatePerTarget (so per-target instances are shared).voidvoidpushForEach(boolean isolated) Enters a ForEach scope while its nested actions are read.voidsetComponentContext(ComponentContext context) voidvalidateComponentContext(InstructionType instructionContext, ComponentContext componentContext)
-
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
-
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).
-