Skip to content

Commit

Permalink
timers plugin: Reduce visibilities
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightfirecat committed Jul 18, 2018
1 parent 394135e commit 479cd39
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
import net.runelite.client.game.SpriteManager;

@Slf4j
public enum GameTimer
enum GameTimer
{
STAMINA(ItemID.STAMINA_POTION4, GameTimerImageType.ITEM, "Stamina", 2, ChronoUnit.MINUTES),
ANTIFIRE(ItemID.ANTIFIRE_POTION4, GameTimerImageType.ITEM, "Antifire", 6, ChronoUnit.MINUTES),
Expand Down Expand Up @@ -101,7 +101,7 @@ public enum GameTimer
this(imageId, idType, description, null, time, unit);
}

public BufferedImage getImage(ItemManager itemManager, SpriteManager spriteManager)
BufferedImage getImage(ItemManager itemManager, SpriteManager spriteManager)
{
if (image != null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
import net.runelite.client.ui.overlay.infobox.InfoBoxPriority;
import net.runelite.client.ui.overlay.infobox.Timer;

public class TimerTimer extends Timer
class TimerTimer extends Timer
{
private final GameTimer timer;

public TimerTimer(GameTimer timer, Plugin plugin, BufferedImage image)
TimerTimer(GameTimer timer, Plugin plugin, BufferedImage image)
{
super(timer.getDuration().toMillis(), ChronoUnit.MILLIS, image, plugin);
this.timer = timer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ public void onItemContainerChanged(ItemContainerChanged itemContainerChanged)
}
}

public void createGameTimer(GameTimer timer)
private void createGameTimer(GameTimer timer)
{
removeGameTimer(timer);

Expand All @@ -606,7 +606,7 @@ public void createGameTimer(GameTimer timer)
infoBoxManager.addInfoBox(t);
}

public void removeGameTimer(GameTimer timer)
private void removeGameTimer(GameTimer timer)
{
infoBoxManager.removeIf(t -> t instanceof TimerTimer && ((TimerTimer) t).getTimer() == timer);
}
Expand Down

0 comments on commit 479cd39

Please sign in to comment.