Jump to content

Recommended Posts

Posted

Hello everybody.... I have a small problem....

 

evertime if I try to open the GUI of my custum furnace minecraft crashes!

I have been searching for the error for hours now and I decided to ask the people here If they have an idea what's wrong!

 

I think it has something to do with the openGui at onBlockActivated in the CustumFurnace class (here:  Grinder.java)

 

Thanks for your help! :D

 

The Console Error Log:

 

  Reveal hidden contents

 

 

The CustumFurnace Class (here: Grinder.java):

 

  Reveal hidden contents

 

 

Extract form the CustumFurnaceClass (player.openGui)

 

  Reveal hidden contents

 

 

Main Class:

 

  Reveal hidden contents

 

 

Thanks agian for your help... :)

 

 

 

Posted

Ok thanks for your help:

 

Here is the GuiHandler.class

package breezertwo.morerecipes.src.grinder;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import cpw.mods.fml.common.network.IGuiHandler;

public class GuiHandler implements IGuiHandler{

@Override
public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
	TileEntity tile_entity = world.getTileEntity(x, y, z);

	if(tile_entity instanceof TileEntityGrinder){
		return new ContainerGrinder(player.inventory, (TileEntityGrinder) tile_entity);
	}

	return null;
}

@Override
public Object getClientGuiElement(int ID, EntityPlayer player, World world,
		int x, int y, int z) {
	TileEntity tile_entity = world.getTileEntity(x, y, z);

	if(tile_entity instanceof TileEntityGrinder){
		return new GuiGrinder(player.inventory, (TileEntityGrinder) tile_entity);
	}

	return null;
}

}


Posted
  On 2/18/2014 at 7:02 PM, BreezerTwo said:

what does "no" mean?

 

It means:

"Bad modder.  No cookie."

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted
  On 2/18/2014 at 9:46 PM, BreezerTwo said:

why i am a "bad modder"?

 

Capture.png

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

before you juge ---> read all, not only the first lines!

 

@Mod(modid="MODID", version="VERSION", name="MoreReipesMod")
public class recipesmod {

   public static final String MODID = "recipesmod";
   public static final String VERSION = "2.0";

 

it exactly the same like the "example mod" of the forge developers! -.-

 

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

Announcements



×
×
  • Create New...

Important Information

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