![]() |
Bukkit
1.5.2-R1.0
|
This class performs ray tracing and iterates along blocks on a line. More...
Inheritance diagram for org.bukkit.util.BlockIterator:
Collaboration diagram for org.bukkit.util.BlockIterator:Public Member Functions | |
| BlockIterator (World world, Vector start, Vector direction, double yOffset, int maxDistance) | |
| Constructs the BlockIterator. | |
| BlockIterator (Location loc, double yOffset, int maxDistance) | |
| Constructs the BlockIterator. | |
| BlockIterator (Location loc, double yOffset) | |
| Constructs the BlockIterator. | |
| BlockIterator (Location loc) | |
| Constructs the BlockIterator. | |
| BlockIterator (LivingEntity entity, int maxDistance) | |
| Constructs the BlockIterator. | |
| BlockIterator (LivingEntity entity) | |
| Constructs the BlockIterator. | |
| boolean | hasNext () |
| Returns true if the iteration has more elements. | |
| Block | next () |
| Returns the next Block in the trace. | |
| void | remove () |
This class performs ray tracing and iterates along blocks on a line.
Definition at line 18 of file BlockIterator.java.
| org.bukkit.util.BlockIterator.BlockIterator | ( | World | world, |
| Vector | start, | ||
| Vector | direction, | ||
| double | yOffset, | ||
| int | maxDistance | ||
| ) |
Constructs the BlockIterator.
| world | The world to use for tracing |
| start | A Vector giving the initial location for the trace |
| direction | A Vector pointing in the direction for the trace |
| yOffset | The trace begins vertically offset from the start vector by this value |
| maxDistance | This is the maximum distance in blocks for the trace. Setting this value above 140 may lead to problems with unloaded chunks. A value of 0 indicates no limit |
Definition at line 53 of file BlockIterator.java.
References org.bukkit.util.Vector.clone(), org.bukkit.World.getBlockAt(), org.bukkit.block.BlockFace.getOppositeFace(), org.bukkit.block.Block.getRelative(), org.bukkit.util.Vector.getX(), org.bukkit.util.Vector.getY(), org.bukkit.util.Vector.getZ(), and org.bukkit.util.Vector.setY().
| org.bukkit.util.BlockIterator.BlockIterator | ( | Location | loc, |
| double | yOffset, | ||
| int | maxDistance | ||
| ) |
Constructs the BlockIterator.
| loc | The location for the start of the ray trace |
| yOffset | The trace begins vertically offset from the start vector by this value |
| maxDistance | This is the maximum distance in blocks for the trace. Setting this value above 140 may lead to problems with unloaded chunks. A value of 0 indicates no limit |
Definition at line 230 of file BlockIterator.java.
References org.bukkit.Location.getDirection(), org.bukkit.Location.getWorld(), and org.bukkit.Location.toVector().
| org.bukkit.util.BlockIterator.BlockIterator | ( | Location | loc, |
| double | yOffset | ||
| ) |
Constructs the BlockIterator.
| loc | The location for the start of the ray trace |
| yOffset | The trace begins vertically offset from the start vector by this value |
Definition at line 241 of file BlockIterator.java.
References org.bukkit.Location.getDirection(), org.bukkit.Location.getWorld(), and org.bukkit.Location.toVector().
| org.bukkit.util.BlockIterator.BlockIterator | ( | Location | loc | ) |
Constructs the BlockIterator.
| loc | The location for the start of the ray trace |
Definition at line 251 of file BlockIterator.java.
| org.bukkit.util.BlockIterator.BlockIterator | ( | LivingEntity | entity, |
| int | maxDistance | ||
| ) |
Constructs the BlockIterator.
| entity | Information from the entity is used to set up the trace |
| maxDistance | This is the maximum distance in blocks for the trace. Setting this value above 140 may lead to problems with unloaded chunks. A value of 0 indicates no limit |
Definition at line 263 of file BlockIterator.java.
References org.bukkit.entity.LivingEntity.getEyeHeight(), and org.bukkit.entity.Entity.getLocation().
| org.bukkit.util.BlockIterator.BlockIterator | ( | LivingEntity | entity | ) |
Constructs the BlockIterator.
| entity | Information from the entity is used to set up the trace |
Definition at line 273 of file BlockIterator.java.
| boolean org.bukkit.util.BlockIterator.hasNext | ( | ) |
Returns true if the iteration has more elements.
Definition at line 281 of file BlockIterator.java.
| Block org.bukkit.util.BlockIterator.next | ( | ) |
Returns the next Block in the trace.
Definition at line 292 of file BlockIterator.java.
| void org.bukkit.util.BlockIterator.remove | ( | ) |
Definition at line 301 of file BlockIterator.java.