mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-02 16:05:29 +00:00
More example usages by iterating config pack
This commit is contained in:
parent
70de38ffcb
commit
4fee8cdb24
@ -8,7 +8,6 @@ import org.mvplugins.multiverse.external.jetbrains.annotations.NotNull;
|
|||||||
import org.mvplugins.multiverse.external.jetbrains.annotations.Nullable;
|
import org.mvplugins.multiverse.external.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public final class MultiverseGeneratorPluginHook implements GeneratorPlugin {
|
public final class MultiverseGeneratorPluginHook implements GeneratorPlugin {
|
||||||
|
|
||||||
@ -27,7 +26,13 @@ public final class MultiverseGeneratorPluginHook implements GeneratorPlugin {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public @Nullable Collection<String> getExampleUsages() {
|
public @Nullable Collection<String> getExampleUsages() {
|
||||||
return List.of("/mv create example_world NORMAL -g Terra:OVERWORLD");
|
return platform.getConfigRegistry()
|
||||||
|
.entries()
|
||||||
|
.stream()
|
||||||
|
.map(Keyed::getID)
|
||||||
|
.map("/mv create example_world NORMAL -g Terra:%s"::formatted)
|
||||||
|
.limit(5) // reasonable amount
|
||||||
|
.toList();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user