Package net.minecraft.tileentity

Examples of net.minecraft.tileentity.TileEntityChest.updateContainingBlockInfo()


                chestContents[i] = null;
            }
            // Clear the old block out
            world.setBlock(X, Y, Z, Blocks.air, 0, 3);
            // Force the Chest TE to reset it's knowledge of neighbouring blocks
            tec.updateContainingBlockInfo();
            // Force the Chest TE to update any neighbours so they update next
            // tick
            tec.checkForAdjacentChests();
            // And put in our block instead
            world.setBlock(X, Y, Z, block, newchest.getType().ordinal(), 3);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.