net.minecraftforge.fml.event.lifecycle.FMLLoadCompleteEvent Java Examples
The following examples show how to use
net.minecraftforge.fml.event.lifecycle.FMLLoadCompleteEvent.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ClientProxy.java From Better-Sprinting with Mozilla Public License 2.0 | 6 votes |
@Override public void onLoaded(FMLLoadCompleteEvent e){ Minecraft mc = Minecraft.getInstance(); mc.execute(() -> { GameSettings settings = mc.gameSettings; settings.keyBindings = ArrayUtils.addAll(settings.keyBindings, ClientModManager.keyBindSprintToggle, ClientModManager.keyBindSneakToggle, ClientModManager.keyBindOptionsMenu ); if (BetterSprintingMod.config.isNew()){ ClientSettings.firstTimeSetup(); } // this should work whether it's called before or after Forge's post-load GameSettings.loadOptions call ClientSettings.keyInfoSprintHold.writeInto(ClientModManager.keyBindSprintHold); ClientSettings.keyInfoSprintToggle.writeInto(ClientModManager.keyBindSprintToggle); ClientSettings.keyInfoSneakToggle.writeInto(ClientModManager.keyBindSneakToggle); ClientSettings.keyInfoOptionsMenu.writeInto(ClientModManager.keyBindOptionsMenu); KeyBinding.resetKeyBindingArrayAndHash(); }); }
Example #2
Source File: BetterSprintingMod.java From Better-Sprinting with Mozilla Public License 2.0 | 4 votes |
@SubscribeEvent public static void onLoadComplete(final FMLLoadCompleteEvent e){ proxy.onLoaded(e); }
Example #3
Source File: ServerProxy.java From Better-Sprinting with Mozilla Public License 2.0 | 4 votes |
@Override public void onLoaded(FMLLoadCompleteEvent e){}
Example #4
Source File: XRay.java From XRay-Mod with GNU General Public License v3.0 | 4 votes |
private void onLoadComplete(FMLLoadCompleteEvent event) { gameBlockStore.populate(); }
Example #5
Source File: BetterSprintingProxy.java From Better-Sprinting with Mozilla Public License 2.0 | votes |
public abstract void onLoaded(FMLLoadCompleteEvent e);