Revert "Added callback line of sight methods. Thanks xZise!"

This reverts commit 1df3a823ba477d68b359e5ac246345a05fe82ebd.

By: EvilSeph <evilseph@gmail.com>
This commit is contained in:
Bukkit/Spigot
2011-10-03 15:15:50 -04:00
parent 3ea8302a86
commit c549298711
3 changed files with 0 additions and 82 deletions

View File

@@ -5,7 +5,6 @@ import java.util.List;
import org.bukkit.Location;
import org.bukkit.block.Block;
import org.bukkit.util.Callback;
/**
* Represents a living entity, such as a monster or player
@@ -48,34 +47,6 @@ public interface LivingEntity extends Entity {
*/
public Location getEyeLocation();
/**
* Gets all blocks along the player's line of sight
* List iterates from player's position to target inclusive
*
* @param callback Through every iteration it will call {@link Callback#call(Object)}. If set to/returns <code>null</code> only air is considered transparent.
* @param maxDistance This is the maximum distance to scan. This may be further limited by the server, but never to less than 100 blocks.
* @return List containing all blocks along the player's line of sight
*/
public List<Block> getLineOfSight(Callback<Boolean, Block> callback, int maxDistance);
/**
* Gets the block that the player has targeted
*
* @param callback Through every iteration it will call {@link Callback#call(Object)}. If set to/returns <code>null</code> only air is considered transparent.
* @param maxDistance This is the maximum distance to scan. This may be further limited by the server, but never to less than 100 blocks.
* @return Block that the player has targeted
*/
public Block getTargetBlock(Callback<Boolean, Block> callback, int maxDistance);
/**
* Gets the block that the player has targeted
*
* @param callback Through every iteration it will call {@link Callback#call(Object)}. If set to/returns <code>null</code> only air is considered transparent.
* @param maxDistance This is the maximum distance to scan. This may be further limited by the server, but never to less than 100 blocks.
* @return Block that the player has targeted
*/
public List<Block> getLastTwoTargetBlocks(Callback<Boolean, Block> callback, int maxDistance);
/**
* Gets all blocks along the player's line of sight
* List iterates from player's position to target inclusive