Sign in to follow this
Followers
0
forge libraries org scala 1.8.9
By
MrWitherr, in General Discussion
-
Recently Browsing
No registered users viewing this page.
-
Posts
-
By diesieben07 · Posted
You create a new buffer. You write an int to it. Then you ignore this buffer and do nothing with it. You need to use the version of openGui that lets you write the data. In your IContainerFactory you need to read it from the buffer. -
is it correct? //MyModEntity public ITextComponent getDisplayName() { return new StringTextComponent("Name"); } @Nullable @Override public Container createMenu(int id, PlayerInventory playerInventory, PlayerEntity playerEntity) { return new MyModContainer(id,playerInventory, world); } }; PacketBuffer buf = new PacketBuffer(Unpooled.buffer()); buf.writeVarInt(this.getEntityId()); NetworkHooks.openGui((ServerPlayerEntity) playerEntity,iNamedContainerProvider); and how can i get it in my container class //MyModContainer world.getEntityByID().getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY).ifPresent(h -> { addSlot(new SlotItemHandler(h,0,79,18)); });
-
By diesieben07 · Posted
Why did you post these files? I think I am done here. -
When I reproduced it as another mod, it worked fine. I'll port the code to this mod and test it. I would appreciate it if you could tell me why it doesn't work. https://github.com/Yuki-At/RenderMod
-
bronze.json copper.json creative.json diamond.json electrum.json emerald.json gold.json invar.json iron.json platinum.json silver.json steel.json stone.json wood.json
-
-
Topics
-
Who's Online (See full list)