Java Code Examples for net.minecraft.init.Items.minecart()

The following are Jave code examples for showing how to use minecart() of the net.minecraft.init.Items class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: DecompiledMinecraft   File: EntityMinecart.java   View Source Code Vote up 6 votes
public void killMinecart(DamageSource p_94095_1_)
{
    this.setDead();

    if (this.worldObj.getGameRules().getBoolean("doEntityDrops"))
    {
        ItemStack itemstack = new ItemStack(Items.minecart, 1);

        if (this.entityName != null)
        {
            itemstack.setStackDisplayName(this.entityName);
        }

        this.entityDropItem(itemstack, 0.0F);
    }
}
 
Example 2
Project: DecompiledMinecraft   File: EntityMinecart.java   View Source Code Vote up 6 votes
public void killMinecart(DamageSource p_94095_1_)
{
    this.setDead();

    if (this.worldObj.getGameRules().getBoolean("doEntityDrops"))
    {
        ItemStack itemstack = new ItemStack(Items.minecart, 1);

        if (this.entityName != null)
        {
            itemstack.setStackDisplayName(this.entityName);
        }

        this.entityDropItem(itemstack, 0.0F);
    }
}
 
Example 3
Project: BaseClient   File: EntityMinecart.java   View Source Code Vote up 6 votes
public void killMinecart(DamageSource p_94095_1_)
{
    this.setDead();

    if (this.worldObj.getGameRules().getBoolean("doEntityDrops"))
    {
        ItemStack itemstack = new ItemStack(Items.minecart, 1);

        if (this.entityName != null)
        {
            itemstack.setStackDisplayName(this.entityName);
        }

        this.entityDropItem(itemstack, 0.0F);
    }
}
 
Example 4
Project: BaseClient   File: EntityMinecart.java   View Source Code Vote up 6 votes
public void killMinecart(DamageSource p_94095_1_)
{
    this.setDead();

    if (this.worldObj.getGameRules().getBoolean("doEntityDrops"))
    {
        ItemStack itemstack = new ItemStack(Items.minecart, 1);

        if (this.entityName != null)
        {
            itemstack.setStackDisplayName(this.entityName);
        }

        this.entityDropItem(itemstack, 0.0F);
    }
}