diff --git a/src/main/java/cr0s/warpdrive/item/ItemAirTank.java b/src/main/java/cr0s/warpdrive/item/ItemAirTank.java index 1ff434c8..62a196ec 100644 --- a/src/main/java/cr0s/warpdrive/item/ItemAirTank.java +++ b/src/main/java/cr0s/warpdrive/item/ItemAirTank.java @@ -1,14 +1,23 @@ package cr0s.warpdrive.item; +import cr0s.warpdrive.Commons; import cr0s.warpdrive.api.IAirContainerItem; import cr0s.warpdrive.config.WarpDriveConfig; import cr0s.warpdrive.data.EnumAirTankTier; +import net.minecraft.client.util.ITooltipFlag; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.ItemStack; import net.minecraft.util.NonNullList; +import net.minecraft.util.text.TextComponentTranslation; +import net.minecraft.world.World; import javax.annotation.Nonnull; +import javax.annotation.Nullable; +import java.util.List; + +import net.minecraftforge.fml.relauncher.Side; +import net.minecraftforge.fml.relauncher.SideOnly; public class ItemAirTank extends ItemAbstractBase implements IAirContainerItem { @@ -95,4 +104,13 @@ public class ItemAirTank extends ItemAbstractBase implements IAirContainerItem { } return new ItemStack(itemStack.getItem(), 1); } + + @Override + @SideOnly(Side.CLIENT) + public void addInformation(@Nonnull final ItemStack itemStack, @Nullable final World world, + @Nonnull final List list, @Nullable final ITooltipFlag advancedItemTooltips) { + super.addInformation(itemStack, world, list, advancedItemTooltips); + + Commons.addTooltip(list, new TextComponentTranslation("item.warpdrive.breathing.air_tank.tooltip.usage").getFormattedText()); + } } diff --git a/src/main/resources/assets/warpdrive/lang/de_de.lang b/src/main/resources/assets/warpdrive/lang/de_de.lang index b7b7510e..4d7e914b 100644 --- a/src/main/resources/assets/warpdrive/lang/de_de.lang +++ b/src/main/resources/assets/warpdrive/lang/de_de.lang @@ -63,6 +63,7 @@ item.warpdrive.breathing.air_tank.canister.name=Luftkanister item.warpdrive.breathing.air_tank.basic.name=Basic Air Tank !!! item.warpdrive.breathing.air_tank.advanced.name=Advanced Air Tank !!! item.warpdrive.breathing.air_tank.superior.name=Superior Air Tank !!! +item.warpdrive.breathing.air_tank.tooltip.usage=§bRechtsklicke einen Luftgenerator um mich zu füllen item.warpdrive.energy.IC2reactorLaserFocus.name=IC2 Reaktor-Laser-Fokus diff --git a/src/main/resources/assets/warpdrive/lang/en_us.lang b/src/main/resources/assets/warpdrive/lang/en_us.lang index 8b959368..6e6eeba8 100644 --- a/src/main/resources/assets/warpdrive/lang/en_us.lang +++ b/src/main/resources/assets/warpdrive/lang/en_us.lang @@ -1,4 +1,4 @@ - + death.attack.warpdrive.asphyxia=%1$s died from asphyxia death.attack.warpdrive.asphyxia.player=%1$s was killed by %2$s using asphyxia death.attack.warpdrive.cold=%1$s died from cold @@ -63,6 +63,7 @@ item.warpdrive.breathing.air_tank.canister.name=Air Canister item.warpdrive.breathing.air_tank.basic.name=Basic Air Tank item.warpdrive.breathing.air_tank.advanced.name=Advanced Air Tank item.warpdrive.breathing.air_tank.superior.name=Superior Air Tank +item.warpdrive.breathing.air_tank.tooltip.usage=§bRight click an Air generator§7 to refill me item.warpdrive.energy.IC2reactorLaserFocus.name=IC2 Reactor Laser Focus diff --git a/src/main/resources/assets/warpdrive/lang/fr_fr.lang b/src/main/resources/assets/warpdrive/lang/fr_fr.lang index 2e6f7e9e..cc1f7f56 100644 --- a/src/main/resources/assets/warpdrive/lang/fr_fr.lang +++ b/src/main/resources/assets/warpdrive/lang/fr_fr.lang @@ -63,6 +63,7 @@ item.warpdrive.breathing.air_tank.canister.name=Cartouche d'air item.warpdrive.breathing.air_tank.basic.name=Réservoir d'air élémentaire item.warpdrive.breathing.air_tank.advanced.name=Réservoir d'air avancé item.warpdrive.breathing.air_tank.superior.name=Réservoir d'air supérieur +item.warpdrive.breathing.air_tank.tooltip.usage=§bClique droit sur un Générateur d'air§r pour me remplir item.warpdrive.energy.IC2reactorLaserFocus.name=Focus laser pour réacteur IC2 diff --git a/src/main/resources/assets/warpdrive/lang/nl_nl.lang b/src/main/resources/assets/warpdrive/lang/nl_nl.lang index 68b9804f..7587ef3f 100644 --- a/src/main/resources/assets/warpdrive/lang/nl_nl.lang +++ b/src/main/resources/assets/warpdrive/lang/nl_nl.lang @@ -63,6 +63,7 @@ item.warpdrive.breathing.air_tank.canister.name=zuurstoffles item.warpdrive.breathing.air_tank.basic.name=Basic Air Tank item.warpdrive.breathing.air_tank.advanced.name=Advanced Air Tank item.warpdrive.breathing.air_tank.superior.name=Superior Air Tank +item.warpdrive.breathing.air_tank.tooltip.usage=§bRight click an Air generator§7 to refill me item.warpdrive.energy.IC2reactorLaserFocus.name=IC2 Reactor Laser Lens diff --git a/src/main/resources/assets/warpdrive/lang/ru_ru.lang b/src/main/resources/assets/warpdrive/lang/ru_ru.lang index 0bcd6260..a47ad8f1 100644 --- a/src/main/resources/assets/warpdrive/lang/ru_ru.lang +++ b/src/main/resources/assets/warpdrive/lang/ru_ru.lang @@ -63,6 +63,7 @@ item.warpdrive.breathing.air_tank.canister.name=Баллон с воздухом item.warpdrive.breathing.air_tank.basic.name=Basic Air Tank item.warpdrive.breathing.air_tank.advanced.name=Advanced Air Tank item.warpdrive.breathing.air_tank.superior.name=Superior Air Tank +item.warpdrive.breathing.air_tank.tooltip.usage=§bRight click an Air generator§7 to refill me item.warpdrive.energy.IC2reactorLaserFocus.name=Фокусировщик лазера реактора IC2 diff --git a/src/main/resources/assets/warpdrive/lang/zh_cn.lang b/src/main/resources/assets/warpdrive/lang/zh_cn.lang index 95e06a39..0ec3c88f 100644 --- a/src/main/resources/assets/warpdrive/lang/zh_cn.lang +++ b/src/main/resources/assets/warpdrive/lang/zh_cn.lang @@ -63,6 +63,7 @@ item.warpdrive.breathing.air_tank.canister.name=空气罐 item.warpdrive.breathing.air_tank.basic.name=基础空气罐 item.warpdrive.breathing.air_tank.advanced.name=先进空气罐 item.warpdrive.breathing.air_tank.superior.name=卓越空气罐 +item.warpdrive.breathing.air_tank.tooltip.usage=§bRight click an Air generator§7 to refill me item.warpdrive.energy.IC2reactorLaserFocus.name=IC2反应堆激光焦点 diff --git a/src/main/resources/assets/warpdrive/lang/zh_tw.lang b/src/main/resources/assets/warpdrive/lang/zh_tw.lang index 3f3f429b..2725a5e1 100644 --- a/src/main/resources/assets/warpdrive/lang/zh_tw.lang +++ b/src/main/resources/assets/warpdrive/lang/zh_tw.lang @@ -63,6 +63,7 @@ item.warpdrive.breathing.air_tank.canister.name=Air Canister item.warpdrive.breathing.air_tank.basic.name=Basic Air Tank item.warpdrive.breathing.air_tank.advanced.name=Advanced Air Tank item.warpdrive.breathing.air_tank.superior.name=Superior Air Tank +item.warpdrive.breathing.air_tank.tooltip.usage=§bRight click an Air generator§7 to refill me item.warpdrive.energy.IC2reactorLaserFocus.name=IC2 反應堆鐳射