Advertisement
jadenquinn

IMinecart.java

Sep 28th, 2018
381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.04 KB | None | 0 0
  1. /*
  2.  * ******************************************************************************
  3.  *  Copyright 2011-2015 CovertJaguar
  4.  *
  5.  *  This work (the API) is licensed under the "MIT" License, see LICENSE.md for details.
  6.  * ***************************************************************************
  7.  */
  8.  
  9. package mods.railcraft.api.carts;
  10.  
  11. import net.minecraft.entity.item.EntityMinecart;
  12. import net.minecraft.item.ItemStack;
  13.  
  14. /**
  15.  * Some helper functions to make interacting with carts simpler.
  16.  * <p/>
  17.  * This interface is implemented by CartBase.
  18.  *
  19.  * @author CovertJaguar <http://www.railcraft.info>
  20.  */
  21. public interface IMinecart {
  22.  
  23.     /**
  24.      * Returns true if the Minecart matches the item provided. Generally just
  25.      * stack.isItemEqual(cart.getCartItem()), but some carts may need more
  26.      * control (the Tank Cart for example).
  27.      *
  28.      * @param stack the Filter
  29.      * @param cart  the Cart
  30.      * @return true if the item matches the cart
  31.      */
  32.     boolean doesCartMatchFilter(ItemStack stack, EntityMinecart cart);
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement