From 4eb2056f2f20366ea49a7cf54d892bd3f25bdb16 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Fri, 26 Jan 2024 13:54:10 +0100 Subject: Tutorial stuff --- src/main/java/com/example/CrashCommand.java | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/main/java/com/example/CrashCommand.java (limited to 'src/main/java/com/example/CrashCommand.java') diff --git a/src/main/java/com/example/CrashCommand.java b/src/main/java/com/example/CrashCommand.java new file mode 100644 index 0000000..516708d --- /dev/null +++ b/src/main/java/com/example/CrashCommand.java @@ -0,0 +1,27 @@ +package com.example; + +import net.minecraft.command.CommandBase; +import net.minecraft.command.CommandException; +import net.minecraft.command.ICommandSender; + +public class CrashCommand extends CommandBase { + @Override + public String getCommandName() { + return "crashme"; + } + + @Override + public String getCommandUsage(ICommandSender sender) { + return ""; + } + + @Override + public void processCommand(ICommandSender sender, String[] args) throws CommandException { + ExampleMod.screenToOpenNextTick = new MyGuiScreen(); + } + + @Override + public boolean canCommandSenderUseCommand(ICommandSender sender) { + return true; + } +} -- cgit