AutoReferee
2.5
|
Represents a block placement goal. More...
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... | |
Represents a block placement goal.
org.mctourney.autoreferee.goals.BlockGoal.BlockGoal | ( | AutoRefTeam | team, |
Location | loc, | ||
BlockData | blockdata, | ||
int | range | ||
) |
Constructs a team's win condition.
team | owner of this win condition |
loc | target location for objective |
blockdata | objective block type |
range | maximum allowed distance from target |
org.mctourney.autoreferee.goals.BlockGoal.BlockGoal | ( | AutoRefTeam | team, |
Location | loc, | ||
BlockData | blockdata | ||
) |
Constructs a team's win condition.
team | owner of this win condition |
loc | target location for objective |
blockdata | objective block type |
org.mctourney.autoreferee.goals.BlockGoal.BlockGoal | ( | AutoRefTeam | team, |
Block | block, | ||
int | range | ||
) |
Constructs a team's win condition.
team | owner of this win condition |
block | block to construct win condition from |
range | maximum allowed distance from target |
org.mctourney.autoreferee.goals.BlockGoal.BlockGoal | ( | AutoRefTeam | team, |
Block | block | ||
) |
Constructs a team's win condition.
team | owner of this win condition |
block | block to construct win condition from |
|
static |
Checks if a given block type exists within a cube centered around a location.
blockdata | block type being searched for |
loc | center point of searchable cube |
radius | radius of searchable cube |
|
static |
Checks if a given block type exists within a cube centered around a location.
goal | win condition object |