May 12, 20169 yr Hello forums, I am trying to figure out how to either use a type of filter that will work with GroundItems. or a way to get all of the closest GroundItems inside of a certain area During the initialization of the ground item. thanks
May 12, 20169 yr GroundItem item = getGroundItems().closest(g -> g.getName().equalsIgnoreCase("Name") && area.contains(g)) Edited May 12, 20169 yr by Tom
May 12, 20169 yr Apply area filter: GroundItem item = groundItems.closest(new AreaFilter<GroundItem>(AREA)); You can also add other filters for example a name filter: GroundItem item = groundItems.closest(new AreaFilter<GroundItem>(AREA), new NameFilter<GroundItem>(NAME));
May 12, 20169 yr Apply area filter: GroundItem item = groundItems.closest(new AreaFilter<GroundItem>(AREA)); You can also add other filters for example a name filter: GroundItem item = groundItems.closest(new AreaFilter<GroundItem>(AREA), new NameFilter<GroundItem>(NAME)); The fk i need to read docs every once in a while
May 12, 20169 yr The fk i need to read docs every once in a while Why do you think he always complains when docs are down
Create an account or sign in to comment