Run formatter
This commit is contained in:
parent
61c44a831b
commit
08258fd6ef
606 changed files with 13464 additions and 22975 deletions
|
@ -9,7 +9,6 @@ import WayofTime.bloodmagic.client.IVariantProvider;
|
|||
import WayofTime.bloodmagic.util.helper.TextHelper;
|
||||
import net.minecraft.client.util.ITooltipFlag;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.NonNullList;
|
||||
|
@ -23,10 +22,8 @@ import java.util.ArrayList;
|
|||
import java.util.List;
|
||||
import java.util.Map.Entry;
|
||||
|
||||
public class ItemUpgradeTrainer extends Item implements IUpgradeTrainer, IVariantProvider
|
||||
{
|
||||
public ItemUpgradeTrainer()
|
||||
{
|
||||
public class ItemUpgradeTrainer extends Item implements IUpgradeTrainer, IVariantProvider {
|
||||
public ItemUpgradeTrainer() {
|
||||
super();
|
||||
|
||||
setCreativeTab(BloodMagic.TAB_TOMES);
|
||||
|
@ -37,14 +34,12 @@ public class ItemUpgradeTrainer extends Item implements IUpgradeTrainer, IVarian
|
|||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void getSubItems(CreativeTabs creativeTab, NonNullList<ItemStack> list)
|
||||
{
|
||||
public void getSubItems(CreativeTabs creativeTab, NonNullList<ItemStack> list) {
|
||||
if (!isInCreativeTab(creativeTab))
|
||||
return;
|
||||
|
||||
list.add(new ItemStack(this));
|
||||
for (Entry<String, Integer> entry : LivingArmourHandler.upgradeMaxLevelMap.entrySet())
|
||||
{
|
||||
for (Entry<String, Integer> entry : LivingArmourHandler.upgradeMaxLevelMap.entrySet()) {
|
||||
String key = entry.getKey();
|
||||
ItemStack stack = new ItemStack(this);
|
||||
LivingUpgrades.setKey(stack, key);
|
||||
|
@ -54,26 +49,22 @@ public class ItemUpgradeTrainer extends Item implements IUpgradeTrainer, IVarian
|
|||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void addInformation(ItemStack stack, World world, List<String> tooltip, ITooltipFlag flag)
|
||||
{
|
||||
public void addInformation(ItemStack stack, World world, List<String> tooltip, ITooltipFlag flag) {
|
||||
// tooltip.addAll(Arrays.asList(TextHelper.cutLongString(TextHelper.localizeEffect("tooltip.bloodmagic.livingArmour"))));
|
||||
if (!stack.hasTagCompound())
|
||||
return;
|
||||
LivingArmourUpgrade upgrade = LivingUpgrades.getUpgrade(stack);
|
||||
if (upgrade != null)
|
||||
{
|
||||
if (upgrade != null) {
|
||||
tooltip.add(TextHelper.localize(upgrade.getUnlocalizedName()));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> getTrainedUpgrades(ItemStack stack)
|
||||
{
|
||||
public List<String> getTrainedUpgrades(ItemStack stack) {
|
||||
List<String> keyList = new ArrayList<String>();
|
||||
String key = LivingUpgrades.getKey(stack);
|
||||
|
||||
if (!key.isEmpty())
|
||||
{
|
||||
if (!key.isEmpty()) {
|
||||
keyList.add(key);
|
||||
}
|
||||
|
||||
|
@ -81,10 +72,8 @@ public class ItemUpgradeTrainer extends Item implements IUpgradeTrainer, IVarian
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean setTrainedUpgrades(ItemStack stack, List<String> keys)
|
||||
{
|
||||
if (keys.isEmpty())
|
||||
{
|
||||
public boolean setTrainedUpgrades(ItemStack stack, List<String> keys) {
|
||||
if (keys.isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -93,8 +82,7 @@ public class ItemUpgradeTrainer extends Item implements IUpgradeTrainer, IVarian
|
|||
}
|
||||
|
||||
@Override
|
||||
public List<Pair<Integer, String>> getVariants()
|
||||
{
|
||||
public List<Pair<Integer, String>> getVariants() {
|
||||
List<Pair<Integer, String>> ret = new ArrayList<Pair<Integer, String>>();
|
||||
ret.add(new ImmutablePair<Integer, String>(0, "type=upgradetrainer"));
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue