-
Posts
-
I get it but my container have a data parametr now protected MyModContainer(int id, PlayerInventory playerInventory,World world,PacketBuffer data) { super(RegObj.MOD_CONTAINER.get(), id); this.playerInventory = new InvWrapper(playerInventory); world.getEntityByID( data.readInt()).getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY).ifPresent(h -> { addSlot(new SlotItemHandler(h,0,79,18)); }); layoutPlayerInventory(7,54); } and my anonymous inner class asks for data parametr too. if i'll leave it null container wont work INamedContainerProvider iNamedContainerProvider = new INamedContainerProvider() { @Override public ITextComponent getDisplayName() { return new StringTextComponent("loh"); } @Nullable @Override public Container createMenu(int id, PlayerInventory playerInventory, PlayerEntity playerEntity) { return new MyModContainer(id,playerInventory, world,extraDataWriter); } };
-
By diesieben07 · Posted
If you get that error you are using Java 15 still. However Forge has a recent update that should fix this. -
By diesieben07 · Posted
1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
-
Topics
-
Who's Online (See full list)