public class BrushConfigCommandExecutor
Class BrushConfigCommandExecutor. Provides brushconfigcommandexecutor functionality for the Hytale server.
java.lang.Object > BrushConfigCommandExecutor
Field Summary
currentOperationIndex
Field currentOperationIndex.
inDebugSteppingMode
Field inDebugSteppingMode.
printOperations
Field printOperations.
enableBreakpoints
Field enableBreakpoints.
debugOutputTarget
Field debugOutputTarget.
breakOnError
Field breakOnError.
allowOverwritingSavedSnapshots
Field allowOverwritingSavedSnapshots.
ignoreExistingBrushData
Field ignoreExistingBrushData.
edit
Field edit.
startTime
Field startTime.
playerComponent
Field playerComponent.
uuidComponent
Field uuidComponent.
prototypePlayerBuilderToolSettings
Field prototypePlayerBuilderToolSettings.
brushOperation
Field brushOperation.
playerRefComponent
Field playerRefComponent.
playerRefComponent2
Field playerRefComponent2.
returnEdit
Field returnEdit.
header
Field header.
items
Field items.
newIndex
Field newIndex.
loadedBrushConfig
Field loadedBrushConfig.
Method Detail
BrushConfigCommandExecutor
Method BrushConfigCommandExecutor.
- Parameters:
final BrushConfigbrushConfig
resetInternalState
void
resetInternalState
()
Method resetInternalState.
execute
void
execute
(@Nonnull final Ref ref, @Nonnull final World world, @Nonnull final Vector3i origin, final boolean isHoldDownInteraction, @Nonnull final InteractionType interactionType, @Nullable final Consumer existingBrushDataLoadingConsumer, @Nonnull final ComponentAccessor componentAccessor)
Method execute.
- Parameters:
@Nonnull final Refref@Nonnull final Worldworld@Nonnull final Vector3ioriginfinal booleanisHoldDownInteraction@Nonnull final InteractionTypeinteractionType@Nullable final ConsumerexistingBrushDataLoadingConsumer@Nonnull final ComponentAccessorcomponentAccessor
BrushConfigEditStore
new
BrushConfigEditStore
(prototypePlayerBuilderToolSettings.addIgnoredPaintOperation()
Method BrushConfigEditStore.
- Parameters:
prototypePlayerBuilderToolSettings.addIgnoredPaintOperation(prototypePlayerBuilderToolSettings.addIgnoredPaintOperation(
step
BrushConfig.BCExecutionStatus
step
(final Ref ref, final boolean placePreviewAfterStep, final ComponentAccessor componentAccessor)
Method step.
- Parameters:
final Refreffinal booleanplacePreviewAfterStepfinal ComponentAccessorcomponentAccessor
completeStep
BrushConfig.BCExecutionStatus
completeStep
(final Ref ref, final boolean placePreviewAfterStep, final ComponentAccessor componentAccessor)
Method completeStep.
- Parameters:
final Refreffinal booleanplacePreviewAfterStepfinal ComponentAccessorcomponentAccessor
exitExecution
Method exitExecution.
- Parameters:
final Refreffinal ComponentAccessorcomponentAccessor
sendExecutionErrorMessage
void
sendExecutionErrorMessage
(final PlayerRef playerRef, @Nonnull final SequenceBrushOperation brushOperation)
Method sendExecutionErrorMessage.
- Parameters:
final PlayerRefplayerRef@Nonnull final SequenceBrushOperationbrushOperation
storeOperatingIndex
void
storeOperatingIndex
(String name, final int index)
Method storeOperatingIndex.
- Parameters:
Stringnamefinal intindex
loadOperatingIndex
void
loadOperatingIndex
(final String name)
Method loadOperatingIndex.
- Parameters:
final Stringname
clearAllPersistentVariables
void
clearAllPersistentVariables
()
Method clearAllPersistentVariables.
clearPersistentVariable
void
clearPersistentVariable
(String variableName)
Method clearPersistentVariable.
- Parameters:
StringvariableName
setPersistentVariable
void
setPersistentVariable
(String variableName, final int value)
Method setPersistentVariable.
- Parameters:
StringvariableNamefinal intvalue
getPersistentVariableOrDefault
int
getPersistentVariableOrDefault
(String variableName, final int defaultValue)
Method getPersistentVariableOrDefault.
- Parameters:
StringvariableNamefinal intdefaultValue
storeBrushConfigSnapshot
void
storeBrushConfigSnapshot
(@Nonnull final String name)
Method storeBrushConfigSnapshot.
- Parameters:
@Nonnull final Stringname
BrushConfig
new
BrushConfig
(this.brushConfig)
Method BrushConfig.
- Parameters:
this.brushConfigthis.brushConfig
loadBrushConfigSnapshot
void
loadBrushConfigSnapshot
(String name, @Nonnull final BrushConfig.DataSettingFlags... dataToLoad)
Method loadBrushConfigSnapshot.
- Parameters:
Stringname@Nonnull final BrushConfig.DataSettingFlags...dataToLoad
setAllowOverwritingSavedSnapshots
void
setAllowOverwritingSavedSnapshots
(final boolean allowOverwritingSavedSnapshots)
Method setAllowOverwritingSavedSnapshots.
- Parameters:
final booleanallowOverwritingSavedSnapshots
getSequentialOperations
List
getSequentialOperations
()
Method getSequentialOperations.
getGlobalOperations
GlobalBrushOperation>
getGlobalOperations
()
Method getGlobalOperations.
isIgnoreExistingBrushData
boolean
isIgnoreExistingBrushData
()
Method isIgnoreExistingBrushData.
isInDebugSteppingMode
boolean
isInDebugSteppingMode
()
Method isInDebugSteppingMode.
setInDebugSteppingMode
void
setInDebugSteppingMode
(final boolean inDebugSteppingMode)
Method setInDebugSteppingMode.
- Parameters:
final booleaninDebugSteppingMode
setPrintOperations
void
setPrintOperations
(final boolean printOperations)
Method setPrintOperations.
- Parameters:
final booleanprintOperations
setIgnoreExistingBrushData
void
setIgnoreExistingBrushData
(final boolean ignoreExistingBrushData)
Method setIgnoreExistingBrushData.
- Parameters:
final booleanignoreExistingBrushData
setCurrentlyExecutingActionIndex
void
setCurrentlyExecutingActionIndex
(final int newCurrentOperationIndex)
Method setCurrentlyExecutingActionIndex.
- Parameters:
final intnewCurrentOperationIndex
getCurrentOperationIndex
int
getCurrentOperationIndex
()
Method getCurrentOperationIndex.
isEnableBreakpoints
boolean
isEnableBreakpoints
()
Method isEnableBreakpoints.
setEnableBreakpoints
void
setEnableBreakpoints
(final boolean enableBreakpoints)
Method setEnableBreakpoints.
- Parameters:
final booleanenableBreakpoints
getDebugOutputTarget
DebugOutputTarget
getDebugOutputTarget
()
Method getDebugOutputTarget.
setDebugOutputTarget
void
setDebugOutputTarget
(final DebugOutputTarget debugOutputTarget)
Method setDebugOutputTarget.
- Parameters:
final DebugOutputTargetdebugOutputTarget
isBreakOnError
boolean
isBreakOnError
()
Method isBreakOnError.
setBreakOnError
void
setBreakOnError
(final boolean breakOnError)
Method setBreakOnError.
- Parameters:
final booleanbreakOnError