public interface IRarmorModuleItem
| Modifier and Type | Method and Description |
|---|---|
boolean |
canInstall(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.inventory.Slot slot,
net.minecraft.item.ItemStack stack,
IRarmorData currentData)
Gets if this module can be installed into the given slot
|
boolean |
canUninstall(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.inventory.Slot slot,
net.minecraft.item.ItemStack stack,
IRarmorData currentData)
Gets if this module can be uninstalled from the given slot
Please don't just return false on this, because then the module will have to stay in the slot forever :(
|
java.lang.String[] |
getModuleIdentifiers(net.minecraft.item.ItemStack stack)
Gets the identifiers of the modules that this item is representing
|
java.lang.String[] getModuleIdentifiers(net.minecraft.item.ItemStack stack)
stack - The stackboolean canInstall(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.inventory.Slot slot,
net.minecraft.item.ItemStack stack,
IRarmorData currentData)
player - The player that is trying to install thisslot - The slot it is trying to be installed intostack - The stackcurrentData - The current Rarmor Databoolean canUninstall(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.inventory.Slot slot,
net.minecraft.item.ItemStack stack,
IRarmorData currentData)
player - The player that is trying to uninstall thisslot - The slot it is trying to be uninstalled fromstack - The stackcurrentData - The current Rarmor Data