mirror of
https://github.com/GTNewHorizons/Opis.git
synced 2026-11-27 23:46:00 +00:00
Turned DataReq into an enum Fixed clean up of Swing table (reverse index) When /opis is used, the client requests a full set of data to populate the tables.
39 lines
952 B
Java
39 lines
952 B
Java
package mcp.mobius.opis.commands.client;
|
|
|
|
import mcp.mobius.opis.network.enums.ClientCommand;
|
|
import mcp.mobius.opis.network.server.Packet_ClientCommand;
|
|
import net.minecraft.command.CommandBase;
|
|
import net.minecraft.command.ICommandSender;
|
|
import net.minecraft.entity.player.EntityPlayerMP;
|
|
|
|
public class CommandClientShowRenderTick extends CommandBase {
|
|
|
|
@Override
|
|
public String getCommandName() {
|
|
return "opis_ctick";
|
|
}
|
|
|
|
@Override
|
|
public String getCommandUsage(ICommandSender icommandsender) {
|
|
return "";
|
|
}
|
|
|
|
@Override
|
|
public void processCommand(ICommandSender icommandsender, String[] astring) {
|
|
((EntityPlayerMP)icommandsender).playerNetServerHandler.sendPacketToPlayer(Packet_ClientCommand.create(ClientCommand.SHOW_RENDER_TICK));
|
|
}
|
|
|
|
@Override
|
|
public int getRequiredPermissionLevel()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
@Override
|
|
public boolean canCommandSenderUseCommand(ICommandSender sender)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
}
|