Search in sources :

Example 16 with TranslatableText

use of net.minecraft.text.TranslatableText in project MCDoom by AzureDoom.

the class GoldDoomArmor method appendTooltip.

@Override
public void appendTooltip(ItemStack stack, World world, List<Text> tooltip, TooltipContext context) {
    tooltip.add(new TranslatableText("doom.goldarmor.text").formatted(Formatting.YELLOW).formatted(Formatting.ITALIC));
    super.appendTooltip(stack, world, tooltip, context);
}
Also used : TranslatableText(net.minecraft.text.TranslatableText)

Example 17 with TranslatableText

use of net.minecraft.text.TranslatableText in project MCDoom by AzureDoom.

the class MidnightDoomArmor method appendTooltip.

@Override
public void appendTooltip(ItemStack stack, World world, List<Text> tooltip, TooltipContext context) {
    tooltip.add(new TranslatableText("doom.midnightarmor.text").formatted(Formatting.YELLOW).formatted(Formatting.ITALIC));
    super.appendTooltip(stack, world, tooltip, context);
}
Also used : TranslatableText(net.minecraft.text.TranslatableText)

Example 18 with TranslatableText

use of net.minecraft.text.TranslatableText in project MCDoom by AzureDoom.

the class ArgentPlateItem method appendTooltip.

@Override
public void appendTooltip(ItemStack stack, World world, List<Text> tooltip, TooltipContext context) {
    tooltip.add(new TranslatableText("doom.argent_plate.text").formatted(Formatting.RED).formatted(Formatting.ITALIC));
    super.appendTooltip(stack, world, tooltip, context);
}
Also used : TranslatableText(net.minecraft.text.TranslatableText)

Example 19 with TranslatableText

use of net.minecraft.text.TranslatableText in project MCDoom by AzureDoom.

the class SwordCrucibleItem method appendTooltip.

@Override
public void appendTooltip(ItemStack stack, World world, List<Text> tooltip, TooltipContext context) {
    tooltip.add(new TranslatableText("doom.crucible_sword.text").formatted(Formatting.RED).formatted(Formatting.ITALIC));
    tooltip.add(new TranslatableText("Ammo: " + (stack.getMaxDamage() - stack.getDamage() - 1) + " / " + (stack.getMaxDamage() - 1)).formatted(Formatting.ITALIC));
    super.appendTooltip(stack, world, tooltip, context);
}
Also used : TranslatableText(net.minecraft.text.TranslatableText)

Example 20 with TranslatableText

use of net.minecraft.text.TranslatableText in project MCDoom by AzureDoom.

the class GrenadeItem method appendTooltip.

@Override
public void appendTooltip(ItemStack stack, World world, List<Text> tooltip, TooltipContext context) {
    super.appendTooltip(stack, world, tooltip, context);
    tooltip.add(new TranslatableText("doom.doomed_credit.text").formatted(Formatting.RED).formatted(Formatting.ITALIC));
    tooltip.add(new TranslatableText("doom.doomed_credit1.text").formatted(Formatting.RED).formatted(Formatting.ITALIC));
}
Also used : TranslatableText(net.minecraft.text.TranslatableText)

Aggregations

TranslatableText (net.minecraft.text.TranslatableText)161 LiteralText (net.minecraft.text.LiteralText)30 Text (net.minecraft.text.Text)19 ItemStack (net.minecraft.item.ItemStack)16 ArrayList (java.util.ArrayList)15 ButtonWidget (net.minecraft.client.gui.widget.ButtonWidget)14 List (java.util.List)12 MinecraftClient (net.minecraft.client.MinecraftClient)12 ServerPlayerEntity (net.minecraft.server.network.ServerPlayerEntity)12 SPEInterface (eu.pb4.armorstandeditor.helpers.SPEInterface)9 LivingEntity (net.minecraft.entity.LivingEntity)9 PlayerEntity (net.minecraft.entity.player.PlayerEntity)8 ListTag (net.minecraft.nbt.ListTag)8 Formatting (net.minecraft.util.Formatting)8 BlockPos (net.minecraft.util.math.BlockPos)8 Environment (net.fabricmc.api.Environment)7 AbstractButtonWidget (net.minecraft.client.gui.widget.AbstractButtonWidget)7 Entity (net.minecraft.entity.Entity)7 Collection (java.util.Collection)6 ArmorStandPreset (eu.pb4.armorstandeditor.config.ArmorStandPreset)5