예제 #1
0
 /**
  * Constructor requiring a player, max distance and a checking distance
  *
  * @param player LocalPlayer to work with
  * @param maxDistance how far it checks for blocks
  * @param checkDistance how often to check for blocks, the smaller the more precise
  */
 public TargetBlock(
     SpoutLivingEntity player, int maxDistance, double checkDistance, TIntHashSet transparent) {
   world = player.getWorld();
   setValues(player.getLocation(), maxDistance, player.getEyeHeight(), checkDistance, transparent);
 }
예제 #2
0
 /**
  * Constructor requiring a player, uses default values
  *
  * @param player player to work with
  */
 public TargetBlock(SpoutLivingEntity player, TIntHashSet transparent) {
   world = player.getWorld();
   setValues(player.getLocation(), 300, player.getEyeHeight(), 0.2, transparent);
 }