IamMaxim
Members-
Posts
56 -
Joined
-
Last visited
Everything posted by IamMaxim
-
[SOLVED] [1.7.10] Creating entity throws InstantiationException
IamMaxim replied to IamMaxim's topic in Modder Support
Here's my instantiation: and it works with vanilla EntityFireball -
[SOLVED] [1.7.10] Creating entity throws InstantiationException
IamMaxim replied to IamMaxim's topic in Modder Support
But how does original minecraft fireball works? It is abstract too and contains -
I made my custom inventory GUI (extends GuiContainer). It uses mainInventory, but how can I access armorInventory? As I know Slot constructor takes an IInventory, slot index and position in pixels, but armorInventory is an ItemStack[].
-
What to use to override player hotbar engine?
IamMaxim replied to IamMaxim's topic in Modder Support
Thanks, I'll try it tomorrow -
What to use to override player hotbar engine?
IamMaxim replied to IamMaxim's topic in Modder Support
I think I can even give player a default hotbar (up to 9 slots) without inventory. -
What to use to override player hotbar engine?
IamMaxim replied to IamMaxim's topic in Modder Support
I'm developing an RPG mod, so player will have "strength" attribute that will affect count of inventory slots. Min count is 2, max is 12. -
What to use to override player hotbar engine?
IamMaxim replied to IamMaxim's topic in Modder Support
I will try to make onPlayerTickEvent. Maybe this will be enough -
What to use to override player hotbar engine?
IamMaxim replied to IamMaxim's topic in Modder Support
I want do decrease avaible slots in inventory to make game harder. The main problem is that item in hand is taken from standart inventory. Can I just replace standart ItemStack array with mine? Or the only way to fill standart inventory with empty items? -
What to use to override player hotbar engine?
IamMaxim replied to IamMaxim's topic in Modder Support
By hotbar engine I mean item selection with keys and, if it is possible, with mouse wheel. -
I made custom inventory, hotbar GUI(it contains 2 items), overriden pickup. But I don't know how to override hotbar mechanics. It can render items from standart player inventory. Shound I extend InventoryPlayer and replace standart EntityPlayer.inventory, or is there another way?
-
[SOLVED] Are entity extended properties saved in world?
IamMaxim replied to IamMaxim's topic in Modder Support
-
[SOLVED] Are entity extended properties saved in world?
IamMaxim replied to IamMaxim's topic in Modder Support
Thanks for help. I found my bug. it was in -
[SOLVED] Are entity extended properties saved in world?
IamMaxim replied to IamMaxim's topic in Modder Support
I tried to edit it, but I get this list of errors: and then it crashes with IndexOutOfBoundsException. I don't understand why it call setInventorySlotContents() more than 8 times. Can you explain how it works, because I couldn't get any info from stacktrace, please? -
If you're using Intellij IDEA, click "Run" in menu and then "debug...".
-
I wrote this code: CustomPlayer.java CustomPlayerInventory.java CustomPlayerContainer.java according to https://github.com/coolAlias/Forge_Tutorials/blob/master/CustomPlayerInventory.java, but I get this error in console: and empty inventory. So, my question is: Are extended properties saved while exitting world? While I don't exit world, items are saved(or displayed as saved; for now I can't test it)
-
Thanks for information. It's now works! Just my not completed inventory container exceptions, but I'll try to fix them myself.
-
Main class:
-
I register it from @EventHandler public void preInit(FMLInitializationEvent event) with NetworkRegistry.INSTANCE.registerGuiHandler(this, new CustomPlayerGUIHandler());
-
No, I don't see anything. They're not working.
-
Container: All I get when press key is
-
Here's key listener: I don't close GUI, and problem is not in it, because it was working earlier. GUI:
-
Here's GUI handler: , message handler: Registration of handlers: networkWrapper = NetworkRegistry.INSTANCE.newSimpleChannel("customPlayerChannel"); networkWrapper.registerMessage(CustomPlayerOpenInventoryHandler.class, CustomPlayerOpenInventoryMessage.class, 1, Side.SERVER); NetworkRegistry.INSTANCE.registerGuiHandler(this, new CustomPlayerGUIHandler()); It receives message, but GUI doesn't work
-
I don't have it
-
full handler class: