mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
30 lines
1.2 KiB
Java
30 lines
1.2 KiB
Java
package com.hbm.tileentity;
|
|
|
|
import java.util.List;
|
|
|
|
import com.hbm.items.machine.ItemMachineUpgrade.UpgradeType;
|
|
import com.hbm.util.I18nUtil;
|
|
|
|
import net.minecraft.block.Block;
|
|
import net.minecraft.util.EnumChatFormatting;
|
|
|
|
public interface IUpgradeInfoProvider {
|
|
|
|
/** If any of the automated display stuff should be applied for this upgrade. A level of 0 is used by the GUI's indicator, as opposed to the item tooltips */
|
|
public boolean canProvideInfo(UpgradeType type, int level, boolean extendedInfo);
|
|
public void provideInfo(UpgradeType type, int level, List<String> info, boolean extendedInfo);
|
|
public int getMaxLevel(UpgradeType type);
|
|
|
|
public static String getStandardLabel(Block block) {
|
|
return EnumChatFormatting.GREEN.YELLOW + ">>> " + I18nUtil.resolveKey(block.getUnlocalizedName() + ".name") + " <<<";
|
|
}
|
|
|
|
public static final String KEY_ACID = "upgrade.acid";
|
|
public static final String KEY_BURN = "upgrade.burn";
|
|
public static final String KEY_CONSUMPTION = "upgrade.consumption";
|
|
public static final String KEY_DELAY = "upgrade.delay";
|
|
public static final String KEY_EFFICIENCY = "upgrade.efficiency";
|
|
public static final String KEY_FORTUNE = "upgrade.fortune";
|
|
public static final String KEY_RANGE = "upgrade.range";
|
|
}
|