-Added rayTraceEntities() functions, and added an offset parameter.

IEntityLivingBase:
-Made getLookingAtEntities() function use IWorld's rayTraceEntities() function, and added an offset parameter.
This commit is contained in:
c0508383 committed 2022-07-10 23:17:17 -05:00
1 parent e048496e4d
commit 80916de553
4 files changed
+69 -38

No files matched your search

@@ -82,9 +82,9 @@ public interface IEntityLivingBase<T extends EntityLivingBase> extends IEntity<T
* @return A list of entities, sorted first by closest to the entity along the look vector, then by which
* entities are closest to the vector.
*/
IEntity[] getLookingAtEntities(int maxDistance, int range, boolean stopOnBlock, boolean stopOnLiquid, boolean stopOnCollision);
IEntity[] getLookingAtEntities(int maxDistance, double offset, double range, boolean stopOnBlock, boolean stopOnLiquid, boolean stopOnCollision);
IEntity[] getLookingAtEntities(int maxDistance, int range);
IEntity[] getLookingAtEntities(int maxDistance, double offset, double range);
/**
* Expert use only