MCPcopy Create free account
hub / github.com/GregTech6/gregtech6 / getToolTipBlastResistance

Method getToolTipBlastResistance

src/main/java/gregapi/data/LH.java:272–272  ·  view source on GitHub ↗
(Block aBlock, double aResistance)

Source from the content-addressed store, hash-verified

270 public static final String percent(long aNumber) {return (aNumber/100) + ((aNumber%100)>9?"."+aNumber%100:".0"+(aNumber%100));}
271
272 public static final String getToolTipBlastResistance(Block aBlock, double aResistance) {return Chat.WHITE + get(LH.TOOLTIP_BLASTRESISTANCE) + Chat.ORANGE + ((int)aResistance) + "." + (((int)(aResistance * 10)) % 10) + (aResistance < 4 ? Chat.BLINKING_RED + " " + get(LH.TOOLTIP_BLAST_RESISTANCE_TERRIBLE) : aResistance < 12 ? Chat.RED + " " + get(LH.TOOLTIP_BLAST_RESISTANCE_GHAST) : aResistance < 16 ? Chat.YELLOW + " " + get(LH.TOOLTIP_BLAST_RESISTANCE_CREEPER) : aResistance <= 40 ? Chat.GREEN + " " + get(LH.TOOLTIP_BLAST_RESISTANCE_TNT) : aResistance < 3330 || COMPAT_IC2 == null || COMPAT_IC2.isExplosionWhitelisted(aBlock) ? Chat.GREEN + " " + get(LH.TOOLTIP_BLAST_RESISTANCE_DYNAMITE) : Chat.BLINKING_CYAN + " " + get(LH.TOOLTIP_BLAST_RESISTANCE_NOT_NUKE));}
273
274 public static final String getToolTipHarvest(Material aMaterial, String aHarvestTool, int aHarvestLevel) {
275 if (aMaterial.isAdventureModeExempt()) {

Callers 5

onItemTooltipMethod · 0.95
addInformationMethod · 0.95
addInformationMethod · 0.95
addInformationMethod · 0.95
scanMethod · 0.95

Calls 2

getMethod · 0.95

Tested by

no test coverage detected