BlockSkull.java 文件源码

java
阅读 27 收藏 0 点赞 0 评论 0

项目:Cauldron 作者:
@Override
public ArrayList<ItemStack> getDrops(World p_149749_1_, int p_149749_2_, int p_149749_3_, int p_149749_4_, int p_149749_6_, int fortune)
{
    ArrayList<ItemStack> ret = new ArrayList<ItemStack>();
    {
        if ((p_149749_6_ & 8) == 0)
        {
            ItemStack itemstack = new ItemStack(Items.skull, 1, this.getDamageValue(p_149749_1_, p_149749_2_, p_149749_3_, p_149749_4_));
            TileEntitySkull tileentityskull = (TileEntitySkull)p_149749_1_.getTileEntity(p_149749_2_, p_149749_3_, p_149749_4_);

            if (tileentityskull == null) return ret;

            if (tileentityskull.func_145904_a() == 3 && tileentityskull.func_152108_a() != null)
            {
                itemstack.setTagCompound(new NBTTagCompound());
                NBTTagCompound nbttagcompound = new NBTTagCompound();
                NBTUtil.func_152460_a(nbttagcompound, tileentityskull.func_152108_a());
                itemstack.getTagCompound().setTag("SkullOwner", nbttagcompound);
            }

            ret.add(itemstack);
        }
    }
    return ret;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号