Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/07/19 in all areas

  1. I could swear that there was a thread a page back with somebody having this same issue. In java everything is passed as a reference(kinda, it's a bit different but I won't complicate stuff). Thus when you get the item stacks from the results of your recipe and blindly put them in the output slot it is still THE SAME ITEM STACK that is stored in your recipe map. Any modifications to it apply to the stack in your recipe. Also some misc. issues: Don't use get/setField, that is a silly vanilla mechanic. Simply reference your fields directly. I have a suspicion that you are doing the stupid invalidate/validate tileentity stuff there. Don't. Simply override TileEntity#shouldRefresh. Why? You are just wasting a CPU cycle at that point. Doesn't really matter, but still, why?
    1 point
  2. Yes No, that was to indicate "Don't literally type this, type what this is describing"
    1 point
  3. If you mean a network message (SimpleNetworkWrapper/SimpleChannel), use PacketDistributor.ALL and PacketDistributor#noArg to get the PacketTarget argument for SimpleChannel#send. PacketDistributor.ALL sends the packet to all players on the server.
    1 point
  4. Loop through the player list and send the message to each one individually.
    1 point
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.