com/spacechase0/minecraft/componentequipment/entity/ArrowEntityBase.java
/**
     * Called by a player entity when they collide with an entity
     */
Called by a player entity when they collide with an entity
Called by a player entity when they collide with an entity
public void onCollideWithPlayer(EntityPlayer p_70100_1_)
    {
        if (!this.worldObj.isRemote && this.inGround && this.arrowShake <= 0)
        {
            boolean flag = this.canBePickedUp == 1 || this.canBePickedUp == 2 && p_70100_1_.capabilities.isCreativeMode;
            if (this.canBePickedUp == 1 && !p_70100_1_.inventory.addItemStackToInventory(new ItemStack(Items.arrow, 1)))
            {
                flag = false;
            }
            if (flag)
            {
                this.playSound("random.pop", 0.2F, ((this.rand.nextFloat() - this.rand.nextFloat()) * 0.7F + 1.0F) * 2.0F);
                p_70100_1_.onItemPickup(this, 1);
                this.setDead();
            }
        }
    }
public void onCollideWithPlayer ( EntityPlayer p_70100_1_ ) { if ( ! this . worldObj . isRemote && this . inGround && this . arrowShake <= 0 ) { boolean flag = this . canBePickedUp == 1 || this . canBePickedUp == 2 && p_70100_1_ . capabilities . isCreativeMode ; if ( this . canBePickedUp == 1 && ! p_70100_1_ . inventory . addItemStackToInventory ( new ItemStack ( Items . arrow , 1 ) ) ) { flag = false ; } if ( flag ) { this . playSound ( "random.pop" , 0.2F , ( ( this . rand . nextFloat ( ) - this . rand . nextFloat ( ) ) * 0.7F + 1.0F ) * 2.0F ) ; p_70100_1_ . onItemPickup ( this , 1 ) ; this . setDead ( ) ; } } }
Called by a player entity when they collide with an entity
Called by a player entity when they collide with an entity