Examples of quantityDropped()


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

        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));

            // apparently some things that don't drop blocks (like glass panes without silktouch) return null.
View Full Code Here

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

        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));

            // apparently some things that don't drop blocks (like glass panes without silktouch) return null.
            if (item == null)
                return false;
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.