This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Creates the given item with randomized attributes and such. | |
* @param stack | |
* @param player | |
*/ | |
public static void createWeapon(ItemStack stack, EntityPlayer player) | |
{ | |
NBTTagCompound nbt = NBTHelper.loadStackNBT(stack); | |
IPlayerInformation playerInfo = player.getCapability(CapabilityPlayerInformation.PLAYER_INFORMATION, null); |
OlderNewer