Block trace methods do not require hash sets

This commit is contained in:
md_5 2019-12-23 10:34:19 +11:00
parent abf0cfdcb4
commit 1bf1f3f456

View file

@ -54,7 +54,7 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
* This list contains all blocks from the living entity's eye position to * This list contains all blocks from the living entity's eye position to
* target inclusive. This method considers all blocks as 1x1x1 in size. * target inclusive. This method considers all blocks as 1x1x1 in size.
* *
* @param transparent HashSet containing all transparent block Materials (set to * @param transparent Set containing all transparent block Materials (set to
* null for only air) * null for only air)
* @param maxDistance this is the maximum distance to scan (may be limited * @param maxDistance this is the maximum distance to scan (may be limited
* by server by at least 100 blocks, no less) * by server by at least 100 blocks, no less)
@ -71,7 +71,7 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
* collision shapes into account, see {@link #getTargetBlockExact(int, * collision shapes into account, see {@link #getTargetBlockExact(int,
* FluidCollisionMode)}. * FluidCollisionMode)}.
* *
* @param transparent HashSet containing all transparent block Materials (set to * @param transparent Set containing all transparent block Materials (set to
* null for only air) * null for only air)
* @param maxDistance this is the maximum distance to scan (may be limited * @param maxDistance this is the maximum distance to scan (may be limited
* by server by at least 100 blocks, no less) * by server by at least 100 blocks, no less)
@ -86,7 +86,7 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
* The target block will be the last block in the list. This method * The target block will be the last block in the list. This method
* considers all blocks as 1x1x1 in size. * considers all blocks as 1x1x1 in size.
* *
* @param transparent HashSet containing all transparent block Materials (set to * @param transparent Set containing all transparent block Materials (set to
* null for only air) * null for only air)
* @param maxDistance this is the maximum distance to scan. This may be * @param maxDistance this is the maximum distance to scan. This may be
* further limited by the server, but never to less than 100 blocks * further limited by the server, but never to less than 100 blocks