Its the exact same method and it does exist, i even tested it myself.
worldIn.getEntitiesWithinAABB(playerIn.getClass(), boundingbox);
World.getEntitiesWithinAABB(Class<? extends T> classEntity, AxisAlignedBB bb)
Looks totally different.. not.
/**
* Gets all entities of the specified class type which intersect with the AABB.
*/
public <T extends Entity> List<T> getEntitiesWithinAABB(Class <? extends T > classEntity, AxisAlignedBB bb)
{
return this.<T>getEntitiesWithinAABB(classEntity, bb, EntitySelectors.NOT_SPECTATING);
}
public <T extends Entity> List<T> getEntitiesWithinAABB(Class <? extends T > clazz, AxisAlignedBB aabb, @Nullable Predicate <? super T > filter)
{
int i = MathHelper.floor((aabb.minX - MAX_ENTITY_RADIUS) / 16.0D);
int j = MathHelper.ceil((aabb.maxX + MAX_ENTITY_RADIUS) / 16.0D);
int k = MathHelper.floor((aabb.minZ - MAX_ENTITY_RADIUS) / 16.0D);
int l = MathHelper.ceil((aabb.maxZ + MAX_ENTITY_RADIUS) / 16.0D);
List<T> list = Lists.<T>newArrayList();
for (int i1 = i; i1 < j; ++i1)
{
for (int j1 = k; j1 < l; ++j1)
{
if (this.isChunkLoaded(i1, j1, true))
{
this.getChunkFromChunkCoords(i1, j1).getEntitiesOfTypeWithinAABB(clazz, aabb, list, filter);
}
}
}
return list;
}
I might not be a master in java and modding minecraft, but im not retarded.