    001package net.minecraft.entity.item;
    002
    003import net.minecraft.block.Block;
    004import net.minecraft.util.DamageSource;
    005import net.minecraft.world.World;
    006
    007public class EntityMinecartChest extends EntityMinecartContainer
    008{
    009    public EntityMinecartChest(World par1World)
    010    {
    011        super(par1World);
    012    }
    013
    014    public EntityMinecartChest(World par1, double par2, double par4, double par6)
    015    {
    016        super(par1, par2, par4, par6);
    017    }
    018
    019    public void killMinecart(DamageSource par1DamageSource)
    020    {
    021        super.killMinecart(par1DamageSource);
    022        this.dropItemWithOffset(Block.chest.blockID, 1, 0.0F);
    023    }
    024
    025    /**
    026     * Returns the number of slots in the inventory.
    027     */
    028    public int getSizeInventory()
    029    {
    030        return 27;
    031    }
    032
    033    public int getMinecartType()
    034    {
    035        return 1;
    036    }
    037
    038    public Block getDefaultDisplayTile()
    039    {
    040        return Block.chest;
    041    }
    042
    043    public int getDefaultDisplayTileOffset()
    044    {
    045        return 8;
    046    }
    047}