Contents
- Description
- Nested Class Summary
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- resetInternalState()
- execute(Ref, World, Vector3i, boolean, InteractionType, Consumer, ComponentAccessor)
- execute(Ref, World, Vector3i, boolean, InteractionType, ComponentAccessor)
- step(Ref, boolean, ComponentAccessor)
- exitExecution(Ref, ComponentAccessor)
- storeOperatingIndex(String, int)
- loadOperatingIndex(String)
- loadOperatingIndex(String, boolean)
- clearAllPersistentVariables()
- clearPersistentVariable(String)
- setPersistentVariable(String, int)
- getPersistentVariableOrDefault(String, int)
- storeBrushConfigSnapshot(String)
- loadBrushConfigSnapshot(String, BrushConfig.DataSettingFlags...)
- setAllowOverwritingSavedSnapshots(boolean)
- getSequentialOperations()
- getGlobalOperations()
- isIgnoreExistingBrushData()
- isInDebugSteppingMode()
- getEdit()
- setInDebugSteppingMode(boolean)
- setPrintOperations(boolean)
- setIgnoreExistingBrushData(boolean)
- setCurrentlyExecutingActionIndex(int)
- getCurrentOperationIndex()
- isEnableBreakpoints()
- setEnableBreakpoints(boolean)
- getDebugOutputTarget()
- setDebugOutputTarget(BrushConfigCommandExecutor.DebugOutputTarget)
- isBreakOnError()
- setBreakOnError(boolean)
Class BrushConfigCommandExecutor
java.lang.Object
com.hypixel.hytale.builtin.buildertools.scriptedbrushes.BrushConfigCommandExecutor
Executes a brush config based on preconfigured commands
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclearPersistentVariable(String variableName) voidexecute(Ref<EntityStore> ref, World world, org.joml.Vector3i origin, boolean isHoldDownInteraction, InteractionType interactionType, ComponentAccessor<EntityStore> componentAccessor) voidexecute(Ref<EntityStore> ref, World world, org.joml.Vector3i origin, boolean isHoldDownInteraction, InteractionType interactionType, Consumer<BrushConfig> existingBrushDataLoadingConsumer, ComponentAccessor<EntityStore> componentAccessor) voidexitExecution(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor) intgetEdit()intgetPersistentVariableOrDefault(String variableName, int defaultValue) booleanbooleanbooleanbooleanvoidloadBrushConfigSnapshot(String name, BrushConfig.DataSettingFlags... dataToLoad) voidloadOperatingIndex(String name) Allows future jumpingvoidloadOperatingIndex(String name, boolean allowFutureJump) voidvoidsetAllowOverwritingSavedSnapshots(boolean allowOverwritingSavedSnapshots) voidsetBreakOnError(boolean breakOnError) voidsetCurrentlyExecutingActionIndex(int newCurrentOperationIndex) voidsetDebugOutputTarget(BrushConfigCommandExecutor.DebugOutputTarget debugOutputTarget) voidsetEnableBreakpoints(boolean enableBreakpoints) voidsetIgnoreExistingBrushData(boolean ignoreExistingBrushData) voidsetInDebugSteppingMode(boolean inDebugSteppingMode) voidsetPersistentVariable(String variableName, int value) voidsetPrintOperations(boolean printOperations) step(Ref<EntityStore> ref, boolean placePreviewAfterStep, ComponentAccessor<EntityStore> componentAccessor) Perform a single step of this operation This method manages the internal state, such that this is safe to call whenever, as many times as you wantvoidvoidstoreOperatingIndex(String name, int index)
-
Constructor Details
-
BrushConfigCommandExecutor
-
-
Method Details
-
resetInternalState
public void resetInternalState() -
execute
public void execute(@Nonnull Ref<EntityStore> ref, @Nonnull World world, @Nonnull org.joml.Vector3i origin, boolean isHoldDownInteraction, @Nonnull InteractionType interactionType, @Nullable Consumer<BrushConfig> existingBrushDataLoadingConsumer, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
execute
public void execute(@Nonnull Ref<EntityStore> ref, World world, org.joml.Vector3i origin, boolean isHoldDownInteraction, InteractionType interactionType, ComponentAccessor<EntityStore> componentAccessor) -
step
@Nonnull public BrushConfig.BCExecutionStatus step(Ref<EntityStore> ref, boolean placePreviewAfterStep, ComponentAccessor<EntityStore> componentAccessor) Perform a single step of this operation This method manages the internal state, such that this is safe to call whenever, as many times as you want -
exitExecution
-
storeOperatingIndex
-
loadOperatingIndex
Allows future jumping -
loadOperatingIndex
-
clearAllPersistentVariables
public void clearAllPersistentVariables() -
clearPersistentVariable
-
setPersistentVariable
-
getPersistentVariableOrDefault
-
storeBrushConfigSnapshot
-
loadBrushConfigSnapshot
public void loadBrushConfigSnapshot(String name, @Nonnull BrushConfig.DataSettingFlags... dataToLoad) -
setAllowOverwritingSavedSnapshots
public void setAllowOverwritingSavedSnapshots(boolean allowOverwritingSavedSnapshots) -
getSequentialOperations
-
getGlobalOperations
-
isIgnoreExistingBrushData
public boolean isIgnoreExistingBrushData() -
isInDebugSteppingMode
public boolean isInDebugSteppingMode() -
getEdit
-
setInDebugSteppingMode
public void setInDebugSteppingMode(boolean inDebugSteppingMode) -
setPrintOperations
public void setPrintOperations(boolean printOperations) -
setIgnoreExistingBrushData
public void setIgnoreExistingBrushData(boolean ignoreExistingBrushData) -
setCurrentlyExecutingActionIndex
public void setCurrentlyExecutingActionIndex(int newCurrentOperationIndex) -
getCurrentOperationIndex
public int getCurrentOperationIndex() -
isEnableBreakpoints
public boolean isEnableBreakpoints() -
setEnableBreakpoints
public void setEnableBreakpoints(boolean enableBreakpoints) -
getDebugOutputTarget
-
setDebugOutputTarget
-
isBreakOnError
public boolean isBreakOnError() -
setBreakOnError
public void setBreakOnError(boolean breakOnError)
-