Search in sources :

Example 11 with TranslatableText

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

the class DarkLordArmor method appendTooltip.

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

Example 12 with TranslatableText

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

the class ZombieDoomArmor method appendTooltip.

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

Example 13 with TranslatableText

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

the class DemonicDoomArmor method appendTooltip.

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

Example 14 with TranslatableText

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

the class DoomArmor method appendTooltip.

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

Example 15 with TranslatableText

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

the class EmberDoomArmor method appendTooltip.

@Override
public void appendTooltip(ItemStack stack, World world, List<Text> tooltip, TooltipContext context) {
    tooltip.add(new TranslatableText("doom.emberarmor.text").formatted(Formatting.YELLOW).formatted(Formatting.ITALIC));
    super.appendTooltip(stack, world, tooltip, context);
}
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