Class SimpleCommandField<A,V>
java.lang.Object
team.lodestar.lodestone.systems.command.SimpleCommandField<A,V>
- All Implemented Interfaces:
CommandField<A,V>
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleCommandField(String name, com.mojang.brigadier.arguments.ArgumentType<A> type, BiFunction<com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack>, String, V> getter) -
Method Summary
-
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
- Specified by:
getNamein interfaceCommandField<A,V>
-
getArgument
public com.mojang.brigadier.builder.RequiredArgumentBuilder<net.minecraft.commands.CommandSourceStack,A> getArgument()- Specified by:
getArgumentin interfaceCommandField<A,V>
-
getValue
public V getValue(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> ctx) - Specified by:
getValuein interfaceCommandField<A,V>
-