Everything posted by Draco18s
-
[1.10.2][Container][Slot][IInventory]Slots still need IInventory?
Here's a working inventory container/gui. It's actually kinda funky. Particularly line 37. https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/ores/GuiHandler.java
-
[1.10.2][GUI][Containers][Packets]Any good tutorials on GUIs for 1.10.2?
And you never could before, either.
-
minecraft forge(eclipse) crashs if i test my mod
Most likely, you are using the single-parameter tool material constructor, you need to use the three parameter ToolMaterial, float, float one.
-
[1.10.2][SOLVED]Do I need Block.neighborChanged? How does it work?
That method is called anytime world.setBlockState() is passed a 0x1 as the third parameter.
-
[1.8.9] Correctly create an itemstack from a block.
That's onBlockHarvested, I believe. Which is called from onBlockRemoved (by player).
-
[1.10.2][PropertyEnum][SOLVED]Can I have null as the default for a PropertyEnum?
Create a new enumerated and have an explicit "unknown" or "none" value.
-
Making my Own Power [1.10.2]
- [1.10.2][Inventory] What is the best way to know if a block is an inventory?
te.hasCapability(ItemHandlerCapability, side)- Making my Own Power [1.10.2]
In C# you can, but really all that means is that the interface is declaring an explicit getter/setter. I know this because I did it not to long ago. e.g. public interface ISomeThing { public someField { get; set; } } But yes, you can't do that in Java. You'd have to declare it as a getField() and setField(v) methods and supply the field itself in the implementation.- [1.8.9] Correctly create an itemstack from a block.
Items.getItemFromBlock(block)- Making my Own Power [1.10.2]
- Making my Own Power [1.10.2]
You don't have the Java knowledge necessary to even have someone help you with this.- Why does game freezes with Entity.setFlag(7,true);? (for flying with elytra)
Because the object is never set to anything. I can't tell you because you haven't posted your current code.- Why does game freezes with Entity.setFlag(7,true);? (for flying with elytra)
Also self explanatory.- [1.10.2] Detect armor worn
That's not how you compare ItemStacks.- [1.9] Functional items make game crash!
And the crash- ["1.9.4"]addInformation
If any are wrong, this would be the one. But not having used I18n yet, I am not 100%- Why does game freezes with Entity.setFlag(7,true);? (for flying with elytra)
Considering that the crash occurs on line 67 of your custome elytra class, yes, I do think its related to your code.- Why does game freezes with Entity.setFlag(7,true);? (for flying with elytra)
Should be self explanatory.- [1.10.2] Block not working!
Define "doesn't work"- [1.10.2] SpawnEntityInWorld
In which case: Stop suggesting custom entities for simple problems. It is the wrong solution.- [1.7.10] Generation Manager Causes World Loading Issues
There is no reason to call new WorldGenCustomNameHere() every time the chunk generates. You can create one in the constructor of CustomGeneration and save it in a private field and reuse the same generator. Also, "WorldGenCustomNameHere" is a terrible name.- Why does game freezes with Entity.setFlag(7,true);? (for flying with elytra)
Forge still saves a .log file. But I suspect that this isn't a Java issue but a computer issue.- Why does game freezes with Entity.setFlag(7,true);? (for flying with elytra)
I don't see a crash log.- [1.10.2] SpawnEntityInWorld
If an item has the wrong texture (e.g. missing) there is a problem with the item's JSON model or with its registration, there is nothing wrong with Vanilla's EntityItem class. There is no reason to create a custom EntityItem class unless you need to override certain EntityItem behavior. Please stop suggesting a complicated solution to a simple problem. - [1.10.2][Inventory] What is the best way to know if a block is an inventory?
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.