Class SimpleCommandField<A,V>

java.lang.Object
team.lodestar.lodestone.modules.toolkit.command.SimpleCommandField<A,V>
All Implemented Interfaces:
CommandField<A,V>

public class SimpleCommandField<A,V> extends Object implements CommandField<A,V>
  • Constructor Details

    • SimpleCommandField

      public SimpleCommandField(String name, com.mojang.brigadier.arguments.ArgumentType<A> type, BiFunction<com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack>,String,V> getter)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface CommandField<A,V>
    • getArgument

      public com.mojang.brigadier.builder.RequiredArgumentBuilder<net.minecraft.commands.CommandSourceStack,A> getArgument()
      Specified by:
      getArgument in interface CommandField<A,V>
    • getValue

      public V getValue(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> ctx)
      Specified by:
      getValue in interface CommandField<A,V>