Examples of storeBlock()


Examples of com.sk89q.craftbook.blockbag.NearbyChestBlockBag.storeBlock()

                MinecartInterface.Type type = minecart.getType();

                if (type == MinecartInterface.Type.REGULAR) {
                    try {
                        blockBag.storeBlock(ItemType.MINECART);
                        minecart.remove();
                    } catch (BlockBagException e) {
                    }
                } else if (type == MinecartInterface.Type.STORAGE) {
                    try {
View Full Code Here

Examples of com.sk89q.craftbook.blockbag.NearbyChestBlockBag.storeBlock()

                    try {
                        InventoryUtil.moveItemArrayToChestBag(
                                (StorageMinecartInterface) minecart, blockBag);

                        if (collectType.equalsIgnoreCase("Storage")) {
                            blockBag.storeBlock(ItemType.STORAGE_MINECART);
                        } else {
                            blockBag.storeBlock(ItemType.MINECART);
                            blockBag.storeBlock(BlockType.CHEST);
                        }
View Full Code Here

Examples of com.sk89q.craftbook.blockbag.NearbyChestBlockBag.storeBlock()

                                (StorageMinecartInterface) minecart, blockBag);

                        if (collectType.equalsIgnoreCase("Storage")) {
                            blockBag.storeBlock(ItemType.STORAGE_MINECART);
                        } else {
                            blockBag.storeBlock(ItemType.MINECART);
                            blockBag.storeBlock(BlockType.CHEST);
                        }

                        minecart.remove();
                    } catch (BlockBagException e) {
View Full Code Here

Examples of com.sk89q.craftbook.blockbag.NearbyChestBlockBag.storeBlock()

                        if (collectType.equalsIgnoreCase("Storage")) {
                            blockBag.storeBlock(ItemType.STORAGE_MINECART);
                        } else {
                            blockBag.storeBlock(ItemType.MINECART);
                            blockBag.storeBlock(BlockType.CHEST);
                        }

                        minecart.remove();
                    } catch (BlockBagException e) {
                        // Ran out of space
View Full Code Here

Examples of com.sk89q.craftbook.blockbag.NearbyChestBlockBag.storeBlock()

                        // Ran out of space
                    }
                } else if (type == MinecartInterface.Type.POWERED) {
                    try {
                        if (collectType.equalsIgnoreCase("Powered")) {
                            blockBag.storeBlock(ItemType.POWERED_MINECART);
                        } else {
                            blockBag.storeBlock(ItemType.MINECART);
                            blockBag.storeBlock(BlockType.FURNACE);
                        }
                        minecart.remove();
View Full Code Here

Examples of com.sk89q.craftbook.blockbag.NearbyChestBlockBag.storeBlock()

                } else if (type == MinecartInterface.Type.POWERED) {
                    try {
                        if (collectType.equalsIgnoreCase("Powered")) {
                            blockBag.storeBlock(ItemType.POWERED_MINECART);
                        } else {
                            blockBag.storeBlock(ItemType.MINECART);
                            blockBag.storeBlock(BlockType.FURNACE);
                        }
                        minecart.remove();
                    } catch (BlockBagException e) {
                        // Ran out of space
View Full Code Here

Examples of com.sk89q.craftbook.blockbag.NearbyChestBlockBag.storeBlock()

                    try {
                        if (collectType.equalsIgnoreCase("Powered")) {
                            blockBag.storeBlock(ItemType.POWERED_MINECART);
                        } else {
                            blockBag.storeBlock(ItemType.MINECART);
                            blockBag.storeBlock(BlockType.FURNACE);
                        }
                        minecart.remove();
                    } catch (BlockBagException e) {
                        // Ran out of space
                    }
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.