Class BetterTranslatableContents

java.lang.Object
net.minecraft.network.chat.contents.TranslatableContents
com.pixelmonmod.api.component.BetterTranslatableContents
All Implemented Interfaces:
net.minecraft.network.chat.ComponentContents

public class BetterTranslatableContents extends net.minecraft.network.chat.contents.TranslatableContents
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.network.chat.ComponentContents

    net.minecraft.network.chat.ComponentContents.Type<T extends net.minecraft.network.chat.ComponentContents>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final TranslatedPlaceholder[]
     
    static final com.mojang.serialization.MapCodec<BetterTranslatableContents>
     
    static final Object[]
     
    static final net.minecraft.network.chat.ComponentContents.Type<BetterTranslatableContents>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.network.chat.MutableComponent
    resolve(net.minecraft.commands.CommandSourceStack p_237512_, net.minecraft.world.entity.Entity p_237513_, int p_237514_)
     
    net.minecraft.network.chat.ComponentContents.Type<?>
     
    <T> Optional<T>
    visit(net.minecraft.network.chat.FormattedText.ContentConsumer<T> p_237519_)
     
    <T> Optional<T>
    visit(net.minecraft.network.chat.FormattedText.StyledContentConsumer<T> p_237521_, net.minecraft.network.chat.Style p_237522_)
     

    Methods inherited from class net.minecraft.network.chat.contents.TranslatableContents

    equals, getArgs, getFallback, getKey, hashCode, isAllowedPrimitiveArgument, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • type

      public net.minecraft.network.chat.ComponentContents.Type<?> type()
      Specified by:
      type in interface net.minecraft.network.chat.ComponentContents
      Overrides:
      type in class net.minecraft.network.chat.contents.TranslatableContents
    • visit

      public <T> Optional<T> visit(net.minecraft.network.chat.FormattedText.StyledContentConsumer<T> p_237521_, net.minecraft.network.chat.Style p_237522_)
      Specified by:
      visit in interface net.minecraft.network.chat.ComponentContents
      Overrides:
      visit in class net.minecraft.network.chat.contents.TranslatableContents
    • visit

      public <T> Optional<T> visit(net.minecraft.network.chat.FormattedText.ContentConsumer<T> p_237519_)
      Specified by:
      visit in interface net.minecraft.network.chat.ComponentContents
      Overrides:
      visit in class net.minecraft.network.chat.contents.TranslatableContents
    • resolve

      public net.minecraft.network.chat.MutableComponent resolve(@Nullable net.minecraft.commands.CommandSourceStack p_237512_, @Nullable net.minecraft.world.entity.Entity p_237513_, int p_237514_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      resolve in interface net.minecraft.network.chat.ComponentContents
      Overrides:
      resolve in class net.minecraft.network.chat.contents.TranslatableContents
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException