Update prayer plugin encapsulation (#3962)

This commit is contained in:
Nathen Sample
2018-06-23 03:16:35 +01:00
committed by Tomas Slusny
parent 42341133b7
commit 1682ba5289
4 changed files with 6 additions and 6 deletions

View File

@@ -28,7 +28,7 @@ import lombok.Getter;
import net.runelite.client.plugins.Plugin; import net.runelite.client.plugins.Plugin;
import net.runelite.client.ui.overlay.infobox.Counter; import net.runelite.client.ui.overlay.infobox.Counter;
public class PrayerCounter extends Counter class PrayerCounter extends Counter
{ {
@Getter @Getter
private final PrayerType prayerType; private final PrayerType prayerType;

View File

@@ -48,7 +48,7 @@ import net.runelite.client.ui.overlay.tooltip.TooltipManager;
import net.runelite.client.util.SwingUtil; import net.runelite.client.util.SwingUtil;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
public class PrayerDoseOverlay extends Overlay class PrayerDoseOverlay extends Overlay
{ {
private static final float PULSE_TIME = 1200f; private static final float PULSE_TIME = 1200f;

View File

@@ -39,14 +39,14 @@ import net.runelite.client.ui.overlay.Overlay;
import net.runelite.client.ui.overlay.OverlayLayer; import net.runelite.client.ui.overlay.OverlayLayer;
import net.runelite.client.ui.overlay.OverlayPosition; import net.runelite.client.ui.overlay.OverlayPosition;
public class PrayerFlickOverlay extends Overlay class PrayerFlickOverlay extends Overlay
{ {
private final Client client; private final Client client;
private boolean prayersActive = false; private boolean prayersActive = false;
private Instant startOfLastTick = Instant.now(); private Instant startOfLastTick = Instant.now();
@Inject @Inject
public PrayerFlickOverlay(Client client) private PrayerFlickOverlay(Client client)
{ {
setPosition(OverlayPosition.DYNAMIC); setPosition(OverlayPosition.DYNAMIC);
setLayer(OverlayLayer.ABOVE_WIDGETS); setLayer(OverlayLayer.ABOVE_WIDGETS);

View File

@@ -32,7 +32,7 @@ import net.runelite.api.ItemID;
@AllArgsConstructor @AllArgsConstructor
@Getter @Getter
public enum PrayerItems enum PrayerItems
{ {
// Blessings // Blessings
PEACEFUL_BLESSING(ItemID.PEACEFUL_BLESSING, 1), PEACEFUL_BLESSING(ItemID.PEACEFUL_BLESSING, 1),
@@ -453,7 +453,7 @@ public enum PrayerItems
} }
} }
public static int getItemPrayerBonus(int itemId) static int getItemPrayerBonus(int itemId)
{ {
Integer value = prayerBonuses.get(itemId); Integer value = prayerBonuses.get(itemId);
return value == null ? 0 : value; return value == null ? 0 : value;