Class CommandCodecs
java.lang.Object
team.lodestar.lodestone.systems.command.CommandCodecs
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <A,V> CommandField <A, V> arg(String name, com.mojang.brigadier.arguments.ArgumentType<A> type, BiFunction<com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack>, String, V> getter) static CommandField<?, Boolean> booleanValue(String name) static CommandField<?, Double> doubleValue(String name) static CommandField<?, Double> doubleValue(String name, double min) static CommandField<?, Double> doubleValue(String name, double min, double max) static CommandField<?, Float> floatValue(String name) static CommandField<?, Float> floatValue(String name, float min) static CommandField<?, Float> floatValue(String name, float min, float max) static CommandField<?, Integer> static CommandField<?, Integer> static CommandField<?, Integer> static CommandField<?, Long> static CommandField<?, Long> static CommandField<?, Long> static CommandField<?, net.minecraft.resources.ResourceLocation> resourceLocation(String name) static CommandField<?, String> stringValue(String name) static CommandField<?, UUID> static CommandField<?, net.minecraft.world.phys.Vec2> static CommandField<?, net.minecraft.world.phys.Vec3>
-
Constructor Details
-
CommandCodecs
public CommandCodecs()
-
-
Method Details
-
arg
public static <A,V> CommandField<A,V> arg(String name, com.mojang.brigadier.arguments.ArgumentType<A> type, BiFunction<com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack>, String, V> getter) -
vec3
-
vec2
-
floatValue
-
floatValue
-
floatValue
-
doubleValue
-
doubleValue
-
doubleValue
-
intValue
-
intValue
-
intValue
-
longValue
-
longValue
-
longValue
-
stringValue
-
booleanValue
-
uuid
-
resourceLocation
public static CommandField<?,net.minecraft.resources.ResourceLocation> resourceLocation(String name)
-