Package me.taylorkelly.bigbrother.datablock

Examples of me.taylorkelly.bigbrother.datablock.DeltaChest


    private void chestCheck(String player, Block block) {
        if (block.getState() instanceof Chest) {
            Chest chest = (Chest) block.getState();
            ItemStack[] destroyedStack=new ItemStack[chest.getInventory().getSize()];
            ItemStack[] contents = chest.getInventory().getContents();
            bystanders.add(new DeltaChest(player, chest, contents,destroyedStack));
        }
    }
View Full Code Here


                int z = pi.getOpenedChest().getZ();
                if(world.getBlockAt(x, y, z).getState() instanceof Chest) {
                    Chest chest = (Chest)world.getBlockAt(x, y, z).getState();
                    ItemStack[] orig = pi.getOldChestContents();
                    ItemStack[] latest = chest.getInventory().getContents();
                    DeltaChest dc = new DeltaChest(pi.getName(), chest, orig, latest);
                    dc.send();
                }
            }
            BBUsersTable.getInstance().userOpenedChest(pi.getName(), null, null); // Chest closed.
        }
    }
View Full Code Here

TOP

Related Classes of me.taylorkelly.bigbrother.datablock.DeltaChest

Copyright © 2018 www.massapicom. 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.