mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-26 15:03:07 +00:00
27 lines
754 B
Java
27 lines
754 B
Java
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);
|
|
}
|