package mods.railcraft.api.carts;
import net.minecraft.entity.item.EntityMinecart;
import net.minecraft.item.ItemStack;
/**
* Some helper functions to make interacting with carts simpler.
*
* This interface is implemented by CartBase.
*
* @author CovertJaguar <http://www.railcraft.info>
* @see CartBase
*/
public interface IMinecart {
/**
* Returns true if the Minecart matches the item provided. Generally just
* stack.isItemEqual(cart.getCartItem()), but some carts may need more
* control (the Tank Cart for example).
*
* @param stack the Filter
* @param cart the Cart
* @return true if the item matches the cart
*/
public boolean doesCartMatchFilter(ItemStack stack, EntityMinecart cart);
}