Examples of damageDropped()


Examples of mods.natura.blocks.crops.CropBlock.damageDropped()

        Block block = accessor.getBlock();
        if (accessor.getBlock() instanceof CropBlock) {
            int meta = accessor.getMetadata();
            CropBlock cropBlock = (CropBlock) block;
           
            return new ItemStack(cropBlock.getCropItem(meta), 1, cropBlock.damageDropped(meta));
        }
        return null;
    }

    @Override
View Full Code Here

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

        int meta = world.getBlockMetadata(x, y, z);

        if(!block.getMaterial().isToolNotRequired() && !ForgeHooks.canToolHarvestBlock(block, meta, stack))
            return false;

        meta = block.damageDropped(meta);

        if (tags.getBoolean("Lava") && block.quantityDropped(meta, 0, random) != 0)
        {
            int amount = block.quantityDropped(random);
            Item item = block.getItemDropped(meta, random, EnchantmentHelper.getFortuneModifier(entity));
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.