make injected fields private
You should never want to expose instance variables in the class to public, and you always want to either create getters/setters for them or make them private.
This commit is contained in:
@@ -56,13 +56,13 @@ import net.runelite.http.api.ws.messages.LoginResponse;
|
|||||||
public class AccountPlugin extends Plugin
|
public class AccountPlugin extends Plugin
|
||||||
{
|
{
|
||||||
@Inject
|
@Inject
|
||||||
SessionManager sessionManager;
|
private SessionManager sessionManager;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
ClientUI ui;
|
private ClientUI ui;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
ScheduledExecutorService executor;
|
private ScheduledExecutorService executor;
|
||||||
|
|
||||||
private NavigationButton loginButton;
|
private NavigationButton loginButton;
|
||||||
private NavigationButton logoutButton;
|
private NavigationButton logoutButton;
|
||||||
|
|||||||
@@ -65,13 +65,13 @@ public class AttackIndicatorPlugin extends Plugin
|
|||||||
private final Table<WeaponType, WidgetInfo, Boolean> widgetsToHide = HashBasedTable.create();
|
private final Table<WeaponType, WidgetInfo, Boolean> widgetsToHide = HashBasedTable.create();
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
Client client;
|
private Client client;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
AttackIndicatorConfig config;
|
private AttackIndicatorConfig config;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
AttackIndicatorOverlay overlay;
|
private AttackIndicatorOverlay overlay;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void configure(Binder binder)
|
public void configure(Binder binder)
|
||||||
|
|||||||
@@ -65,13 +65,13 @@ public class BarbarianAssaultPlugin extends Plugin
|
|||||||
private int inGameBit = 0;
|
private int inGameBit = 0;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
Client client;
|
private Client client;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
BarbarianAssaultConfig config;
|
private BarbarianAssaultConfig config;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
BarbarianAssaultOverlay overlay;
|
private BarbarianAssaultOverlay overlay;
|
||||||
|
|
||||||
@Provides
|
@Provides
|
||||||
BarbarianAssaultConfig provideConfig(ConfigManager configManager)
|
BarbarianAssaultConfig provideConfig(ConfigManager configManager)
|
||||||
|
|||||||
@@ -55,13 +55,13 @@ public class BoostsPlugin extends Plugin
|
|||||||
};
|
};
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
InfoBoxManager infoBoxManager;
|
private InfoBoxManager infoBoxManager;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
BoostsOverlay boostsOverlay;
|
private BoostsOverlay boostsOverlay;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
BoostsConfig config;
|
private BoostsConfig config;
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
private Skill[] shownSkills;
|
private Skill[] shownSkills;
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ import net.runelite.client.ui.overlay.infobox.InfoBoxManager;
|
|||||||
public class BossTimersPlugin extends Plugin
|
public class BossTimersPlugin extends Plugin
|
||||||
{
|
{
|
||||||
@Inject
|
@Inject
|
||||||
InfoBoxManager infoBoxManager;
|
private InfoBoxManager infoBoxManager;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void shutDown() throws Exception
|
protected void shutDown() throws Exception
|
||||||
|
|||||||
@@ -64,13 +64,13 @@ public class CannonPlugin extends Plugin
|
|||||||
net.runelite.api.Point myCannon;
|
net.runelite.api.Point myCannon;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
Notifier notifier;
|
private Notifier notifier;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
CannonOverlay cannonOverlay;
|
private CannonOverlay cannonOverlay;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
CannonConfig config;
|
private CannonConfig config;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
private Client client;
|
private Client client;
|
||||||
|
|||||||
@@ -68,19 +68,19 @@ public class ChatCommandsPlugin extends Plugin
|
|||||||
private final HiscoreClient hiscoreClient = new HiscoreClient();
|
private final HiscoreClient hiscoreClient = new HiscoreClient();
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
Client client;
|
private Client client;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
ChatCommandsConfig config;
|
private ChatCommandsConfig config;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
ItemManager itemManager;
|
private ItemManager itemManager;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
ChatMessageManager chatMessageManager;
|
private ChatMessageManager chatMessageManager;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
ScheduledExecutorService executor;
|
private ScheduledExecutorService executor;
|
||||||
|
|
||||||
@Provides
|
@Provides
|
||||||
ChatCommandsConfig provideConfig(ConfigManager configManager)
|
ChatCommandsConfig provideConfig(ConfigManager configManager)
|
||||||
|
|||||||
@@ -76,10 +76,10 @@ public class ClanChatPlugin extends Plugin
|
|||||||
private int modIconsLength;
|
private int modIconsLength;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
Client client;
|
private Client client;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
ClanChatConfig config;
|
private ClanChatConfig config;
|
||||||
|
|
||||||
@Provides
|
@Provides
|
||||||
ClanChatConfig provideConfig(ConfigManager configManager)
|
ClanChatConfig provideConfig(ConfigManager configManager)
|
||||||
|
|||||||
@@ -46,13 +46,13 @@ import net.runelite.client.task.Schedule;
|
|||||||
public class ClueScrollPlugin extends Plugin
|
public class ClueScrollPlugin extends Plugin
|
||||||
{
|
{
|
||||||
@Inject
|
@Inject
|
||||||
Client client;
|
private Client client;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
ClueScrollConfig config;
|
private ClueScrollConfig config;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
ClueScrollOverlay clueScrollOverlay;
|
private ClueScrollOverlay clueScrollOverlay;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void configure(Binder binder)
|
public void configure(Binder binder)
|
||||||
|
|||||||
@@ -42,10 +42,10 @@ import net.runelite.client.ui.NavigationButton;
|
|||||||
public class ConfigPlugin extends Plugin
|
public class ConfigPlugin extends Plugin
|
||||||
{
|
{
|
||||||
@Inject
|
@Inject
|
||||||
ClientUI ui;
|
private ClientUI ui;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
ConfigManager configManager;
|
private ConfigManager configManager;
|
||||||
|
|
||||||
private ConfigPanel configPanel;
|
private ConfigPanel configPanel;
|
||||||
private NavigationButton navButton;
|
private NavigationButton navButton;
|
||||||
|
|||||||
@@ -43,10 +43,10 @@ import net.runelite.client.ui.overlay.Overlay;
|
|||||||
public class DevToolsPlugin extends Plugin
|
public class DevToolsPlugin extends Plugin
|
||||||
{
|
{
|
||||||
@Inject
|
@Inject
|
||||||
ClientUI ui;
|
private ClientUI ui;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
DevToolsOverlay overlay;
|
private DevToolsOverlay overlay;
|
||||||
|
|
||||||
private boolean togglePlayers;
|
private boolean togglePlayers;
|
||||||
private boolean toggleNpcs;
|
private boolean toggleNpcs;
|
||||||
|
|||||||
@@ -45,10 +45,10 @@ public class DiaryProgressPlugin extends Plugin
|
|||||||
private static final String STAGE_UNFINISHED_STRING = "<col=ffff00>_</col>";
|
private static final String STAGE_UNFINISHED_STRING = "<col=ffff00>_</col>";
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
Client client;
|
private Client client;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
DiaryProgressConfig config;
|
private DiaryProgressConfig config;
|
||||||
|
|
||||||
@Provides
|
@Provides
|
||||||
DiaryProgressConfig provideConfig(ConfigManager configManager)
|
DiaryProgressConfig provideConfig(ConfigManager configManager)
|
||||||
|
|||||||
@@ -79,19 +79,19 @@ public class ExaminePlugin extends Plugin
|
|||||||
.build();
|
.build();
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
Client client;
|
private Client client;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
ExamineConfig config;
|
private ExamineConfig config;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
ItemManager itemManager;
|
private ItemManager itemManager;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
ChatMessageManager chatMessageManager;
|
private ChatMessageManager chatMessageManager;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
ScheduledExecutorService executor;
|
private ScheduledExecutorService executor;
|
||||||
|
|
||||||
@Provides
|
@Provides
|
||||||
ExamineConfig provideConfig(ConfigManager configManager)
|
ExamineConfig provideConfig(ConfigManager configManager)
|
||||||
|
|||||||
@@ -43,10 +43,10 @@ import net.runelite.client.plugins.PluginDescriptor;
|
|||||||
public class ExperienceDropPlugin extends Plugin
|
public class ExperienceDropPlugin extends Plugin
|
||||||
{
|
{
|
||||||
@Inject
|
@Inject
|
||||||
Client client;
|
private Client client;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
ExperienceDropConfig config;
|
private ExperienceDropConfig config;
|
||||||
|
|
||||||
@Provides
|
@Provides
|
||||||
ExperienceDropConfig provideConfig(ConfigManager configManager)
|
ExperienceDropConfig provideConfig(ConfigManager configManager)
|
||||||
|
|||||||
@@ -46,16 +46,16 @@ import net.runelite.client.util.QueryRunner;
|
|||||||
public class FightCavePlugin extends Plugin
|
public class FightCavePlugin extends Plugin
|
||||||
{
|
{
|
||||||
@Inject
|
@Inject
|
||||||
Client client;
|
private Client client;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
QueryRunner queryRunner;
|
private QueryRunner queryRunner;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
FightCaveConfig config;
|
private FightCaveConfig config;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
FightCaveOverlay overlay;
|
private FightCaveOverlay overlay;
|
||||||
|
|
||||||
private JadAttack attack;
|
private JadAttack attack;
|
||||||
|
|
||||||
|
|||||||
@@ -50,13 +50,13 @@ import net.runelite.client.ui.overlay.Overlay;
|
|||||||
public class FishingPlugin extends Plugin
|
public class FishingPlugin extends Plugin
|
||||||
{
|
{
|
||||||
@Inject
|
@Inject
|
||||||
FishingConfig config;
|
private FishingConfig config;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
FishingOverlay overlay;
|
private FishingOverlay overlay;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
FishingSpotOverlay spotOverlay;
|
private FishingSpotOverlay spotOverlay;
|
||||||
|
|
||||||
private final FishingSession session = new FishingSession();
|
private final FishingSession session = new FishingSession();
|
||||||
|
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ public class GroundItemsOverlay extends Overlay
|
|||||||
private final StringBuilder itemStringBuilder = new StringBuilder();
|
private final StringBuilder itemStringBuilder = new StringBuilder();
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
ItemManager itemManager;
|
private ItemManager itemManager;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public GroundItemsOverlay(@Nullable Client client, GroundItemsConfig config)
|
public GroundItemsOverlay(@Nullable Client client, GroundItemsConfig config)
|
||||||
|
|||||||
@@ -38,10 +38,10 @@ import net.runelite.client.ui.overlay.Overlay;
|
|||||||
public class GroundItemsPlugin extends Plugin
|
public class GroundItemsPlugin extends Plugin
|
||||||
{
|
{
|
||||||
@Inject
|
@Inject
|
||||||
ConfigManager configManager;
|
private ConfigManager configManager;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
GroundItemsOverlay overlay;
|
private GroundItemsOverlay overlay;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void configure(Binder binder)
|
public void configure(Binder binder)
|
||||||
|
|||||||
@@ -46,13 +46,13 @@ public class HiscorePlugin extends Plugin
|
|||||||
private static final String LOOKUP = "Lookup";
|
private static final String LOOKUP = "Lookup";
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
ClientUI ui;
|
private ClientUI ui;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
MenuManager menuManager;
|
private MenuManager menuManager;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
ScheduledExecutorService executor;
|
private ScheduledExecutorService executor;
|
||||||
|
|
||||||
private NavigationButton navButton;
|
private NavigationButton navButton;
|
||||||
private HiscorePanel hiscorePanel;
|
private HiscorePanel hiscorePanel;
|
||||||
|
|||||||
@@ -118,16 +118,16 @@ public class IdleNotifierPlugin extends Plugin
|
|||||||
private static final Duration SIX_HOUR_LOGOUT_WARNING_AFTER_DURATION = Duration.ofMinutes(340);
|
private static final Duration SIX_HOUR_LOGOUT_WARNING_AFTER_DURATION = Duration.ofMinutes(340);
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
Notifier notifier;
|
private Notifier notifier;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
ClientUI gui;
|
private ClientUI gui;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
Client client;
|
private Client client;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
IdleNotifierConfig config;
|
private IdleNotifierConfig config;
|
||||||
|
|
||||||
private Actor lastOpponent;
|
private Actor lastOpponent;
|
||||||
private Instant lastAnimating;
|
private Instant lastAnimating;
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ import net.runelite.client.ui.overlay.Overlay;
|
|||||||
public class ImplingsPlugin extends Plugin
|
public class ImplingsPlugin extends Plugin
|
||||||
{
|
{
|
||||||
@Inject
|
@Inject
|
||||||
ImplingsOverlay overlay;
|
private ImplingsOverlay overlay;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void configure(Binder binder)
|
public void configure(Binder binder)
|
||||||
|
|||||||
@@ -51,13 +51,13 @@ public class InstanceMapPlugin extends Plugin
|
|||||||
private final WidgetMenuOption descendOption = new WidgetMenuOption("Descend", "Instance Map", WidgetInfo.WORLD_MAP);
|
private final WidgetMenuOption descendOption = new WidgetMenuOption("Descend", "Instance Map", WidgetInfo.WORLD_MAP);
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
InstanceMapConfig config;
|
private InstanceMapConfig config;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
InstanceMapOverlay overlay;
|
private InstanceMapOverlay overlay;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
MenuManager menuManager;
|
private MenuManager menuManager;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void configure(Binder binder)
|
public void configure(Binder binder)
|
||||||
|
|||||||
@@ -38,10 +38,10 @@ import net.runelite.client.ui.overlay.Overlay;
|
|||||||
public class JewelleryCountPlugin extends Plugin
|
public class JewelleryCountPlugin extends Plugin
|
||||||
{
|
{
|
||||||
@Inject
|
@Inject
|
||||||
JewelleryCountConfig config;
|
private JewelleryCountConfig config;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
JewelleryCountOverlay overlay;
|
private JewelleryCountOverlay overlay;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void configure(Binder binder)
|
public void configure(Binder binder)
|
||||||
|
|||||||
@@ -41,10 +41,10 @@ import net.runelite.client.plugins.PluginDescriptor;
|
|||||||
public class LowMemoryPlugin extends Plugin
|
public class LowMemoryPlugin extends Plugin
|
||||||
{
|
{
|
||||||
@Inject
|
@Inject
|
||||||
Client client;
|
private Client client;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
LowMemoryConfig config;
|
private LowMemoryConfig config;
|
||||||
|
|
||||||
@Provides
|
@Provides
|
||||||
LowMemoryConfig provideConfig(ConfigManager configManager)
|
LowMemoryConfig provideConfig(ConfigManager configManager)
|
||||||
|
|||||||
@@ -41,10 +41,10 @@ import net.runelite.client.plugins.PluginDescriptor;
|
|||||||
public class MetronomePlugin extends Plugin
|
public class MetronomePlugin extends Plugin
|
||||||
{
|
{
|
||||||
@Inject
|
@Inject
|
||||||
Client client;
|
private Client client;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
MetronomePluginConfiguration config;
|
private MetronomePluginConfiguration config;
|
||||||
|
|
||||||
private int tickCounter = 0;
|
private int tickCounter = 0;
|
||||||
private boolean shouldTock = false;
|
private boolean shouldTock = false;
|
||||||
|
|||||||
@@ -77,16 +77,16 @@ public class MotherlodePlugin extends Plugin
|
|||||||
private BufferedImage mineIcon;
|
private BufferedImage mineIcon;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
MotherlodeOverlay overlay;
|
private MotherlodeOverlay overlay;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
MotherlodeRocksOverlay rocksOverlay;
|
private MotherlodeRocksOverlay rocksOverlay;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
MotherlodeSackOverlay motherlodeSackOverlay;
|
private MotherlodeSackOverlay motherlodeSackOverlay;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
MotherlodeConfig config;
|
private MotherlodeConfig config;
|
||||||
|
|
||||||
private final MotherlodeSession session = new MotherlodeSession();
|
private final MotherlodeSession session = new MotherlodeSession();
|
||||||
|
|
||||||
|
|||||||
@@ -38,10 +38,10 @@ import net.runelite.client.ui.overlay.Overlay;
|
|||||||
public class MouseHighlightPlugin extends Plugin
|
public class MouseHighlightPlugin extends Plugin
|
||||||
{
|
{
|
||||||
@Inject
|
@Inject
|
||||||
MouseHighlightConfig config;
|
private MouseHighlightConfig config;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
MouseHighlightOverlay overlay;
|
private MouseHighlightOverlay overlay;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void configure(Binder binder)
|
public void configure(Binder binder)
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ import net.runelite.client.ui.overlay.Overlay;
|
|||||||
public class OpponentInfoPlugin extends Plugin
|
public class OpponentInfoPlugin extends Plugin
|
||||||
{
|
{
|
||||||
@Inject
|
@Inject
|
||||||
OpponentInfoOverlay overlay;
|
private OpponentInfoOverlay overlay;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void configure(Binder binder)
|
public void configure(Binder binder)
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ public class PestControlPlugin extends Plugin
|
|||||||
private Font font;
|
private Font font;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
PestControlOverlay overlay;
|
private PestControlOverlay overlay;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void configure(Binder binder)
|
public void configure(Binder binder)
|
||||||
|
|||||||
@@ -38,10 +38,10 @@ import net.runelite.client.ui.overlay.Overlay;
|
|||||||
public class PlayerIndicatorsPlugin extends Plugin
|
public class PlayerIndicatorsPlugin extends Plugin
|
||||||
{
|
{
|
||||||
@Inject
|
@Inject
|
||||||
Client client;
|
private Client client;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
PlayerIndicatorsConfig config;
|
private PlayerIndicatorsConfig config;
|
||||||
|
|
||||||
PlayerIndicatorsOverlay playerIndicatorsOverlay;
|
PlayerIndicatorsOverlay playerIndicatorsOverlay;
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ import net.runelite.client.ui.overlay.Overlay;
|
|||||||
public class PrayerFlickPlugin extends Plugin
|
public class PrayerFlickPlugin extends Plugin
|
||||||
{
|
{
|
||||||
@Inject
|
@Inject
|
||||||
PrayerFlickOverlay overlay;
|
private PrayerFlickOverlay overlay;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void configure(Binder binder)
|
public void configure(Binder binder)
|
||||||
|
|||||||
@@ -40,10 +40,10 @@ import net.runelite.client.plugins.PluginDescriptor;
|
|||||||
public class RememberUsernamePlugin extends Plugin
|
public class RememberUsernamePlugin extends Plugin
|
||||||
{
|
{
|
||||||
@Inject
|
@Inject
|
||||||
Client client;
|
private Client client;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
RememberUsernameConfig config;
|
private RememberUsernameConfig config;
|
||||||
|
|
||||||
@Provides
|
@Provides
|
||||||
RememberUsernameConfig getConfig(ConfigManager configManager)
|
RememberUsernameConfig getConfig(ConfigManager configManager)
|
||||||
|
|||||||
@@ -60,10 +60,10 @@ public class ReportButtonPlugin extends Plugin
|
|||||||
private boolean ready;
|
private boolean ready;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
Client client;
|
private Client client;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
ReportButtonConfig config;
|
private ReportButtonConfig config;
|
||||||
|
|
||||||
@Provides
|
@Provides
|
||||||
ReportButtonConfig provideConfig(ConfigManager configManager)
|
ReportButtonConfig provideConfig(ConfigManager configManager)
|
||||||
|
|||||||
@@ -38,10 +38,10 @@ import net.runelite.client.ui.overlay.Overlay;
|
|||||||
public class RunepouchPlugin extends Plugin
|
public class RunepouchPlugin extends Plugin
|
||||||
{
|
{
|
||||||
@Inject
|
@Inject
|
||||||
ConfigManager configManager;
|
private ConfigManager configManager;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
RunepouchOverlay overlay;
|
private RunepouchOverlay overlay;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void configure(Binder binder)
|
public void configure(Binder binder)
|
||||||
|
|||||||
@@ -108,19 +108,19 @@ public class ScreenshotPlugin extends Plugin
|
|||||||
private Integer barrowsNumber;
|
private Integer barrowsNumber;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
ScreenshotConfig config;
|
private ScreenshotConfig config;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
Notifier notifier;
|
private Notifier notifier;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
Client client;
|
private Client client;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
ClientUI clientUi;
|
private ClientUI clientUi;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
OverlayRenderer overlayRenderer;
|
private OverlayRenderer overlayRenderer;
|
||||||
|
|
||||||
private JButton titleBarButton;
|
private JButton titleBarButton;
|
||||||
|
|
||||||
|
|||||||
@@ -74,19 +74,19 @@ public class SlayerPlugin extends Plugin
|
|||||||
private static final Pattern REWARD_POINTS = Pattern.compile("Reward points: (\\d*)");
|
private static final Pattern REWARD_POINTS = Pattern.compile("Reward points: (\\d*)");
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
Client client;
|
private Client client;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
SlayerConfig config;
|
private SlayerConfig config;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
SlayerOverlay overlay;
|
private SlayerOverlay overlay;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
InfoBoxManager infoBoxManager;
|
private InfoBoxManager infoBoxManager;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
ItemManager itemManager;
|
private ItemManager itemManager;
|
||||||
|
|
||||||
private String taskName;
|
private String taskName;
|
||||||
private int amount;
|
private int amount;
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ public class SpecOrbPlugin extends Plugin
|
|||||||
private Image specialAttackIcon;
|
private Image specialAttackIcon;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
SpecOrbOverlay overlay;
|
private SpecOrbOverlay overlay;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void configure(Binder binder)
|
public void configure(Binder binder)
|
||||||
|
|||||||
@@ -49,13 +49,13 @@ import net.runelite.client.ui.overlay.Overlay;
|
|||||||
public class TeamCapesPlugin extends Plugin
|
public class TeamCapesPlugin extends Plugin
|
||||||
{
|
{
|
||||||
@Inject
|
@Inject
|
||||||
Client client;
|
private Client client;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
TeamCapesConfig config;
|
private TeamCapesConfig config;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
TeamCapesOverlay teamCapesOverlay;
|
private TeamCapesOverlay teamCapesOverlay;
|
||||||
|
|
||||||
private Map<Integer, Integer> teams = new HashMap<>();
|
private Map<Integer, Integer> teams = new HashMap<>();
|
||||||
|
|
||||||
|
|||||||
@@ -38,10 +38,10 @@ import net.runelite.client.ui.overlay.Overlay;
|
|||||||
public class TileIndicatorsPlugin extends Plugin
|
public class TileIndicatorsPlugin extends Plugin
|
||||||
{
|
{
|
||||||
@Inject
|
@Inject
|
||||||
Client client;
|
private Client client;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
TileIndicatorsConfig config;
|
private TileIndicatorsConfig config;
|
||||||
|
|
||||||
private TileIndicatorsOverlay tileIndicatorsOverlay;
|
private TileIndicatorsOverlay tileIndicatorsOverlay;
|
||||||
|
|
||||||
|
|||||||
@@ -80,13 +80,13 @@ public class TimersPlugin extends Plugin
|
|||||||
private int lastRaidVarb;
|
private int lastRaidVarb;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
Client client;
|
private Client client;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
TimersConfig config;
|
private TimersConfig config;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
InfoBoxManager infoBoxManager;
|
private InfoBoxManager infoBoxManager;
|
||||||
|
|
||||||
@Provides
|
@Provides
|
||||||
TimersConfig getConfig(ConfigManager configManager)
|
TimersConfig getConfig(ConfigManager configManager)
|
||||||
|
|||||||
@@ -46,13 +46,13 @@ import net.runelite.client.ui.overlay.Overlay;
|
|||||||
public class WoodcuttingPlugin extends Plugin
|
public class WoodcuttingPlugin extends Plugin
|
||||||
{
|
{
|
||||||
@Inject
|
@Inject
|
||||||
Notifier notifier;
|
private Notifier notifier;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
WoodcuttingOverlay overlay;
|
private WoodcuttingOverlay overlay;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
WoodcuttingConfig config;
|
private WoodcuttingConfig config;
|
||||||
|
|
||||||
private final WoodcuttingSession session = new WoodcuttingSession();
|
private final WoodcuttingSession session = new WoodcuttingSession();
|
||||||
|
|
||||||
|
|||||||
@@ -54,13 +54,13 @@ public class XpGlobesPlugin extends Plugin
|
|||||||
private final List<XpGlobe> xpGlobes = new ArrayList<>();
|
private final List<XpGlobe> xpGlobes = new ArrayList<>();
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
Client client;
|
private Client client;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
XpGlobesConfig config;
|
private XpGlobesConfig config;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
XpGlobesOverlay overlay;
|
private XpGlobesOverlay overlay;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void configure(Binder binder)
|
public void configure(Binder binder)
|
||||||
|
|||||||
@@ -56,10 +56,10 @@ import net.runelite.http.api.xp.XpClient;
|
|||||||
public class XpTrackerPlugin extends Plugin
|
public class XpTrackerPlugin extends Plugin
|
||||||
{
|
{
|
||||||
@Inject
|
@Inject
|
||||||
ClientUI ui;
|
private ClientUI ui;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
Client client;
|
private Client client;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
ScheduledExecutorService executor;
|
ScheduledExecutorService executor;
|
||||||
|
|||||||
@@ -49,10 +49,10 @@ public class XteaPlugin extends Plugin
|
|||||||
private final Set<Integer> sentRegions = new HashSet<>();
|
private final Set<Integer> sentRegions = new HashSet<>();
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
Client client;
|
private Client client;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
ScheduledExecutorService executor;
|
private ScheduledExecutorService executor;
|
||||||
|
|
||||||
@Subscribe
|
@Subscribe
|
||||||
public void onMapRegionChanged(MapRegionChanged event)
|
public void onMapRegionChanged(MapRegionChanged event)
|
||||||
|
|||||||
Reference in New Issue
Block a user