APISonar


buildcraft.api.core.BCLog.logger.log

> buildcraft > api > core > BCLog > logger > log
buildcraft APIs api APIs core APIs BCLog APIs logger APIs log APIs

Example 1
private static void printList(Level level, List<ResourceLocation> list) {
        for (ResourceLocation location : list) {
            BCLog.logger.log(level, "*    - " + location);
        }
    }
Example 2
private double parseDouble(Property prop, double defaultValue) {
		String value = prop.getString();
		double parsed;
		try {
			parsed = Double.parseDouble(value);
		} catch (NumberFormatException ex) {
			BCLog.logger.log(Level.WARN, "Failed to parse config tag, reseting to default: " + prop.getName(), ex);
			prop.set(defaultValue);
			return defaultValue;
		}
		return parsed;
	}
Example 3
public void sendToWorld(BuildCraftPacket packet, World world) {
		try {
			channels.get(Side.SERVER).attr(FMLOutboundHandler.FML_MESSAGETARGET)
					.set(FMLOutboundHandler.OutboundTarget.DIMENSION);
			channels.get(Side.SERVER).attr(FMLOutboundHandler.FML_MESSAGETARGETARGS)
					.set(world.provider.dimensionId);
			channels.get(Side.SERVER).writeOutbound(packet);
		} catch (Throwable t) {
			BCLog.logger.log(Level.WARN, "sendToWorld crash", t);
		}
	}