Jump to content

loordgek

Members
  • Posts

    1910
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by loordgek

  1. why do you want to make a custom launcher
  2. override detectAndSendChanges in FurnaceGeneratorContainer
  3. yes but do it only when you need to when you have a gui open
  4. https://github.com/TallYate/CrudeTechMod/blob/faface21edc0ffbce67f8420d25d52a5c44e9b01/src/main/java/me/joshua/crudetechmod/Packets/GeneratorPacket.java#L82-L86 you dont need a channel for every packet just make 1 https://github.com/TallYate/CrudeTechMod/blob/faface21edc0ffbce67f8420d25d52a5c44e9b01/src/main/java/me/joshua/crudetechmod/Blocks/FurnaceGeneratorTileEntity.java#L66 https://github.com/TallYate/CrudeTechMod/blob/faface21edc0ffbce67f8420d25d52a5c44e9b01/src/main/java/me/joshua/crudetechmod/Blocks/FurnaceGeneratorTileEntity.java#L85 use stack.isEmpy()
  5. why are you sending from client you should never do that because the client can be cheating ctx.get().getSender() the sender is only null on the client for that you can use Minecraft.Instance.player (can not be correct) why are you sending a packet from readNBT? the client doesnt save date so sending in readNBT to the server will reset the data on the server
  6. what on earth is this YOU HAVE ACCESS OVER THE ENERGY STORAGE
  7. https://github.com/TallYate/CrudeTechMod/blob/master/src/main/java/me/joshua/crudetechmod/Items/PowerArmor.java#L42 return a ICapabilitySerializable there
  8. WHAT Suppressing this will not work
  9. please note if you want to get power from other mods this will not work. no retrun in initCapabilities ICapabilitySerializable
  10. lol you copied the test mod
  11. no you are expected to have (basic) java knowledge
  12. learn java
  13. should addListener throw a exception if you try to add a GenericListener ??
  14. dont cast use itemStack.getCapability(CapabilityEnergy.ENERGY).ifPresent(storage -> {do your stuff here})
  15. dont use AttachingCapabilitiesEvent override initCapablilty in your item class. you cant do that because items are singeton https://gist.github.com/e3986c6684e536940bba5494a51c13f2
  16. ?? that is all false if you dont know if it has a cap use for interfacing w/ other tileEntitys energyCapabilitiesExternal.ifPesent(lambda goes here) if you know if you have a cap there use energyCapabilitiesExternal.orElsethrow(throw a runtimeexception there)
  17. what is a pvp client sounds like a cheat client
  18. what are you trying to do
  19. plz read the log it is in there
  20. @squidlex what on earth are you talking about @P4xil you are making a field inside a method you cant do that
  21. what are you trying to do from a end user perspective
×
×
  • Create New...

Important Information

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