Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Strange error when adding mod to mindcrack


pogo4545
 Share

Recommended Posts

When I try to add my mod to the mindcrack modpack I get this error.

 

java.lang.IllegalAccessError: tried to access class ava from class com.lcsurvival.pogo4545.toolkit.KeyBindingHandler

 

The Classes code:

 

 

package com.lcsurvival.pogo4545.toolkit;

import java.util.EnumSet;
import net.minecraft.client.Minecraft;
import net.minecraft.client.settings.KeyBinding;
import org.lwjgl.input.Keyboard;
import cpw.mods.fml.client.FMLClientHandler;
import cpw.mods.fml.client.registry.KeyBindingRegistry.KeyHandler;
import cpw.mods.fml.common.TickType;

public class KeyBindingHandler extends KeyHandler{

public static KeyBinding login = new KeyBinding("Login", Keyboard.KEY_L);
public static KeyBinding fkjoin = new KeyBinding("Join", Keyboard.KEY_J);
public static KeyBinding vanish = new KeyBinding("Vanish", Keyboard.KEY_V);
public static KeyBinding join = new KeyBinding("Base Key", Keyboard.KEY_B);
public static KeyBinding vcheck = new KeyBinding("Vanish Check", Keyboard.KEY_N);
public static KeyBinding creative = new KeyBinding("Creative", Keyboard.KEY_G);
public static KeyBinding survival = new KeyBinding("Survival", Keyboard.KEY_H);
public static KeyBinding warpmenu = new KeyBinding("Warp Menu", Keyboard.KEY_R);
//public static KeyBinding login = new KeyBinding("Login", Keyboard.KEY_L);
//public static KeyBinding login = new KeyBinding("Login", Keyboard.KEY_L);


public static KeyBinding[] arrayOfKeys = new KeyBinding[] {login, fkjoin, vanish, join, creative, survival, warpmenu};
public static boolean[] areRepeating = new boolean[] {false, false, false, false, false, false, false};

public KeyBindingHandler() {
	super(arrayOfKeys, areRepeating);
}
@Override
public String getLabel() {
	return "LCTK KeyBindings";
}
@Override
public void keyDown(EnumSet<TickType> types, KeyBinding kb, boolean tickEnd, boolean isRepeat) {
	if (tickEnd) {
		if(kb.keyCode == login.keyCode) { //L
			LoginSystem.loginInit();
		}

		if (kb.keyCode == fkjoin.keyCode)//J
		{
			CommandHandler.fakeJoin();
		}

		if (kb.keyCode == vanish.keyCode)//V
		{
			CommandHandler.vanish();
		}

		if (kb.keyCode == join.keyCode)//B
		{
			CommandHandler.basicJoin();
		}

		/*if(Keyboard.getEventKey() == 24)//O
			  {
				  displayGuiScreen(new GuiBanMenu());
			  }*/

		if(kb.keyCode == vcheck.keyCode)//N
		{
			CommandHandler.isVanished();
		}

		if(MBMain.isAdmin == true){
			/*if(Keyboard.getEventKey() == 44)//Z
				  {
					  mod_LifecraftToolkit.xray = !mod_LifecraftToolkit.xray;
					  Minecraft.getMinecraft().renderGlobal.loadRenderers();
					  ModLoader.getMinecraftInstance().thePlayer.sendChatToPlayer("Xray Toggled");
				  }
				  if(Keyboard.getEventKey() == 52){// .
					  displayGuiScreen(new GuiToggles());
				  }

				  if(Keyboard.getEventKey() == 45)//X
				  {
					  mod_LifecraftToolkit.fullbright = !mod_LifecraftToolkit.fullbright;
					  Minecraft.getMinecraft().renderGlobal.loadRenderers();
					  ModLoader.getMinecraftInstance().thePlayer.sendChatToPlayer("Fullbright Toggled");
				  }
			 */
			if (kb.keyCode == creative.keyCode)//G
			{
				CommandHandler.gamemodeToC();
			}

			if (kb.keyCode == survival.keyCode)//H
			{
				CommandHandler.gamemodeToS();
			}

			if (kb.keyCode == warpmenu.keyCode)//R
			{
				CommandHandler.warpMenuHandler();
			}
			/*

				  if (Keyboard.getEventKey() == 46)//C
				  {
					  ModLoader.getMinecraftInstance().thePlayer.sendChatMessage("/a");
				  }

				  if (Keyboard.getEventKey() == 19)//R
				  {
					  displayGuiScreen(new GuiWarpMenu());
				  }
			 */
		}
	}
}
@Override
public void keyUp(EnumSet<TickType> types, KeyBinding kb, boolean tickEnd) {

}
@Override
public EnumSet<TickType> ticks() {
	return EnumSet.of(TickType.CLIENT);
}

}

 

 

Anyone know how to fix this error? I tried everything I could

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.