类 BrandingControl

java.lang.Object
net.minecraftforge.internal.BrandingControl

public final class BrandingControl extends Object
Controls the title screen brandings for the game.
  • 字段详细资料

    • brandings

      private static List<String> brandings
    • brandingsNoMC

      private static List<String> brandingsNoMC
  • 构造器详细资料

    • BrandingControl

      private BrandingControl()
  • 方法详细资料

    • computeBranding

      private static void computeBranding()
    • getBrandings

      private static List<String> getBrandings(boolean includeMC, boolean reverse)
    • getOverCopyrightBrandings

      public static List<String> getOverCopyrightBrandings()
      Gets the branding lines to display over the copyright line. This is usually a message when Forge has an update.
      返回:
      The branding lines to display
    • forEachLine

      public static void forEachLine(boolean includeMC, boolean reverse, ObjIntConsumer<String> lineConsumer)
      Iterates over each branding line, passing the line and its index to the consumer.
      参数:
      includeMC - Whether to include the Minecraft version line
      reverse - Whether to iterate in reverse order
      lineConsumer - The consumer to accept each line and its index
    • forEachAboveCopyrightLine

      public static void forEachAboveCopyrightLine(ObjIntConsumer<String> lineConsumer)
      Iterates over each branding line that should be displayed above the copyright line, passing the line and its index to the consumer.
      参数:
      lineConsumer - The consumer to accept each line and its index
    • getBranding

      public static String getBranding()
      Gets the branding to use in place of the default "vanilla" branding.
      返回:
      The branding to use
    • resourceManagerReloadListener

      public static ResourceManagerReloadListener resourceManagerReloadListener()
      The reload listener for the branding control. On reload, the brandings are recomputed in computeBranding().
      返回:
      The reload listener
    • onResourceManagerReload

      private static void onResourceManagerReload(ResourceManager resourceManager)