blob: 8371fc1fa75c2c4a62274b7f932e85b07e5d2909 [file] [log] [blame] [raw]
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);
}