test_class.declarator: COOKING_MESSAGES = {
  		"You successfully cook a shark.",
  		"You successfully cook an anglerfish.",
  		"You manage to cook a tuna.",
  		"You cook the karambwan. It looks delicious.",
  		"You roast a lobster.",
  		"You cook a bass.",
  		"You successfully bake a tasty garden pie.",
  		"You dry a piece of meat and extract the sinew."
  	}
test_class.modifier: private static final
test_class.original_string: private static final String[] COOKING_MESSAGES = {
  		"You successfully cook a shark.",
  		"You successfully cook an anglerfish.",
  		"You manage to cook a tuna.",
  		"You cook the karambwan. It looks delicious.",
  		"You roast a lobster.",
  		"You cook a bass.",
  		"You successfully bake a tasty garden pie.",
  		"You dry a piece of meat and extract the sinew."
  	};
test_class.type: String[]
test_class.var_name: COOKING_MESSAGES
test_class.declarator: cookingPlugin
test_class.modifier: @Inject
test_class.original_string: @Inject
  	CookingPlugin cookingPlugin;
test_class.type: CookingPlugin
test_class.var_name: cookingPlugin
test_class.declarator: client
test_class.modifier: @Mock
  	@Bind
test_class.original_string: @Mock
  	@Bind
  	Client client;
test_class.type: Client
test_class.var_name: client
test_class.declarator: infoBoxManager
test_class.modifier: @Mock
  	@Bind
test_class.original_string: @Mock
  	@Bind
  	InfoBoxManager infoBoxManager;
test_class.type: InfoBoxManager
test_class.var_name: infoBoxManager
test_class.declarator: itemManager
test_class.modifier: @Mock
  	@Bind
test_class.original_string: @Mock
  	@Bind
  	ItemManager itemManager;
test_class.type: ItemManager
test_class.var_name: itemManager
test_class.declarator: config
test_class.modifier: @Mock
  	@Bind
test_class.original_string: @Mock
  	@Bind
  	CookingConfig config;
test_class.type: CookingConfig
test_class.var_name: config
test_class.declarator: cookingOverlay
test_class.modifier: @Mock
  	@Bind
test_class.original_string: @Mock
  	@Bind
  	CookingOverlay cookingOverlay;
test_class.type: CookingOverlay
test_class.var_name: cookingOverlay
test_class.declarator: overlayManager
test_class.modifier: @Mock
  	@Bind
test_class.original_string: @Mock
  	@Bind
  	OverlayManager overlayManager;
test_class.type: OverlayManager
test_class.var_name: overlayManager
test_class.file: runelite-client/src/test/java/net/runelite/client/plugins/cooking/CookingPluginTest.java
test_class.identifier: CookingPluginTest
test_case.body: @Test
  	public void testOnChatMessage()
  	{
  		for (String message : COOKING_MESSAGES)
  		{
  			ChatMessage chatMessage = new ChatMessage(null, ChatMessageType.SPAM, "", message, "", 0);
  			cookingPlugin.onChatMessage(chatMessage);
  		}
  
  		CookingSession cookingSession = cookingPlugin.getSession();
  		assertNotNull(cookingSession);
  		assertEquals(COOKING_MESSAGES.length, cookingSession.getCookAmount());
  	}
test_case.class_method_signature: CookingPluginTest.testOnChatMessage()
test_case.full_signature: @Test public void testOnChatMessage()
test_case.identifier: testOnChatMessage
test_case.invocations: onChatMessage getSession assertNotNull assertEquals getCookAmount
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testOnChatMessage()
focal_class.declarator: client
focal_class.modifier: @Inject
  	private
focal_class.original_string: @Inject
  	private Client client;
focal_class.type: Client
focal_class.var_name: client
focal_class.declarator: config
focal_class.modifier: @Inject
  	private
focal_class.original_string: @Inject
  	private CookingConfig config;
focal_class.type: CookingConfig
focal_class.var_name: config
focal_class.declarator: overlay
focal_class.modifier: @Inject
  	private
focal_class.original_string: @Inject
  	private CookingOverlay overlay;
focal_class.type: CookingOverlay
focal_class.var_name: overlay
focal_class.declarator: overlayManager
focal_class.modifier: @Inject
  	private
focal_class.original_string: @Inject
  	private OverlayManager overlayManager;
focal_class.type: OverlayManager
focal_class.var_name: overlayManager
focal_class.declarator: infoBoxManager
focal_class.modifier: @Inject
  	private
focal_class.original_string: @Inject
  	private InfoBoxManager infoBoxManager;
focal_class.type: InfoBoxManager
focal_class.var_name: infoBoxManager
focal_class.declarator: itemManager
focal_class.modifier: @Inject
  	private
focal_class.original_string: @Inject
  	private ItemManager itemManager;
focal_class.type: ItemManager
focal_class.var_name: itemManager
focal_class.declarator: session
focal_class.modifier: @Getter(AccessLevel.PACKAGE)
  	private
focal_class.original_string: @Getter(AccessLevel.PACKAGE)
  	private CookingSession session;
focal_class.type: CookingSession
focal_class.var_name: session
focal_class.file: runelite-client/src/main/java/net/runelite/client/plugins/cooking/CookingPlugin.java
focal_class.identifier: CookingPlugin
focal_class.class_method_signature: CookingPlugin.getConfig(ConfigManager configManager)
focal_class.full_signature: @Provides CookingConfig getConfig(ConfigManager configManager)
focal_class.identifier: getConfig
focal_class.modifiers: @Provides
focal_class.parameters: (ConfigManager configManager)
focal_class.return: CookingConfig
focal_class.signature: CookingConfig getConfig(ConfigManager configManager)
focal_class.class_method_signature: CookingPlugin.startUp()
focal_class.full_signature: @Override protected void startUp()
focal_class.identifier: startUp
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void startUp()
focal_class.class_method_signature: CookingPlugin.shutDown()
focal_class.full_signature: @Override protected void shutDown()
focal_class.identifier: shutDown
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void shutDown()
focal_class.class_method_signature: CookingPlugin.onOverlayMenuClicked(OverlayMenuClicked overlayMenuClicked)
focal_class.full_signature: @Subscribe public void onOverlayMenuClicked(OverlayMenuClicked overlayMenuClicked)
focal_class.identifier: onOverlayMenuClicked
focal_class.modifiers: @Subscribe public
focal_class.parameters: (OverlayMenuClicked overlayMenuClicked)
focal_class.return: void
focal_class.signature: void onOverlayMenuClicked(OverlayMenuClicked overlayMenuClicked)
focal_class.class_method_signature: CookingPlugin.onGameTick(GameTick gameTick)
focal_class.full_signature: @Subscribe public void onGameTick(GameTick gameTick)
focal_class.identifier: onGameTick
focal_class.modifiers: @Subscribe public
focal_class.parameters: (GameTick gameTick)
focal_class.return: void
focal_class.signature: void onGameTick(GameTick gameTick)
focal_class.class_method_signature: CookingPlugin.onGraphicChanged(GraphicChanged graphicChanged)
focal_class.full_signature: @Subscribe public void onGraphicChanged(GraphicChanged graphicChanged)
focal_class.identifier: onGraphicChanged
focal_class.modifiers: @Subscribe public
focal_class.parameters: (GraphicChanged graphicChanged)
focal_class.return: void
focal_class.signature: void onGraphicChanged(GraphicChanged graphicChanged)
focal_class.class_method_signature: CookingPlugin.onChatMessage(ChatMessage event)
focal_class.full_signature: @Subscribe public void onChatMessage(ChatMessage event)
focal_class.identifier: onChatMessage
focal_class.modifiers: @Subscribe public
focal_class.parameters: (ChatMessage event)
focal_class.return: void
focal_class.signature: void onChatMessage(ChatMessage event)
focal_class.superclass: extends Plugin
focal_method.body: @Subscribe
  	public void onChatMessage(ChatMessage event)
  	{
  		if (event.getType() != ChatMessageType.SPAM)
  		{
  			return;
  		}
  
  		final String message = event.getMessage();
  
  		if (message.startsWith("You successfully cook")
  			|| message.startsWith("You successfully bake")
  			|| message.startsWith("You manage to cook")
  			|| message.startsWith("You roast a")
  			|| message.startsWith("You cook")
  			|| message.startsWith("You dry a piece of meat"))
  		{
  			if (session == null)
  			{
  				session = new CookingSession();
  			}
  
  			session.updateLastCookingAction();
  			session.increaseCookAmount();
  
  		}
  		else if (message.startsWith("You accidentally burn")
  			|| message.startsWith("You accidentally spoil"))
  		{
  			if (session == null)
  			{
  				session = new CookingSession();
  			}
  
  			session.updateLastCookingAction();
  			session.increaseBurnAmount();
  		}
  	}
focal_method.class_method_signature: CookingPlugin.onChatMessage(ChatMessage event)
focal_method.full_signature: @Subscribe public void onChatMessage(ChatMessage event)
focal_method.identifier: onChatMessage
focal_method.invocations: getType getMessage startsWith startsWith startsWith startsWith startsWith startsWith updateLastCookingAction increaseCookAmount startsWith startsWith updateLastCookingAction increaseBurnAmount
focal_method.modifiers: @Subscribe public
focal_method.parameters: (ChatMessage event)
focal_method.return: void
focal_method.signature: void onChatMessage(ChatMessage event)