Posted August 16, 20205 yr I've been struggling to find a way to check if a chest is attached to another one forming a double chest. 1) Get the chest size and see if its larger than a singel chest: chest.getSizeInventory() Does not work for me. It always retuns the value for a single chest. 2) I have been trying find out if a chest is single or attached to another via BlockStates: net.minecraft.state.IProperty iProperty; tileEntity.getBlockState().get(iProperty); Or: tileEntity.getBlockState().get(net.minecraft.state.properties.ChestType); Nothing has worked so far. I'm unsure as to what the parameter of .get() is. How do i find this Property?
August 16, 20205 yr Author How do I do that? At the moment i have: IInventory chest = (IInventory) tileEntity; With tileEntity being a TileEntitiy. Edited August 16, 20205 yr by wmbt
August 16, 20205 yr tileEntity.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY); Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.