AutoReferee  2.5
 All Classes Functions Variables
org.mctourney.autoreferee.goals.BlockGoal Class Reference

Represents a block placement goal. More...

+ Inheritance diagram for org.mctourney.autoreferee.goals.BlockGoal:

Public Member Functions

 BlockGoal (AutoRefTeam team, Location loc, BlockData blockdata, int range)
 Constructs a team's win condition. More...
 
 BlockGoal (AutoRefTeam team, Location loc, BlockData blockdata)
 Constructs a team's win condition. More...
 
 BlockGoal (AutoRefTeam team, Block block, int range)
 Constructs a team's win condition. More...
 
 BlockGoal (AutoRefTeam team, Block block)
 Constructs a team's win condition. More...
 
int getInexactRange ()
 Gets the maximum range this objective may be placed from its target.
 
BlockData getItem ()
 Gets the block type for this objective.
 
Location getTarget ()
 Gets the target location for this objective.
 

Static Public Member Functions

static Location blockInRange (BlockData blockdata, Location loc, int radius)
 Checks if a given block type exists within a cube centered around a location. More...
 
static Location blockInRange (BlockGoal goal)
 Checks if a given block type exists within a cube centered around a location. More...
 

Detailed Description

Represents a block placement goal.

Author
authorblues

Constructor & Destructor Documentation

org.mctourney.autoreferee.goals.BlockGoal.BlockGoal ( AutoRefTeam  team,
Location  loc,
BlockData  blockdata,
int  range 
)

Constructs a team's win condition.

Parameters
teamowner of this win condition
loctarget location for objective
blockdataobjective block type
rangemaximum allowed distance from target
org.mctourney.autoreferee.goals.BlockGoal.BlockGoal ( AutoRefTeam  team,
Location  loc,
BlockData  blockdata 
)

Constructs a team's win condition.

Parameters
teamowner of this win condition
loctarget location for objective
blockdataobjective block type
org.mctourney.autoreferee.goals.BlockGoal.BlockGoal ( AutoRefTeam  team,
Block  block,
int  range 
)

Constructs a team's win condition.

Parameters
teamowner of this win condition
blockblock to construct win condition from
rangemaximum allowed distance from target
org.mctourney.autoreferee.goals.BlockGoal.BlockGoal ( AutoRefTeam  team,
Block  block 
)

Constructs a team's win condition.

Parameters
teamowner of this win condition
blockblock to construct win condition from

Member Function Documentation

static Location org.mctourney.autoreferee.goals.BlockGoal.blockInRange ( BlockData  blockdata,
Location  loc,
int  radius 
)
static

Checks if a given block type exists within a cube centered around a location.

Parameters
blockdatablock type being searched for
loccenter point of searchable cube
radiusradius of searchable cube
Returns
location of a matching block within the region if one exists, otherwise null
static Location org.mctourney.autoreferee.goals.BlockGoal.blockInRange ( BlockGoal  goal)
static

Checks if a given block type exists within a cube centered around a location.

Parameters
goalwin condition object
Returns
location of a matching block within the region if one exists, otherwise null

The documentation for this class was generated from the following file: