类 BrandingControl
java.lang.Object
net.minecraftforge.internal.BrandingControl
Controls the title screen brandings for the game.
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static void
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.static void
forEachLine
(boolean includeMC, boolean reverse, ObjIntConsumer<String> lineConsumer) Iterates over each branding line, passing the line and its index to the consumer.static String
Gets the branding to use in place of the default"vanilla"
branding.getBrandings
(boolean includeMC, boolean reverse) Gets the branding lines to display over the copyright line.private static void
onResourceManagerReload
(ResourceManager resourceManager) The reload listener for the branding control.
-
字段详细资料
-
brandings
-
brandingsNoMC
-
-
构造器详细资料
-
BrandingControl
private BrandingControl()
-
-
方法详细资料
-
computeBranding
private static void computeBranding() -
getBrandings
-
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 linereverse
- Whether to iterate in reverse orderlineConsumer
- The consumer to accept each line and its index
-
forEachAboveCopyrightLine
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
Gets the branding to use in place of the default"vanilla"
branding.- 返回:
- The branding to use
-
resourceManagerReloadListener
The reload listener for the branding control. On reload, the brandings are recomputed incomputeBranding()
.- 返回:
- The reload listener
-
onResourceManagerReload
-