BrushConfig

public class BrushConfig

Class BrushConfig. Provides brushconfig functionality for the Hytale server.

java.lang.Object > BrushConfig

Field Summary

interactionType

private InteractionType interactionType

Field interactionType.

isHoldDownInteraction

private boolean isHoldDownInteraction

Field isHoldDownInteraction.

origin

private Vector3i origin

Field origin.

isCurrentlyExecuting

private boolean isCurrentlyExecuting

Field isCurrentlyExecuting.

hasExecutionContextEncounteredError

private boolean hasExecutionContextEncounteredError

Field hasExecutionContextEncounteredError.

executionErrorMessage

private String executionErrorMessage

Field executionErrorMessage.

originOffset

private Vector3i originOffset

Field originOffset.

originAfterOffset

private Vector3i originAfterOffset

Field originAfterOffset.

shape

private BrushShape shape

Field shape.

shapeWidth

private int shapeWidth

Field shapeWidth.

shapeHeight

private int shapeHeight

Field shapeHeight.

shapeThickness

private int shapeThickness

Field shapeThickness.

capped

private boolean capped

Field capped.

pattern

private BlockPattern pattern

Field pattern.

density

private int density

Field density.

enableBrushMask

private boolean enableBrushMask

Field enableBrushMask.

brushMask

private BlockMask brushMask

Field brushMask.

enableOperationMask

private boolean enableOperationMask

Field enableOperationMask.

operationMask

private BlockMask operationMask

Field operationMask.

combinedMasks

private BlockMask combinedMasks

Field combinedMasks.

historyMask

private HistoryMask historyMask

Field historyMask.

blockEntry

final BlockPattern.BlockEntry blockEntry

Field blockEntry.

fluidInfo

final FluidPatternHelper.FluidInfo fluidInfo

Field fluidInfo.

builder

final StringBuilder builder

Field builder.

Method Detail

BrushConfig

public public BrushConfig ()

Method BrushConfig.

beginExecution

public void beginExecution (final Vector3i origin, final boolean isHoldDownInteraction, final InteractionType interactionType)

Method beginExecution.

Parameters:
final Vector3i origin
final boolean isHoldDownInteraction
final InteractionType interactionType

endExecution

public void endExecution ()

Method endExecution.

resetToDefaultValues

public void resetToDefaultValues ()

Method resetToDefaultValues.

isHoldDownInteraction

public boolean isHoldDownInteraction ()

Method isHoldDownInteraction.

isCurrentlyExecuting

public boolean isCurrentlyExecuting ()

Method isCurrentlyExecuting.

getInteractionType

public InteractionType getInteractionType ()

Method getInteractionType.

getOrigin

public Vector3i getOrigin ()

Method getOrigin.

getOriginOffset

public Vector3i getOriginOffset ()

Method getOriginOffset.

setOriginOffset

public void setOriginOffset (final Vector3i originOffset)

Method setOriginOffset.

Parameters:
final Vector3i originOffset

modifyOriginOffset

public void modifyOriginOffset (@Nonnull final Vector3i originOffsetOffset)

Method modifyOriginOffset.

Parameters:
@Nonnull final Vector3i originOffsetOffset

updateOriginWithOffsets

public void updateOriginWithOffsets ()

Method updateOriginWithOffsets.

getRandom

public Random getRandom ()

Method getRandom.

getNextBlock

public int getNextBlock ()

Method getNextBlock.

getNextMaterial

public Material getNextMaterial ()

Method getNextMaterial.

getBlockMask

public BlockMask getBlockMask ()

Method getBlockMask.

setOperationMask

public void setOperationMask (final BlockMask mask)

Method setOperationMask.

Parameters:
final BlockMask mask

appendOperationMask

public void appendOperationMask (final BlockMask mask)

Method appendOperationMask.

Parameters:
final BlockMask mask

clearOperationMask

public void clearOperationMask ()

Method clearOperationMask.

setUseBrushMask

public void setUseBrushMask (final boolean useBrushMask)

Method setUseBrushMask.

Parameters:
final boolean useBrushMask

setUseOperationMask

public void setUseOperationMask (final boolean useOperationMask)

Method setUseOperationMask.

Parameters:
final boolean useOperationMask

setBrushMask

public void setBrushMask (final BlockMask mask)

Method setBrushMask.

Parameters:
final BlockMask mask

refreshCombinedMasks

private void refreshCombinedMasks ()

Method refreshCombinedMasks.

if

public else if (this.enableBrushMask)

Method if.

Parameters:
this.enableBrushMask this.enableBrushMask

getDensity

public int getDensity ()

Method getDensity.

setDensity

public void setDensity (final int density)

Method setDensity.

Parameters:
final int density

getHistoryMask

public HistoryMask getHistoryMask ()

Method getHistoryMask.

setHistoryMask

public void setHistoryMask (final HistoryMask historyMask)

Method setHistoryMask.

Parameters:
final HistoryMask historyMask

getShapeWidth

public int getShapeWidth ()

Method getShapeWidth.

setShapeWidth

public void setShapeWidth (final int shapeWidth)

Method setShapeWidth.

Parameters:
final int shapeWidth

getShapeHeight

public int getShapeHeight ()

Method getShapeHeight.

setShapeHeight

public void setShapeHeight (final int shapeHeight)

Method setShapeHeight.

Parameters:
final int shapeHeight

getShapeThickness

public int getShapeThickness ()

Method getShapeThickness.

setShapeThickness

public void setShapeThickness (final int shapeThickness)

Method setShapeThickness.

Parameters:
final int shapeThickness

isCapped

public boolean isCapped ()

Method isCapped.

setCapped

public void setCapped (final boolean capped)

Method setCapped.

Parameters:
final boolean capped

getShape

public BrushShape getShape ()

Method getShape.

setShape

public void setShape (final BrushShape shape)

Method setShape.

Parameters:
final BrushShape shape

getPattern

public BlockPattern getPattern ()

Method getPattern.

setPattern

public void setPattern (final BlockPattern pattern)

Method setPattern.

Parameters:
final BlockPattern pattern

setErrorFlag

public void setErrorFlag (final String errorMessage)

Method setErrorFlag.

Parameters:
final String errorMessage

clearError

public void clearError ()

Method clearError.

isHasExecutionContextEncounteredError

public boolean isHasExecutionContextEncounteredError ()

Method isHasExecutionContextEncounteredError.

getExecutionErrorMessage

public String getExecutionErrorMessage ()

Method getExecutionErrorMessage.

getOriginAfterOffset

public Vector3i getOriginAfterOffset ()

Method getOriginAfterOffset.

toString

public String toString ()

Method toString.

getInfo

public String getInfo ()

Method getInfo.

DataSettingFlags

public private DataSettingFlags (final BiConsumer stateLoader)

Method DataSettingFlags.

Parameters:
final BiConsumer stateLoader

loadData

public void loadData (final BrushConfig copyTo, final BrushConfig copyFrom)

Method loadData.

Parameters:
final BrushConfig copyTo
final BrushConfig copyFrom

DataGettingFlags

public private DataGettingFlags (final Function valueGetter)

Method DataGettingFlags.

Parameters:
final Function valueGetter

getValue

public int getValue (final BrushConfig brushConfig)

Method getValue.

Parameters:
final BrushConfig brushConfig