Jump to content

qpwoeiruty

Members
  • Posts

    159
  • Joined

  • Last visited

Everything posted by qpwoeiruty

  1. Does anyone know?
  2. Ohhh, 1.7.10. It is there and I put it in my constructor to see if it did anything.
  3. In an entity class what exactly does setScale() actually do?
  4. My mod works fine without NEI but when I try to open a custom GUI it just crashes.
  5. I have fixed 1 but I don't understand what you mean in 2.
  6. They are both the same except name changes: package com.blocklings.gui; import net.minecraft.inventory.InventoryBasic; public class InventoryBlockling extends InventoryBasic { public InventoryBlockling(String name, int slots) { super(name, false, slots); } }
  7. It happens when I try to open a gui. Here is my gui code if that helps. Handler:
  8. I got the error in the title but I don't know why?
  9. Well played, it works. Thank you
  10. Have done, but still the same outcome. I really don't know what is up with it.
  11. I have an if statement inside my interact method inside my entity class that is supposed to open a gui but i get these two exceptions but can't figure out the cause: if (par1EntityPlayer.getCommandSenderName().equalsIgnoreCase(this.getOwnerName()) && !this.worldObj.isRemote && !par1EntityPlayer.isSneaking() && itemstack != null && itemstack.getItem() == Item.getItemFromBlock(Blocks.chest) && gear.getStackInSlot(20).getItem() != null) { par1EntityPlayer.openGui(Blocklings.modInstance, 1, this.worldObj, this.getEntityId(), 0, 0); } It works fine when there is an item in slot 20 but not when there isn't.
  12. Great, thank you. I am trying to learn about GUIs so this i very useful to know.
  13. I thought so, if you had a large GUI that wouldn't fit onto a 256x256 image, would there be a way around that or would you have to just change it to fit?
  14. Does a GUI texture, always have to be 256x256? I tried using one that was 176x176 but the image displayed like it was magnified. I am just curious to know.
  15. Nearly every time my entity tries to jump up a block it just sinks into the ground and glitches through it for a while until it pops back out. Could it be because the size is actually less than the size of a block?
  16. Never mind I think I figured it out. It was the same sort of thing but the method was a func one so I didn't know exactly what it did.
  17. My entity class, but it is inside my own method.
  18. I have tried to update my mod to 1.7.10, but I for the last error I am trying to fix I need to get the owner's name to use the player in a chat method. This is for 1.7.2: EntityPlayer player = worldObj.getPlayerEntityByName(this.getOwnerName()); But there is no getOwnerName() method.
  19. Oh, wow, thanks, it works. Is there anyway to change the chat colour in this version, because I am fairly sure there was in 1.6.4?
  20. I have a system set up where if you right click my custom mob, when it is tamed, text appears, but on servers it appears for everyone to see which is not what I want. I am using this at the moment but I know it isn't the correct way to do it. FMLClientHandler.instance().getClient().ingameGUI.getChatGUI().printChatMessage(new ChatComponentText("TEXT HERE"));
  21. I have made a custom entity but often when it jumps up a block it will begin to walk through that layer of blocks for a bit and then pop back out. Anyone know what causes this?
  22. Sorry, it is saying I can't convert from void to boolean.
  23. So what can I do about it being a non-static method.
×
×
  • Create New...

Important Information

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