woodcutting: Reduce visibilities, mark Nullables
This commit is contained in:
@@ -32,6 +32,7 @@ import java.util.HashSet;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
import javax.annotation.Nullable;
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
import lombok.AccessLevel;
|
import lombok.AccessLevel;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
@@ -90,9 +91,11 @@ public class WoodcuttingPlugin extends Plugin
|
|||||||
private WoodcuttingConfig config;
|
private WoodcuttingConfig config;
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
|
@Nullable
|
||||||
private WoodcuttingSession session;
|
private WoodcuttingSession session;
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
|
@Nullable
|
||||||
private Axe axe;
|
private Axe axe;
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
@@ -258,4 +261,4 @@ public class WoodcuttingPlugin extends Plugin
|
|||||||
this.axe = axe;
|
this.axe = axe;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,16 +26,16 @@ package net.runelite.client.plugins.woodcutting;
|
|||||||
|
|
||||||
import java.time.Instant;
|
import java.time.Instant;
|
||||||
|
|
||||||
public class WoodcuttingSession
|
class WoodcuttingSession
|
||||||
{
|
{
|
||||||
private Instant lastLogCut;
|
private Instant lastLogCut;
|
||||||
|
|
||||||
public void setLastLogCut()
|
void setLastLogCut()
|
||||||
{
|
{
|
||||||
lastLogCut = Instant.now();
|
lastLogCut = Instant.now();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Instant getLastLogCut()
|
Instant getLastLogCut()
|
||||||
{
|
{
|
||||||
return lastLogCut;
|
return lastLogCut;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user