HyCodeYourTale
classpublicPriority 3

BrushData

com.hypixel.hytale.server.core.asset.type.buildertool.config.BrushData

implements NetworkSerializable

28

Methods

28

Public Methods

8

Fields

2

Constructors

Constants

StringCAPPED_DOC= "Controls whether the end(s) of hollow brush shapes are closed or open"
StringCAPPED_KEY= "Capped"
Codec<BrushData.Values>CODEC= BuilderCodec.builder(BrushData.Values.class, BrushData.Values::new) .append(new KeyedCod...
BuilderCodec<BrushData>CODEC= BuilderCodec.builder(BrushData.class, BrushData::new) .append(new KeyedCodec<>("Width", Int...
BrushDataDEFAULT= new BrushData()
intDEFAULT_FAVORITE_MATERIALS_CAPACITY= 5
intDEFAULT_HEIGHT= 5
intDEFAULT_WIDTH= 5
StringFAVORITE_MATERIALS_DOC= "Materials available for quick selection.\n\nWhen a material is selected from here, it is set on ...
StringFAVORITE_MATERIALS_KEY= "FavoriteMaterials"
StringHEIGHT_DOC= "The height of the brush shape"
StringHEIGHT_KEY= "Height"
StringINVERT_MASK_DOC= "When enabled, inverts the entire combined mask result"
StringINVERT_MASK_KEY= "InvertMask"
StringMASK_ABOVE_DOC= "Limits the selection to blocks above ones matching materials in this mask"
StringMASK_ABOVE_KEY= "MaskAbove"
StringMASK_ADJACENT_DOC= "Limits the selection to blocks horizontally adjacent to ones matching materials in this mask"
StringMASK_ADJACENT_KEY= "MaskAdjacent"
StringMASK_BELOW_DOC= "Limits the selection to blocks below ones matching materials in this mask"
StringMASK_BELOW_KEY= "MaskBelow"
StringMASK_COMMANDS_DOC= "Custom mask commands to apply to the brush, based on /gmask syntax"
StringMASK_COMMANDS_KEY= "MaskCommands"
StringMASK_DOC= "Limits the selection to blocks matching materials in this mask"
StringMASK_KEY= "Mask"
StringMASK_NEIGHBOR_DOC= "Limits the selection to blocks neighboring (in any direction) ones matching materials in this mask"
StringMASK_NEIGHBOR_KEY= "MaskNeighbor"
StringMASK_NOT_DOC= "Limits the selection to any blocks except ones matching materials in this mask"
StringMASK_NOT_KEY= "MaskNot"
StringMATERIAL_DOC= "The material to apply when the brush is used"
StringMATERIAL_KEY= "Material"
StringMIRROR_AXIS_DOC= "The axis that the brush shape should mirror in"
StringMIRROR_AXIS_KEY= "MirrorAxis"
PatternNEWLINES_PATTERN= Pattern.compile("\\r?\\n")
StringORIGIN_DOC= "The origin of the brush shape"
StringORIGIN_KEY= "Origin"
StringORIGIN_ROTATION_DOC= "Toggles the vertical offset for shapes rotated about the x/z axis"
StringORIGIN_ROTATION_KEY= "OriginRotation"
StringROTATION_ANGLE_DOC= "The angle that the brush shape should be rotated by"
StringROTATION_ANGLE_KEY= "RotationAngle"
StringROTATION_AXIS_DOC= "The axis that the brush shape should rotate around"
StringROTATION_AXIS_KEY= "RotationAxis"
StringSHAPE_DOC= "The brush shape"
StringSHAPE_KEY= "Shape"
StringTHICKNESS_DOC= "The number of blocks thick the walls of the brush shape should be"
StringTHICKNESS_KEY= "Thickness"
StringUSE_MASK_COMMANDS_DOC= "Specifies whether to use the block selector mask values or custom mask commands"
StringUSE_MASK_COMMANDS_KEY= "UseMaskCommands"
StringWIDTH_DOC= "The width of the brush shape"
StringWIDTH_KEY= "Width"

Constructors

protected
BrushData()
public
BrushData(IntArg width, IntArg height, IntArg thickness, BoolArg capped, BrushShapeArg shape, BrushOriginArg origin, BoolArg originRotation, BrushAxisArg rotationAxis, BrushRotationArg rotationAngle, BrushAxisArg mirrorAxis, BlockArg material, BlockArg[] favoriteMaterials, MaskArg mask, MaskArg maskAbove, MaskArg maskNot, MaskArg maskBelow, MaskArg maskAdjacent, MaskArg maskNeighbor, StringArg[] maskCommands, BoolArg useMaskCommands)

Methods

Public Methods (28)

public
BoolArg getCapped()
public
BlockArg[] getFavoriteMaterials()
public
IntArg getHeight()
public
BoolArg getInvertMask()
public
MaskArg getMask()
public
MaskArg getMaskAbove()
public
MaskArg getMaskAdjacent()
public
MaskArg getMaskBelow()
public
StringArg[] getMaskCommands()
public
MaskArg getMaskNeighbor()
public
MaskArg getMaskNot()
public
BlockArg getMaterial()
public
BrushAxisArg getMirrorAxis()
public
BrushOriginArg getOrigin()
public
BoolArg getOriginRotation()
public
BlockMask[] getParsedMaskCommands()
@Nonnull
public
BrushRotationArg getRotationAngle()
public
BrushAxisArg getRotationAxis()
public
BrushShapeArg getShape()
public
IntArg getThickness()
public
BoolArg getUseMaskCommands()
public
IntArg getWidth()
public
boolean isCapped()
public
boolean shouldInvertMask()
public
boolean shouldUseMaskCommands()
public
BuilderToolBrushData toPacket()
@Nonnull
public
String toString()
@Nonnull@Override
public
void updateArgValue(BrushData.Values brush, String id, String value)

throws ToolArgException

Fields

Protected Fields (8)

protectedBlockArg[] favoriteMaterials
protectedMaskArg mask
protectedMaskArg maskAbove
protectedMaskArg maskAdjacent
protectedMaskArg maskBelow
protectedStringArg[] maskCommands
protectedMaskArg maskNeighbor
protectedMaskArg maskNot

Related Classes