Jump to content

loordgek

Members
  • Posts

    1910
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by loordgek

  1. oops it is Itemstack good job you copy pasted code that does not work
  2. where did you copy paste it from ??
  3. show your (new) code then ??????? you posted it you dont need documentation for what you are doing really
  4. learn java checkFreeSlot : { // this is not valid java for(int i=0; i > 36; i++) { // this does not work if(Minecraft.getMinecraft().player.inventory.getStackInSlot(i).equals(ItemStack.EMPTY)) { Minecraft.getMinecraft().player.sendMessage(new TextComponentString("Your inventory is full")); break checkFreeSlot; // this is not valid java } } you cant use equals on itemstack use itemstack.isEmpty put the inv check code inside the event method
  5. https://www.curseforge.com/minecraft/mc-mods/libraryex
  6. a i see. you should never do that 1 simpleChannel for each mod do it like so https://github.com/cpw/inventorysorter/blob/master/src/main/java/cpw/mods/inventorysorter/Network.java#L68-L80
  7. what is this doing ????? i can read i promise ? do it like so https://github.com/cpw/inventorysorter/blob/master/src/main/java/cpw/mods/inventorysorter/Network.java#L68-L80
  8. no that is not how java works https://stackoverflow.com/questions/94361/when-do-you-use-javas-override-annotation-and-why
  9. can you put the mod on github ?? why are there 2 users, Tim Graupmann and LoganJohnG doing the same thing ?? team ?
  10. you will not get support here it is not a forge issue and you are using catserver, catserver is illegal because it it shipping minecraft/forge code use sponge https://www.spongepowered.org/
  11. that is for the bedrock version of the game
  12. @Cadiboo never ever do that it makes it impossible to cache the capability https://github.com/MinecraftForge/MinecraftForge/blob/1.14.x/src/main/java/net/minecraftforge/common/util/LazyOptional.java#L294
  13. not really LazyOptional can be used for anything but it intended to be used by cabability ??????? https://github.com/MinecraftForge/MinecraftForge/commit/8e43dfa7a626387556e642f21aeb632e8e96cdba#diff-c3e85f4c50091d558045cf5dc0dac9b4 blame tterrag1098
  14. yes but '' orEmpty " is shorter return NOSE_CAP.orEmpty(cap, holder); vs if (cap == NOSE_CAP){ return holder.cast(); } return LazyOptional.empty();
  15. no the other way was fine @diesieben07 you really need to look at what "orEmpty" does, hint: it is in the name
  16. make a field holding the LazyOptional that makes it possible to cache the capability
  17. dont use 1.13 go to 1.14.X
  18. draco you never invalidate your lazycaps https://github.com/MinecraftForge/MinecraftForge/blob/1.14.x/src/main/java/net/minecraftforge/common/util/LazyOptional.java#L293
  19. and what is so special about your mod, what are you making
  20. https://github.com/MinecraftForge/MinecraftForge/pull/5983
  21. that is not true there are ways to get it to work but it is up to the Fabric team to make it work
×
×
  • Create New...

Important Information

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