Java Code Examples for net.minecraftforge.fml.common.FMLLog#log()
The following examples show how to use
net.minecraftforge.fml.common.FMLLog#log() .
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: TargetClassVisitor.java From GregTech with GNU Lesser General Public License v3.0 | 5 votes |
@SuppressWarnings("deprecation") @Override public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) { MethodVisitor visitor = super.visitMethod(access, name, desc, signature, exceptions); String methodKey = name + desc; if (this.methodKey.matches(name, desc)) { FMLLog.log("GTCETransformer", Level.INFO, "Patched method %s in %s successfully", methodKey, className); this.foundMethod = true; return visitorCreator.apply(visitor); } return visitor; }
Example 2
Source File: TargetClassVisitor.java From GregTech with GNU Lesser General Public License v3.0 | 5 votes |
@SuppressWarnings("deprecation") @Override public void visitEnd() { super.visitEnd(); if (!foundMethod) { FMLLog.log("ArmorRenderTransformer", Level.FATAL, "Failed to find method %s in %s.", methodKey, className); throw new RuntimeException("Failed to patch method " + methodKey + ", loading cannot continue. Check your environment is correct."); } }
Example 3
Source File: ModLogger.java From AgriCraft with MIT License | 5 votes |
public void log(Level logLevel, Object source, String format, Object... objects) { try { FMLLog.log(String.valueOf(source), logLevel, MessageFormat.format(format, objects)); } catch (IllegalArgumentException ex) { // This is bad... FMLLog.log(String.valueOf(source), logLevel, format); } }
Example 4
Source File: YUNoMakeGoodMap.java From YUNoMakeGoodMap with Apache License 2.0 | 5 votes |
@EventHandler public void load(FMLInitializationEvent event) { FMLLog.log(Level.INFO, "YUNoMakeGoodMap Initalized"); worldType = new VoidWorldType(); DimensionManager.unregisterDimension(-1); DimensionManager.unregisterDimension(0); DimensionManager.unregisterDimension(1); DimensionManager.registerDimension(-1, DimensionType.register("Nether", "_nether", -1, WorldProviderHellVoid.class, false)); DimensionManager.registerDimension(0, DimensionType.register("Overworld", "", 0, WorldProviderSurfaceVoid.class, true)); DimensionManager.registerDimension(1, DimensionType.register("The End", "_end", 1, WorldProviderEndVoid.class, false)); }
Example 5
Source File: LogHelper.java From Fullscreen-Windowed-Minecraft with BSD 2-Clause "Simplified" License | 4 votes |
public static void log(Level logLevel, Object object) { FMLLog.log(Reference.MOD_NAME, logLevel, String.valueOf(object)); }
Example 6
Source File: LogHelper.java From Moo-Fluids with GNU General Public License v3.0 | 4 votes |
public static void log(Level logLevel, Object object) { FMLLog.log(ModInformation.MOD_NAME, logLevel, String.valueOf(object)); }