Examples of canSilkHarvest()


Examples of net.minecraft.block.Block.canSilkHarvest()

    protected boolean isValidPosition(ChunkPosition pos){
        Block block = worldCache.getBlock(pos.chunkPosX, pos.chunkPosY, pos.chunkPosZ);
        if(!worldCache.isAirBlock(pos.chunkPosX, pos.chunkPosY, pos.chunkPosZ) && !ignoreBlock(block)) {
            int meta = worldCache.getBlockMetadata(pos.chunkPosX, pos.chunkPosY, pos.chunkPosZ);
            List<ItemStack> droppedStacks;
            if(block.canSilkHarvest(drone.worldObj, drone.getFakePlayer(), pos.chunkPosX, pos.chunkPosY, pos.chunkPosZ, meta)) {
                droppedStacks = Arrays.asList(new ItemStack[]{getSilkTouchBlock(block, meta)});
            } else {
                droppedStacks = block.getDrops(drone.worldObj, pos.chunkPosX, pos.chunkPosY, pos.chunkPosZ, meta, 0);
            }
            for(ItemStack droppedStack : droppedStacks) {
View Full Code Here

Examples of net.minecraft.block.Block.canSilkHarvest()

            Block block = worldCache.getBlock(x, y, z);

            if(!block.isAir(worldCache, x, y, z) && !ignoreBlock(block)) {
                int meta = worldCache.getBlockMetadata(x, y, z);
                List<ItemStack> droppedStacks;
                if(block.canSilkHarvest(drone.worldObj, drone.getFakePlayer(), x, y, z, meta)) {
                    droppedStacks = Arrays.asList(new ItemStack[]{getSilkTouchBlock(block, meta)});
                } else {
                    droppedStacks = block.getDrops(drone.worldObj, x, y, z, meta, 0);
                }
                for(ItemStack droppedStack : droppedStacks) {
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.