类 MinecraftForge
java.lang.Object
net.minecraftforge.common.MinecraftForge
-
字段概要
字段修饰符和类型字段说明static final net.minecraftforge.eventbus.api.IEventBus
The EventBus for all the Forge Events.private static final org.apache.logging.log4j.Marker
(专用程序包) static final ForgeInternalHandler
private static final org.apache.logging.log4j.Logger
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static void
Method invoked by FML before any other mods are loaded.static void
registerConfigScreen
(BiFunction<Minecraft, Screen, Screen> screenFunction) Register a config screen for the active mod container.static void
registerConfigScreen
(Function<Screen, Screen> screenFunction) Register a config screen for the active mod container.
-
字段详细资料
-
EVENT_BUS
public static final net.minecraftforge.eventbus.api.IEventBus EVENT_BUSThe EventBus for all the Forge Events. Events marked withIModBusEvent
belong on the ModBus and not this bus -
INTERNAL_HANDLER
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
FORGE
private static final org.apache.logging.log4j.Marker FORGE
-
-
构造器详细资料
-
MinecraftForge
public MinecraftForge()
-
-
方法详细资料
-
initialize
public static void initialize()Method invoked by FML before any other mods are loaded. -
registerConfigScreen
Register a config screen for the active mod container.- 参数:
screenFunction
- A function that takes the mods screen as an argument and returns your config screen to show when the player clicks the config button for your mod on the mods screen.You should call
Minecraft.setScreen(Screen)
with the provided mods screen for the action of your close button, usingScreen.minecraft
to get the client instance.- 另请参阅:
-
registerConfigScreen
Register a config screen for the active mod container.- 参数:
screenFunction
- A function that takes theMinecraft
client instance and the mods screen as arguments and returns your config screen to show when the player clicks the config button for your mod on the mods screen.You should call
Minecraft.setScreen(Screen)
with the provided client instance and mods screen for the action of your close button.- 另请参阅:
-