Method
addChat
(Player player, String chatMessage)
Source from the content-addressed store, hash-verified
| 448 | } |
| 449 | |
| 450 | public void addChat(Player player, String chatMessage) |
| 451 | { |
| 452 | String name = null; |
| 453 | Color color = null; |
| 454 | |
| 455 | if(player!=null) |
| 456 | { |
| 457 | name = player.getName(); |
| 458 | color = player.getColor(); |
| 459 | } |
| 460 | |
| 461 | chatBox.addText(name, color, chatMessage); |
| 462 | this.repaint(); |
| 463 | } |
| 464 | |
| 465 | public void paintComponent(Graphics g) |
| 466 | { |
Callers
nothing calls this directly
Tested by
no test coverage detected