create_ponder_wonder

Exports Create ponders to disk.
git clone git://git.oshgnacknak.de/create_ponder_wonder.git
Log | Files | Refs | README

AllCommands.java (756B)


      1 package de.oshgnacknak.create_ponder_wonder.commands;
      2 
      3 import com.mojang.brigadier.arguments.StringArgumentType;
      4 import net.minecraftforge.event.RegisterCommandsEvent;
      5 
      6 import static net.minecraft.command.Commands.argument;
      7 import static net.minecraft.command.Commands.literal;
      8 
      9 public class AllCommands {
     10 
     11     public static void register(RegisterCommandsEvent event) {
     12         event.getDispatcher().register(
     13             literal("pw")
     14             .then(literal("start")
     15             .then(argument("path", StringArgumentType.greedyString())
     16             .executes(new StartRenderingCommand()))));
     17         event.getDispatcher().register(
     18             literal("pw")
     19             .then(literal("stop")
     20             .executes(new StopRenderingCommand())));
     21     }
     22 }