Class CompositeCodecs.CompositeCodec0<O>
java.lang.Object
team.lodestar.lodestone.modules.toolkit.command.CompositeCodecs.CompositeCodec0<O>
- All Implemented Interfaces:
CommandCodec<O>
- Enclosing class:
CompositeCodecs
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.brigadier.builder.ArgumentBuilder<net.minecraft.commands.CommandSourceStack, ?> appendTo(com.mojang.brigadier.builder.ArgumentBuilder<net.minecraft.commands.CommandSourceStack, ?> parent, BiFunction<net.minecraft.commands.CommandSourceStack, O, Integer> onExecute) Appends required arguments to a parent node and adds executes() at the end.decode(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> ctx) Used to extract values from ctx and produce the instance at the very end :3
-
Constructor Details
-
CompositeCodec0
-
-
Method Details
-
decode
public O decode(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> ctx) Description copied from interface:CommandCodecUsed to extract values from ctx and produce the instance at the very end :3- Specified by:
decodein interfaceCommandCodec<O>
-
appendTo
public com.mojang.brigadier.builder.ArgumentBuilder<net.minecraft.commands.CommandSourceStack,?> appendTo(com.mojang.brigadier.builder.ArgumentBuilder<net.minecraft.commands.CommandSourceStack, ?> parent, BiFunction<net.minecraft.commands.CommandSourceStack, O, Integer> onExecute) Description copied from interface:CommandCodecAppends required arguments to a parent node and adds executes() at the end.- Specified by:
appendToin interfaceCommandCodec<O>
-