Skip to content

Commit f914076

Browse files
committed
Version 1.0.2
- Adding getter Methods of PacketClient to ApiClient
1 parent 117f7aa commit f914076

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>de.scriptsdk</groupId>
77
<artifactId>api</artifactId>
8-
<version>1.0.1</version>
8+
<version>1.0.2</version>
99
<name>api</name>
1010

1111
<properties>
@@ -64,7 +64,7 @@
6464
<dependency>
6565
<groupId>de.scriptsdk</groupId>
6666
<artifactId>core</artifactId>
67-
<version>1.0.2</version>
67+
<version>1.0.3</version>
6868
</dependency>
6969
</dependencies>
7070
</project>

src/main/java/de/scriptsdk/api/model/network/ApiClient.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@
3333

3434
import java.time.LocalDateTime;
3535
import java.util.Objects;
36+
import java.util.UUID;
3637

3738
public class ApiClient {
39+
3840
final PacketClient client;
3941
private final EventHandler handler;
4042
private Integer contextDelay;
@@ -49,6 +51,22 @@ public ApiClient(String url, Integer port) {
4951
client.setOnEventAction(handler::onEventAction);
5052
}
5153

54+
public String getApiClientUrl() {
55+
return client.getUrl();
56+
}
57+
58+
public Integer getApiClientPort() {
59+
return client.getPort();
60+
}
61+
62+
public UUID getApiClientId() {
63+
return client.getId();
64+
}
65+
66+
public ScriptState getApiClientScriptState() {
67+
return client.getState();
68+
}
69+
5270
public Boolean isTargetHookIsEnabled() {
5371
return targetHookIsEnabled;
5472
}

0 commit comments

Comments
 (0)