public class BrushConfig
Class BrushConfig. Provides brushconfig functionality for the Hytale server.
java.lang.Object > BrushConfig
Field Summary
interactionType
Field interactionType.
isHoldDownInteraction
Field isHoldDownInteraction.
origin
Field origin.
isCurrentlyExecuting
Field isCurrentlyExecuting.
hasExecutionContextEncounteredError
Field hasExecutionContextEncounteredError.
executionErrorMessage
Field executionErrorMessage.
originOffset
Field originOffset.
originAfterOffset
Field originAfterOffset.
shape
Field shape.
shapeWidth
Field shapeWidth.
shapeHeight
Field shapeHeight.
shapeThickness
Field shapeThickness.
capped
Field capped.
pattern
Field pattern.
density
Field density.
enableBrushMask
Field enableBrushMask.
brushMask
Field brushMask.
enableOperationMask
Field enableOperationMask.
operationMask
Field operationMask.
combinedMasks
Field combinedMasks.
historyMask
Field historyMask.
blockEntry
Field blockEntry.
fluidInfo
Field fluidInfo.
builder
Field builder.
Method Detail
BrushConfig
public
BrushConfig
()
Method BrushConfig.
beginExecution
void
beginExecution
(final Vector3i origin, final boolean isHoldDownInteraction, final InteractionType interactionType)
Method beginExecution.
- Parameters:
final Vector3ioriginfinal booleanisHoldDownInteractionfinal InteractionTypeinteractionType
endExecution
void
endExecution
()
Method endExecution.
resetToDefaultValues
void
resetToDefaultValues
()
Method resetToDefaultValues.
isHoldDownInteraction
boolean
isHoldDownInteraction
()
Method isHoldDownInteraction.
isCurrentlyExecuting
boolean
isCurrentlyExecuting
()
Method isCurrentlyExecuting.
modifyOriginOffset
Method modifyOriginOffset.
- Parameters:
@Nonnull final Vector3ioriginOffsetOffset
updateOriginWithOffsets
void
updateOriginWithOffsets
()
Method updateOriginWithOffsets.
getRandom
Random
getRandom
()
Method getRandom.
getNextBlock
int
getNextBlock
()
Method getNextBlock.
clearOperationMask
void
clearOperationMask
()
Method clearOperationMask.
setUseBrushMask
void
setUseBrushMask
(final boolean useBrushMask)
Method setUseBrushMask.
- Parameters:
final booleanuseBrushMask
setUseOperationMask
void
setUseOperationMask
(final boolean useOperationMask)
Method setUseOperationMask.
- Parameters:
final booleanuseOperationMask
refreshCombinedMasks
void
refreshCombinedMasks
()
Method refreshCombinedMasks.
if
else
if
(this.enableBrushMask)
Method if.
- Parameters:
this.enableBrushMaskthis.enableBrushMask
getDensity
int
getDensity
()
Method getDensity.
setDensity
void
setDensity
(final int density)
Method setDensity.
- Parameters:
final intdensity
getHistoryMask
HistoryMask
getHistoryMask
()
Method getHistoryMask.
setHistoryMask
void
setHistoryMask
(final HistoryMask historyMask)
Method setHistoryMask.
- Parameters:
final HistoryMaskhistoryMask
getShapeWidth
int
getShapeWidth
()
Method getShapeWidth.
setShapeWidth
void
setShapeWidth
(final int shapeWidth)
Method setShapeWidth.
- Parameters:
final intshapeWidth
getShapeHeight
int
getShapeHeight
()
Method getShapeHeight.
setShapeHeight
void
setShapeHeight
(final int shapeHeight)
Method setShapeHeight.
- Parameters:
final intshapeHeight
getShapeThickness
int
getShapeThickness
()
Method getShapeThickness.
setShapeThickness
void
setShapeThickness
(final int shapeThickness)
Method setShapeThickness.
- Parameters:
final intshapeThickness
isCapped
boolean
isCapped
()
Method isCapped.
setCapped
void
setCapped
(final boolean capped)
Method setCapped.
- Parameters:
final booleancapped
setErrorFlag
void
setErrorFlag
(final String errorMessage)
Method setErrorFlag.
- Parameters:
final StringerrorMessage
clearError
void
clearError
()
Method clearError.
isHasExecutionContextEncounteredError
boolean
isHasExecutionContextEncounteredError
()
Method isHasExecutionContextEncounteredError.
getExecutionErrorMessage
String
getExecutionErrorMessage
()
Method getExecutionErrorMessage.
toString
String
toString
()
Method toString.
getInfo
String
getInfo
()
Method getInfo.
DataSettingFlags
private
DataSettingFlags
(final BiConsumer stateLoader)
Method DataSettingFlags.
- Parameters:
final BiConsumerstateLoader
DataGettingFlags
private
DataGettingFlags
(final Function valueGetter)
Method DataGettingFlags.
- Parameters:
final FunctionvalueGetter