Everything posted by Hoijima
-
[1.12.1] Any elegant way to notify Client side that some player needs to render an item from a custom inv?
That might be actually what I was looking for, thanks.
-
[1.12.1] Any elegant way to notify Client side that some player needs to render an item from a custom inv?
I'm actually good with it and already using it, with syncing and etc. My problem is more of, how to sync slots that i need to render more effectively. I can serialize just a portion of the capability and just send it to Client side ,and we have sendNear for the messages, but I'm thinking on how to do this more optimized. More of in global perspective if (entity is in sight){sync} but without raytracing - because of obvious reasons or constant range scanning on tick - also because of obvious reasons
-
[1.12.1] Any elegant way to notify Client side that some player needs to render an item from a custom inv?
Hi. I have a custom inventory for a player and render players for it, ricently i noticed that I'm a retard and forgot to notify the other clients that the entity has some stuff in there side inv. Any good ways to do this? The inv is made via the Capability system and works pretty good, but I'm a confused on how to make the detection of a player nearby and not overwhelm them with update packets. Did not find any best practices to do so. Please advice :c
-
[1.11.2][2315][Custom inventory via Capabilityes]New ItemStack returns 0xtile.air
Please close there actually was no problem here.
-
[1.11.2][2315][Custom inventory via Capabilityes]New ItemStack returns 0xtile.air
Yes i know ,thank you. I actually found it in the debug while trying to figure out what's happening img And , it's a bit bizzare. Because further while NBT try's to save the list of the items, it just writes minecraft:air ignoring that the itemstack item is diffirent. I tryes the default implementation and a custom with just .writeNBT from the itemstack methods, and it's the same, it writes minecraft:air all the time no matter the item.
-
[1.11.2][2315][Custom inventory via Capabilityes]New ItemStack returns 0xtile.air
Hi. I was making an extension of player inventory doing it Capabilities style. On thing i found bizzare that every time i try to make a new ItemStack it goes 0xtile.air, and for some reason it trashes that the item stack was made not from Air but from a custom item Capa Provider - the 54 line I was trying to make it pretty and tested some probability behaviors trowing the creation of the ItemStack outside of the main class. But every time i get a itemstack 0xTile.air , but with a correct item. screenshot Does it suppose to be this way? Or i have to remake the saving of the NBT to confront this illogical behavior, and also an itemList, because i find this odd.Or maybe I'm just a dum-dum. But srsly it needs to be some thing like 1xItem.%YOURNAME or etc... Please advice, i'm a bit tired slamming this problem for the third week.
IPS spam blocked by CleanTalk.