Everything posted by Animefan8888
-
[1.10.2] Give equipment (armor + hands) to a custom Entity through a GUI ?
What do you think this does, this.entityInventory = new InventoryBasic("NPC Inventory", true, Iterables.size(this.inventoryArmor) + Iterables.size(this.heldEquipment));
-
Can't get my items to render.
There needs to be a assets folder before your modid.
-
[SOLVED] [1.10.2] Custom player inventory doesn't display GUI
Because they are accessing their variables not yours.
-
[SOLVED] [1.10.2] Custom player inventory doesn't display GUI
Private variables only allow that instance to access them and they only exist within those bounds.
-
[SOLVED] [1.10.2] Custom player inventory doesn't display GUI
You never actually set oldMouseX or oldMouseY to anything after declaring them.
-
[SOLVED] [1.10.2] Custom player inventory doesn't display GUI
Look at the names of the parameters in drawEntiryOnScreen specifically the ladt two floats.
-
How to get EntityPlayerMP from EntityPlayer?
Cast it, dont forget instanceof.
-
[1.8] Entity stealing items from inventory
Post the crash.
-
[SOLVED] [1.10.2] Custom player inventory doesn't display GUI
Post the code you think does that.
-
[SOLVED] [1.10.2] Custom player inventory doesn't display GUI
Definitely will, it has a read and write method
-
[SOLVED][1.10.2]Tile Entity renders as invisible cube with name tag
As long as you kept the same texture layout.
-
[SOLVED][1.10.2]Tile Entity renders as invisible cube with name tag
Show your ModTileEntities class.
-
[SOLVED][1.10.2]Tile Entity renders as invisible cube with name tag
First the new version is easy. GameRegistry.register(block/item/enchantment/etc) as long as they have their registry name set. And I did not mean the class where you register and initialize blocks, but your class that has the @Mod annotation.
-
[SOLVED] [1.10.2] Custom player inventory doesn't display GUI
I would say best bet would be to rearrange your slots/ItemStacks.
-
[SOLVED][1.10.2]Tile Entity renders as invisible cube with name tag
Post your main mod class and Common Proxy, Client Proxy if anything has changed, as well as your GuiHandler.
-
[SOLVED][1.10.2]Tile Entity renders as invisible cube with name tag
Put a println in your renderTileEntityAt method, if something prints then the TESR is there; and it would help a lot if you limit it down to a specific area that it fails at, if it doesn't then we have a problem.
-
[1.11.2] ItemStack.loadItemStackFromNBT();
If you are saving an inventory to a TE, you should just be able to do itemStackHandlerField.serialize/deserialize. Have you switched over to the new Capability system?
-
[1.11.2] ItemStack.loadItemStackFromNBT();
Look at ItemStackHandler#deserializeNBT for how it loads an ItemStack from NBT and ItemStackHandler#serializeNBT for writing of ItemStacks.
-
[SOLVED][1.10.2]Tile Entity renders as invisible cube with name tag
When you right click does the gui open?
-
[SOLVED] [1.10.2] Custom player inventory doesn't display GUI
Could you post an image of what you mean, and post updated code.
-
[1.11] How to make player respawn in random areas?
When they die get their spawnpoint and randomize it.
-
[1.11] How to cancel bucket use event?
PlayerInteractEvent.RightClickBlock
-
[SOLVED] [1.10.2] Custom player inventory doesn't display GUI
Which question are you attempting to answer? Could you be more explicit? Overriding what Container? I am extending the ContainerPlayer class and overriding some of the methods, if that's what you mean. And I'm replacing the regular player.inventoryContainer with my player container during the EntityJoinWorldEvent. But you could have seen that from the code I posted earlier, so maybe you meant something else? Oops, didn't catch that. The problem is that you call super in your Containers constructor so it adds all the slots that vanilla adds. Which is impossible to prevent. So you have to options. [*]Override the slots by manually setting them in the inventorySlots field using List#set(int, Slot) [*]Or switch to extending Container and adding the abilities/functions of the Players default container. Note that overriding the Gui and Container may lead to incompatibility if done wrong.
-
[SOLVED] [1.10.2] Custom player inventory doesn't display GUI
Are you ever overriding the Container? If not just call player.openGui
-
Minecraft Forge vs Bukkit, what does Forge have what Bukkit dont?
You are correct, but on Bukkit you do not need to download anything to your client. And you can technically make custom blocks and items with vanilla. You do this with a custom resource pack for items, and for blocks in Bukkit it is a bunch of entity manipulation.
IPS spam blocked by CleanTalk.