2013-05-07 22:12:07 +02:00
|
|
|
package ic2.api.item;
|
2013-04-13 16:35:13 +02:00
|
|
|
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Armor items implementing this can be considered metal armor.
|
|
|
|
*
|
|
|
|
* Currently used for determining which boots can be used to slide up a magnetic pole.
|
|
|
|
*/
|
|
|
|
public interface IMetalArmor {
|
|
|
|
/**
|
|
|
|
* Determine if the given armor piece is metal armor.
|
|
|
|
*
|
|
|
|
* @param itemstack Armor piece as worn by the player
|
|
|
|
* @param player The player
|
|
|
|
* @return Whether the armor piece is metal armor
|
|
|
|
*/
|
|
|
|
public boolean isMetalArmor(ItemStack itemstack, EntityPlayer player);
|
|
|
|
}
|