Class ExpandAdvancementType

java.lang.Object
com.blamejared.crafttweaker.natives.advancement.ExpandAdvancementType

@ZenRegister public class ExpandAdvancementType extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.network.chat.MutableComponent
    createAnnouncement(net.minecraft.advancements.AdvancementType internal, net.minecraft.advancements.AdvancementHolder advancement, net.minecraft.server.level.ServerPlayer serverPlayer)
    Creates an announcement component for the advancement type.
    static net.minecraft.ChatFormatting
    getChatColor(net.minecraft.advancements.AdvancementType internal)
    Gets the chat color of the advancement type.
    static net.minecraft.network.chat.Component
    getDisplayName(net.minecraft.advancements.AdvancementType internal)
    Gets the display name of the advancement type.
    static String
    getName(net.minecraft.advancements.AdvancementType internal)
    Gets the name of the advancement type.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExpandAdvancementType

      public ExpandAdvancementType()
  • Method Details

    • getName

      public static String getName(net.minecraft.advancements.AdvancementType internal)
      Gets the name of the advancement type.
      Returns:
      The name of the advancement type.
    • getChatColor

      public static net.minecraft.ChatFormatting getChatColor(net.minecraft.advancements.AdvancementType internal)
      Gets the chat color of the advancement type.
      Returns:
      The chat color of the advancement type.
    • getDisplayName

      public static net.minecraft.network.chat.Component getDisplayName(net.minecraft.advancements.AdvancementType internal)
      Gets the display name of the advancement type.
      Returns:
      The display name of the advancement type.
    • createAnnouncement

      public static net.minecraft.network.chat.MutableComponent createAnnouncement(net.minecraft.advancements.AdvancementType internal, net.minecraft.advancements.AdvancementHolder advancement, net.minecraft.server.level.ServerPlayer serverPlayer)
      Creates an announcement component for the advancement type.
      Parameters:
      advancement - The advancement to create the announcement for.
      serverPlayer - The server player to create the announcement for.
      Returns:
      The announcement for the advancement type.