public class IronBackpacksHelper
extends java.lang.Object
| Constructor and Description |
|---|
IronBackpacksHelper() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
areItemsEqualAndStackable(net.minecraft.item.ItemStack itemStack1,
net.minecraft.item.ItemStack itemStack2)
Note - only checks the first itemStack for stackability, the other is assumed to be a filler amount and isn't checked
|
static boolean |
areItemsEqualForStacking(net.minecraft.item.ItemStack itemStack1,
net.minecraft.item.ItemStack itemStack2)
Note - Doesn't check the stack size or isStackable of either, that must be done elsewhere
This just checks if the items are equal enough to be stacked
|
static boolean |
areItemStacksTheSame(net.minecraft.item.ItemStack itemStack1,
net.minecraft.item.ItemStack itemStack2) |
static void |
equipBackpackFromKeybinding(net.minecraft.entity.player.EntityPlayer player) |
static int |
getAdditionalUpgradesTimesApplied(net.minecraft.item.ItemStack stack)
Gets how many 'additional upgrade' upgrades have been applied to the backpack.
|
static int |
getAdditionalUpgradesUpgradeCount(net.minecraft.item.ItemStack stack)
Gets how many 'additional upgrade' points have been applied to the backpack.
|
static net.minecraft.item.ItemStack |
getBackpack(net.minecraft.entity.player.EntityPlayer player)
Gets the backpack to open.
|
static net.minecraft.item.ItemStack |
getBackpackFromPlayersInventory(net.minecraft.entity.player.EntityPlayer player)
Gets the backpack form the player's inventory
|
static int |
getTotalUpgradePointsFromNBT(net.minecraft.item.ItemStack stack)
Returns the total possible upgrade points available.
|
static int |
getUpgradePointsUsed(int[] upgrades)
Gets the point value of upgrades used.
|
static int[] |
getUpgradesAppliedFromNBT(net.minecraft.item.ItemStack stack)
Get upgrades stored in the backpack's NBT data
|
static void |
spawnEntityBackpack(net.minecraft.item.ItemStack backpack,
net.minecraft.entity.player.EntityPlayer player) |
public static net.minecraft.item.ItemStack getBackpack(net.minecraft.entity.player.EntityPlayer player)
player - - the player with the backpackpublic static net.minecraft.item.ItemStack getBackpackFromPlayersInventory(net.minecraft.entity.player.EntityPlayer player)
player - - the player with the backpackpublic static int[] getUpgradesAppliedFromNBT(net.minecraft.item.ItemStack stack)
stack - - the backpack to checkpublic static int getUpgradePointsUsed(int[] upgrades)
upgrades - - the upgrades appliedpublic static int getTotalUpgradePointsFromNBT(net.minecraft.item.ItemStack stack)
stack - - the itemstack to checkpublic static int getAdditionalUpgradesUpgradeCount(net.minecraft.item.ItemStack stack)
stack - - the backpackpublic static int getAdditionalUpgradesTimesApplied(net.minecraft.item.ItemStack stack)
stack - - the backpackpublic static void equipBackpackFromKeybinding(net.minecraft.entity.player.EntityPlayer player)
public static void spawnEntityBackpack(net.minecraft.item.ItemStack backpack,
net.minecraft.entity.player.EntityPlayer player)
public static boolean areItemStacksTheSame(net.minecraft.item.ItemStack itemStack1,
net.minecraft.item.ItemStack itemStack2)
public static boolean areItemsEqualForStacking(net.minecraft.item.ItemStack itemStack1,
net.minecraft.item.ItemStack itemStack2)
public static boolean areItemsEqualAndStackable(net.minecraft.item.ItemStack itemStack1,
net.minecraft.item.ItemStack itemStack2)