Sign in to follow this
Followers
0
[1.12.2] Blockstate with item transforms doesn't load
By
MCrafterzz, in Modder Support
-
Recently Browsing
No registered users viewing this page.
-
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. -
By diesieben07 · Posted
Here you write the entity ID. Now you need to read it in your IContainerFactory. That extraDataWriter stuff doesn't work and makes no sense.
-
-
Topics
-
Who's Online (See full list)