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.

@FunctionalInterface public static interface PersistentDataCommands.PersistentDataFactory
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    getOne(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