Jump to content

poopoodice

Members
  • Posts

    1160
  • Joined

  • Days Won

    7

Everything posted by poopoodice

  1. player.getArmorInventoryList()
  2. You can't just get the capability from the stack in slot, what if it's empty?
  3. I think you should be able to use RenderWorldLastEvent.Post/Pre to render your particles under some kind of condition you made.
  4. WorldRenderer.renderRainSnow()
  5. Mmmm I'm not sure but do you want to give it a try: call unpressKey() after you send the msg?
  6. Use orElseThrow instead of orElse otherwise you won't notice if there's any error. Also use tick event not PlayerEvent, or it will be called whenever a sub event of it is triggered. armorItemInSlot(int slotIn) is client side only.
  7. Isn't it "Render this before/after all elements are drawn"?
  8. It isn't so hard for me to just click a button, don't know why are you so pissed
  9. I think you may need to check the time yourself, and use ServerWorld.getServer().getPlayerList() to get all players, then use player.sendMessage() to send the message.
  10. I believe whenever there are changes being made to the tag, it will be sync to the client. What getShareTag() does is allows you to modify the tag before the message of syncing being sent.
  11. The modid shouldn’t be capitalised.
  12. Just wondering does inner class count as a "class" for you?
  13. Interesting haha Edit: I misread your post.
  14. I'm afraid player capability is the only way to achieve this afaik. It is not as simple as storing the data in the fields in your event class (which won't work), but it is the only way I can think of. Also it is not so complicated isn't it?
  15. You can still override deprecated methods, it just tells you dont use it
  16. You shouldn't be sending changes every tick, and for ItemStacks' capability syncing you will need to override getShareTag(), readShareTag().
  17. I assume you are using 1.14+ (there's only one arg in 1.12), you need to pass EntityType.ENDERMAN into the first arg instead of null. Also like sciwhiz12 said you need to provide more information.
  18. You're right haha, I misread my forge version 1.16.1-32.0.75 and 1.16.1-32.0.57 I was using the older version.
  19. setRequiresTool() in AbstractBlock.Properties So canHarvestBlock() will do tool checking when block is harvest. You can also see how blocks in Blocks.java do it.
  20. I use high-contrast :p I'm not so sure why that did not work for you (it works for me, I just tested it), you might want to have a look at this tho it's for 1.15 but I guess it applies on 1.16 as well.
  21. change the version of mapping to 20200723-1.16.1 and refresh (reimport) gradle project
×
×
  • Create New...

Important Information

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