Improved air tanks usability
- tool tip to explain how to use
This commit is contained in:
parent
2b98707e24
commit
b7e18c297f
8 changed files with 26 additions and 1 deletions
|
@ -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<String> list, @Nullable final ITooltipFlag advancedItemTooltips) {
|
||||
super.addInformation(itemStack, world, list, advancedItemTooltips);
|
||||
|
||||
Commons.addTooltip(list, new TextComponentTranslation("item.warpdrive.breathing.air_tank.tooltip.usage").getFormattedText());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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反应堆激光焦点
|
||||
|
||||
|
|
|
@ -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 反應堆鐳射
|
||||
|
||||
|
|
Loading…
Reference in a new issue