Everything posted by Draco18s
-
FMLCommonHandler.instance().bus().register(instance); is Deprecated?
*Opens his IDE* *Copy-pastes the code* *Looks at the Javadoc attached to the function* *Finds the answer* Use MinecraftForge#EVENT_BUS instead, they're the same thing.
-
[1.12.1] NBT Reading Problem
You need to create the storage in the readFromNBT method, once you know what the capacity and transfer speeds are.
-
[Solved] [1.12] Tile entity inventory not syncing from server to client
NPEs are easy to solve if you have a stack trace as it tells you exactly what line it occurred on. However, I do not have that information.
-
[1.10.2] Having trouble getting item to render
No. getRegistryName() does not need the substring(5) bullshit that using getUnlocalizedName() does.
-
[1.12.2] Storing unique integer for custom entities?
Why you would ever have to pass that through your proxy, I don't know. You already know which side it's on as packets should only go one way: it's sent from the server to the client, the packet handler therefor only exists on the client and it's safe to use Minecraft.getMinecraft() Likewise, going the other way.
-
[1.12.2] New Tool Crashing Game on Startup
Use the constructor that takes 2 floats.
-
[1.12.1] NBT Reading Problem
Tile Entities, when reconstructed from the save file on disk, are created using a zero-argument constructor (which yours does not have). This means that it is skipping the storage = new MEnergyStorage(capacity, transferSpeed); line, thus storage is null.
-
[1.12.1] NBT Reading Problem
>> No code posted > No help available
-
[1.12.2] Storing unique integer for custom entities?
You need to synchronize the capability from the server to the client yourself.
-
[Solved] [1.12] Tile entity inventory not syncing from server to client
I'm not 100% sure. Item stacks can't be null. Use ItemStack.EMPTY
-
[Solved] [1.12] Tile entity inventory not syncing from server to client
The block only needs to be updated if the TE data effects rendering (my block changes model states based on TE information, such as inventory).
-
1.12.2 missing tooltips in container gui
- [Solved] [1.12] Tile entity inventory not syncing from server to client
1) You may want to override getUpdateTag as well. 2) You need to call these whenever the server should send updates to the client.- How do i fix my tooltip thing?
You don't need that empty string between GRAY and ITALIC. Also, I18n.format() is a thing. I don't know why you're using your own localize function.- Help with directional blocks [1.12]
If you're doing log-y things, you might be interested in extending BlockLogsBase (IIRC).- 1.8 How to hide (forge) on F3?
Why?- [1.11.2] [SOLVED] TileEntity with inventory
Oh no. A custom class. The horror! https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/ores/entities/capabilities/MillableItemsHandler.java- Weird character when formatting in colours
Yep, you're doing it wrong. The TextFormatting enum is a thing. https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/flowers/item/ItemOreFlower1.java#L55- Weird character when formatting in colours
Show your code. You're probably doing it wrong.- 1.8 How to hide (forge) on F3?
Doing that would be Bad.- [1.11.2] [SOLVED] TileEntity with inventory
Custom ItemHandler classes.- problem using the middle button to copy a block into inventory
One of the following is true - The itemstack returned by getPickBlock is incorrect - The item model for the itemstack returned by getPickBlock has not been registered- 1.12.2 no more substitution aliases?
Unfixable. You shouldn't have to, and it's because you've set its unlocalized name wrong. See how it says "item.item"?- [1.12] Get harvest level of Tinker Tool?
- Chest Render
I'm not sure, its not something I've tried to do. - [Solved] [1.12] Tile entity inventory not syncing from server to client
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.