public class BlockReplacer extends Object implements DoubleActionBlockTool
| Constructor and Description |
|---|
BlockReplacer(BaseBlock targetBlock) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
actPrimary(ServerInterface server,
LocalConfiguration config,
LocalPlayer player,
LocalSession session,
WorldVector clicked)
Perform the action.
|
boolean |
actSecondary(ServerInterface server,
LocalConfiguration config,
LocalPlayer player,
LocalSession session,
WorldVector clicked)
Perform the secondary action.
|
boolean |
canUse(LocalPlayer player)
Checks to see if the player can still be using this tool (considering
permissions and such).
|
public BlockReplacer(BaseBlock targetBlock)
public boolean canUse(LocalPlayer player)
Toolpublic boolean actPrimary(ServerInterface server, LocalConfiguration config, LocalPlayer player, LocalSession session, WorldVector clicked)
BlockToolactPrimary in interface BlockToolpublic boolean actSecondary(ServerInterface server, LocalConfiguration config, LocalPlayer player, LocalSession session, WorldVector clicked)
DoubleActionBlockToolactSecondary in interface DoubleActionBlockToolCopyright © 2010-2014. All Rights Reserved.