public class BrushTool extends Object implements TraceTool
| Modifier and Type | Field and Description |
|---|---|
protected static int |
MAX_RANGE |
protected int |
range |
| Constructor and Description |
|---|
BrushTool(String permission)
Construct the tool.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
actPrimary(ServerInterface server,
LocalConfiguration config,
LocalPlayer player,
LocalSession session)
Perform the action.
|
boolean |
canUse(LocalPlayer player)
Checks to see if the player can still be using this tool (considering
permissions and such).
|
Brush |
getBrush()
Get the current brush.
|
Mask |
getMask()
Get the filter.
|
Pattern |
getMaterial()
Get the material.
|
int |
getRange()
Get the set brush range.
|
double |
getSize()
Get the set brush size.
|
void |
setBrush(Brush brush,
String perm)
Set the brush.
|
void |
setFill(Pattern material)
Set the material.
|
void |
setMask(Mask filter)
Set the block filter used for identifying blocks to replace.
|
void |
setRange(int range)
Set the set brush range.
|
void |
setSize(double radius)
Set the set brush size.
|
public BrushTool(String permission)
permission - public boolean canUse(LocalPlayer player)
public Mask getMask()
public void setMask(Mask filter)
filter - the filter to setpublic Brush getBrush()
public void setFill(Pattern material)
material - public Pattern getMaterial()
public double getSize()
public void setSize(double radius)
radius - public int getRange()
public void setRange(int range)
size - public boolean actPrimary(ServerInterface server, LocalConfiguration config, LocalPlayer player, LocalSession session)
actPrimary in interface TraceToolplayer - session - Copyright © 2010-2014. All Rights Reserved.