Package dev.latvian.mods.kubejs.command
Interface PersistentDataCommands.PersistentDataFactory
- Enclosing class:
PersistentDataCommands
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionType -
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends WithPersistentData> apply(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> ctx) default Collection<? extends WithPersistentData> getAll(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> ctx) default WithPersistentDatagetOne(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> ctx)
-
Field Details
-
EMPTY_LIST
static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType EMPTY_LIST
-
-
Method Details
-
apply
Collection<? extends WithPersistentData> apply(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> ctx) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getAll
default Collection<? extends WithPersistentData> getAll(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> ctx) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getOne
default WithPersistentData getOne(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> ctx) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-