
qpwoeiruty
Members-
Posts
159 -
Joined
-
Last visited
Everything posted by qpwoeiruty
-
Does anyone know?
-
Ohhh, 1.7.10. It is there and I put it in my constructor to see if it did anything.
-
In an entity class what exactly does setScale() actually do?
-
My mod works fine without NEI but when I try to open a custom GUI it just crashes.
-
I have fixed 1 but I don't understand what you mean in 2.
-
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); } }
-
It happens when I try to open a gui. Here is my gui code if that helps. Handler:
-
I got the error in the title but I don't know why?
-
[1.7.2] Null Pointer Exception + Ticking Memory Connection
qpwoeiruty replied to qpwoeiruty's topic in Modder Support
Well played, it works. Thank you -
[1.7.2] Null Pointer Exception + Ticking Memory Connection
qpwoeiruty replied to qpwoeiruty's topic in Modder Support
Have done, but still the same outcome. I really don't know what is up with it. -
[1.7.2] Null Pointer Exception + Ticking Memory Connection
qpwoeiruty replied to qpwoeiruty's topic in Modder Support
-
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.
-
Great, thank you. I am trying to learn about GUIs so this i very useful to know.
-
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?
-
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.
-
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?
-
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.
-
My entity class, but it is inside my own method.
-
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.
-
[1.7.2] Printing Chat To Specific Player + Chat Colour
qpwoeiruty replied to qpwoeiruty's topic in Modder Support
Thanks, that is all I need -
[1.7.2] Printing Chat To Specific Player + Chat Colour
qpwoeiruty replied to qpwoeiruty's topic in Modder Support
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? -
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"));
-
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?
-
Sorry, it is saying I can't convert from void to boolean.
-
So what can I do about it being a non-static method.