Changes
Page history
Update API
authored
Jul 10, 2023
by
Phillip
Hide whitespace changes
Inline
Side-by-side
API.md
View page @
53a5a0ea
...
...
@@ -60,7 +60,7 @@ Examples
```
java
Collection
<
ActiveMob
>
activeMobs
=
MythicBukkit
.
inst
().
getMobManager
().
getActiveMobs
(
am
->
am
.
getMobType
().
equals
(
"SkeletalKnight"
));
//or use the Streams api
//or use the Streams api
Collection
<
ActiveMob
>
activeMobs
=
MythicBukkit
.
inst
().
getMobManager
().
getActiveMobs
();
Collection
<
ActiveMob
>
filteredMobs
=
activeMobs
.
stream
().
filter
(
activeMob
->
activeMob
.
getMobType
().
equals
(
"SkeletalKnight"
)).
toList
();
```
...
...
...
...