Everything posted by IamMaxim
-
[SOLVED] [1.7.10] Creating entity throws InstantiationException
Here's my instantiation: and it works with vanilla EntityFireball
-
[SOLVED] [1.7.10] Creating entity throws InstantiationException
But how does original minecraft fireball works? It is abstract too and contains
-
[SOLVED] [1.7.10] Creating entity throws InstantiationException
When I'm trying to spawn entity my server is shutting down and throws this: My entity class: I tried to add constructor without arguments, but this changed nothing. Here's how I'm registering it: I added another entity based on EntityCreature and it works good. Where is the problem?
-
How can I access player armor slots?
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?
Thanks, I'll try it tomorrow
-
What to use to override player hotbar engine?
I think I can even give player a default hotbar (up to 9 slots) without inventory.
-
What to use to override player hotbar engine?
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?
I will try to make onPlayerTickEvent. Maybe this will be enough
-
What to use to override player hotbar engine?
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?
By hotbar engine I mean item selection with keys and, if it is possible, with mouse wheel.
-
What to use to override player hotbar engine?
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?
- [SOLVED] Are entity extended properties saved in world?
Thanks for help. I found my bug. it was in- [SOLVED] Are entity extended properties saved in world?
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?- [1.8] Registering Render
If you're using Intellij IDEA, click "Run" in menu and then "debug...".- [SOLVED] Are entity extended properties saved in world?
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)- [SOLVED] findContainerFor(mod) returns null
Thanks for information. It's now works! Just my not completed inventory container exceptions, but I'll try to fix them myself.- [SOLVED] findContainerFor(mod) returns null
Main class:- [SOLVED] findContainerFor(mod) returns null
I register it from @EventHandler public void preInit(FMLInitializationEvent event) with NetworkRegistry.INSTANCE.registerGuiHandler(this, new CustomPlayerGUIHandler());- [SOLVED] findContainerFor(mod) returns null
No, I don't see anything. They're not working.- [SOLVED] findContainerFor(mod) returns null
Container: All I get when press key is- [SOLVED] findContainerFor(mod) returns null
Here's key listener: I don't close GUI, and problem is not in it, because it was working earlier. GUI:- [SOLVED] findContainerFor(mod) returns null
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- [SOLVED] findContainerFor(mod) returns null
I don't have it- [SOLVED] findContainerFor(mod) returns null
full handler class: - [SOLVED] Are entity extended properties saved in world?
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.