public class TargetBlock extends Object
| Constructor and Description |
|---|
TargetBlock(LocalPlayer player)
Constructor requiring a player, uses default values
|
TargetBlock(LocalPlayer player,
int maxDistance,
double checkDistance)
Constructor requiring a player, max distance and a checking distance
|
| Modifier and Type | Method and Description |
|---|---|
BlockWorldVector |
getAnyTargetBlock()
Returns any block at the sight.
|
WorldVectorFace |
getAnyTargetBlockFace() |
BlockWorldVector |
getCurrentBlock()
Returns the current block along the line of vision
|
BlockWorldVector |
getNextBlock()
Get next block
|
BlockWorldVector |
getPreviousBlock()
Returns the previous block in the aimed path
|
BlockWorldVector |
getSolidTargetBlock()
Returns the block at the sight.
|
BlockWorldVector |
getTargetBlock()
Returns the block at the sight.
|
WorldVectorFace |
getTargetBlockFace() |
public TargetBlock(LocalPlayer player)
player - player to work withpublic TargetBlock(LocalPlayer player, int maxDistance, double checkDistance)
player - LocalPlayer to work withmaxDistance - how far it checks for blockscheckDistance - how often to check for blocks, the smaller the more precisepublic BlockWorldVector getAnyTargetBlock()
public BlockWorldVector getTargetBlock()
public BlockWorldVector getSolidTargetBlock()
public BlockWorldVector getNextBlock()
public BlockWorldVector getCurrentBlock()
public BlockWorldVector getPreviousBlock()
public WorldVectorFace getAnyTargetBlockFace()
public WorldVectorFace getTargetBlockFace()
Copyright © 2010-2014. All Rights Reserved.