Java Code Examples for cpw.mods.fml.common.FMLLog#info()

The following examples show how to use cpw.mods.fml.common.FMLLog#info() . 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: CraftBlock.java    From Thermos with GNU General Public License v3.0 6 votes vote down vote up
public static void dumpMaterials() {
    if (MinecraftServer.getServer().cauldronConfig.dumpMaterials.getValue())
    {
        FMLLog.info("Cauldron Dump Materials is ENABLED. Starting dump...");
        for (int i = 0; i < 32000; i++)
        {
            Material material = Material.getMaterial(i);
            if (material != null)
            {
                FMLLog.info("Found material " + material + " with ID " + i);
            }
        }
        FMLLog.info("Cauldron Dump Materials complete.");
        FMLLog.info("To disable these dumps, set cauldron.dump-materials to false in bukkit.yml.");
    }
}
 
Example 2
Source File: Entity.java    From TickDynamic with MIT License 5 votes vote down vote up
/**
 * Register the instance of IExtendedProperties into the entity's collection.
 * @param identifier The identifier which you can use to retrieve these properties for the entity.
 * @param properties The instanceof IExtendedProperties to register
 * @return The identifier that was used to register the extended properties.  Empty String indicates an error.  If your requested key already existed, this will return a modified one that is unique.
 */
public String registerExtendedProperties(String identifier, IExtendedEntityProperties properties)
{
    if (identifier == null)
    {
        FMLLog.warning("Someone is attempting to register extended properties using a null identifier.  This is not allowed.  Aborting.  This may have caused instability.");
        return "";
    }
    if (properties == null)
    {
        FMLLog.warning("Someone is attempting to register null extended properties.  This is not allowed.  Aborting.  This may have caused instability.");
        return "";
    }

    String baseIdentifier = identifier;
    int identifierModCount = 1;
    while (this.extendedProperties.containsKey(identifier))
    {
        identifier = String.format("%s%d", baseIdentifier, identifierModCount++);
    }

    if (baseIdentifier != identifier)
    {
        FMLLog.info("An attempt was made to register exended properties using an existing key.  The duplicate identifier (%s) has been remapped to %s.", baseIdentifier, identifier);
    }

    this.extendedProperties.put(identifier, properties);
    return identifier;
}
 
Example 3
Source File: PowerTypes.java    From ForbiddenMagic with Do What The F*ck You Want To Public License 5 votes vote down vote up
public static void RegisterPowerType(int id, String name, String chatColor){
	if (getByID(id) == NONE){
		FMLLog.info("Ars Magica 2 >> Attempted to register power type %s with ID of %d, but that ID is already taken!  The type was NOT registered!");
	}else{
		allPowerTypes.add(new PowerTypes(id, name, chatColor));
		FMLLog.info("Ars Magica 2 >> Registered new power type %s with ID %d", name, id);
	}
}
 
Example 4
Source File: AppEngTileMissingException.java    From ExtraCells1 with MIT License 5 votes vote down vote up
@Override
public void printStackTrace() {
	try
	{
		FMLLog.info( "[AppEng] Missing Tile at "+dc.x+", "+dc.y+", "+dc.z+" in +"+dc.getWorld().getWorldInfo().getVanillaDimension() );
	}
	catch( Throwable _ )
	{
		FMLLog.info( "[AppEng] Missing Tile at "+dc.x+", "+dc.y+", "+dc.z );
	}
	super.printStackTrace();
}
 
Example 5
Source File: QCraft.java    From qcraft-mod with Apache License 2.0 4 votes vote down vote up
public static void log( String text )
{
    FMLLog.info("[qCraft] " + text, 0); //Use FML logger instead of Vanilla MC log
}