-
Read Capability of another mod
How do I make mod B obtain the capability? In the Mod A I just do: IMana mana = player.getCapability(ModCapabilities.MANA, null); if(mana!=null){ int value = mana.getMana(); } The problem is that Mod B does not know the "IMana and ModCapabilities.MANA" classes
-
Read Capability of another mod
So I just need to recreate the same classes on Mod B and it will work?
-
Read Capability of another mod
Hi all, I made two mods that for simplicity we will call Mod A and Mod B. Mod A creates and adds a Capability<IMana> to EntityPlayer and works great. My requirement is to be able to read the capabilities of Mod A from mod B
-
[1.12] Increase Payload Packets
The player must see for each protected block the rendering of the contour along its sides (see attached picture). Can the payload from server to client be unlimited?
-
[1.12] Increase Payload Packets
While the payload of packets sent by the server to clients can be great?
-
[1.12] Increase Payload Packets
I meant "packages", it was a translation error. I need a packet that contains a coordinate list of all the blocks protected by the players. It has worked so far, unfortunately the block list has become too big.
-
[1.12] Increase Payload Packets
When I try to send my NBTTagCompound with a package to the server, I get the following error: Payload may not be larger than 32767 bytes Can you increase the Payload of the packages?
-
[1.12] [UNSOLVED] Save Data custom information
I've implemented a simple class like this and I can not get it running. I'm desperate are 7 days trying to run WorldSaveData, I'm tired
-
[1.12] [UNSOLVED] Save Data custom information
I do not know. I can not run the code inside them. Even though I call "markDirty ();"
-
[1.12] [UNSOLVED] Save Data custom information
Thank you very much for your help, I appreciate it very much. Conceptually your work is perfect, but my problem is another one. I can not call the "writeToNBT ()" and "readFromNBT ()" methods. I will probably abandon WorldSaveData and implement a system that stores NTBCompaund directly on Disk
-
[1.12] [UNSOLVED] Save Data custom information
up
-
[1.12] [UNSOLVED] Save Data custom information
I think I'm close to the solution, the problem is that the "readFromNBT" and "writeToNBT" methods are never called, although I call "markDirty ()". Class Code "WorldSavedData": another class code to save a new NTB: code to recover NTB saved:
-
[1.12] [UNSOLVED] Save Data custom information
Thank you, my goal was to understand this. Although I have not yet understood how to pass and assign the result of "getNBTListAree ()" to "writeToNBT (NBTTagCompound nbt)"
-
[1.12] [UNSOLVED] Save Data custom information
As I said before, the areas I want to get must NOT be rectangles, but they can take any shape, so I need to track every block. Please pay attention to this aspect and help me instead of the code I have extended. I have read the documentation https://mcforge.readthedocs.io/en/latest/datastorage/worldsaveddata/ several times. My question is: 1) Is my code correct? 2) how do i save my ntb in worldsavedata class?
-
[1.12] [UNSOLVED] Save Data custom information
I worked a bit and I produced this code: AreeData class (WorldSavedData) methods to write/read NBT I want to save in my WorldSavedData class "AreeData" the result of this method
IPS spam blocked by CleanTalk.