blob: 516708d9650bdd344ce446c64268d5681dfd4b9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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;
}
}
|