• Recently Browsing

    No registered users viewing this page.

  • Posts

    • Sorry this might sound  dumb, I am new to working with minecraft mods. I was wondering if you could tell me the code location
    • Why i need cal super.getCapability? Is new EntityArmorInvWrapper(entity) doing same thing? LivingEntity. it returns handlers which are LazyOptional<IItemHandlerModifiable>[] and they contains same things what i have already created private final net.minecraftforge.common.util.LazyOptional<?>[] handlers = net.minecraftforge.items.wrapper.EntityEquipmentInvWrapper.create(this); public <T> net.minecraftforge.common.util.LazyOptional<T> getCapability(net.minecraftforge.common.capabilities.Capability<T> capability, @Nullable Direction facing) { if (this.isAlive() && capability == net.minecraftforge.items.CapabilityItemHandler.ITEM_HANDLER_CAPABILITY) { if (facing == null) return handlers[2].cast(); else if (facing.getAxis().isVertical()) return handlers[0].cast(); else if (facing.getAxis().isHorizontal()) return handlers[1].cast(); } return super.getCapability(capability, facing);   EntityEquipmentInvWrapper public static LazyOptional<IItemHandlerModifiable>[] create(LivingEntity entity) { @SuppressWarnings("unchecked") LazyOptional<IItemHandlerModifiable>[] ret = new LazyOptional[3]; ret[0] = LazyOptional.of(() -> new EntityHandsInvWrapper(entity)); ret[1] = LazyOptional.of(() -> new EntityArmorInvWrapper(entity)); ret[2] = LazyOptional.of(() -> new CombinedInvWrapper(ret[0].orElse(null), ret[1].orElse(null))); return ret; }
    • If super.getCapability give me the default handlers so what new EntityArmorInvWrapper(entity) do 
    • Me and my friends started a modded server the version is 1.16.1 and we have 23 mods installed on it. We were playing it in vanilla at first but then after some hours we started to add mods onto the server (not sure if this caused the issue) we noticed that somethings were not coming up in the crafting table output box for example I was trying to make a bowl but the bowl wasn't popping out to put it in my inventory we arent sure what's the issue since in single player we can craft both the modded items and vanilla items but in the server we cant craft them at all. I've been searching for a solution all day I cant seem to find anyone else talk about it or have a solution to it.    On the right is the modded server trying to craft a modded item but not showing and on the right is in single player mode doing the same thing and getting the item.   I would post the server log but I'm not sure how to get the log either if someone can tell me how to retrieve the log as well that would be much appreciated.
    • There isn't one. Documentation (such as there is) is all inside the code itself.
  • Topics

  • Who's Online (See full list)