Skip to content

Commit a63b669

Browse files
TrentinTheKidItsNature
authored andcommitted
update paths in notification module example
1 parent 980ecbb commit a63b669

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

docs/developers/modules/notification.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public void displayNotificationExample(Player viewer) {
4141
.append(Component.newline())
4242
.append(Component.text("Good luck!", NamedTextColor.GOLD))
4343
)
44-
.resourceLocation("icons/golden_apple.png") // This field is optional
44+
.resourceLocation("textures/items/apple_golden.png") // This field is optional
4545
.displayTime(Duration.ofSeconds(5))
4646
.build());
4747
});
@@ -78,7 +78,7 @@ public void resetNotificationsExample(Player viewer) {
7878
`.resourceLocation(String)` is the resource location of the shown icon.
7979

8080
```java
81-
.resourceLocation("icons/golden_apple.png")
81+
.resourceLocation("textures/items/apple_golden.png")
8282
```
8383

8484
`.displayTime(java.time.Duration)` is the duration you want to keep the notification on screen. See the [java.time.Duration Javadocs](https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html) for more.
@@ -125,7 +125,7 @@ public void displayNotificationExample(Player viewer) {
125125
.append(Component.text("Good luck!", NamedTextColor.GOLD))
126126
)
127127
)
128-
.setResourceLocation("icons/golden_apple.png") // This field is optional
128+
.setResourceLocation("textures/items/apple_golden.png") // This field is optional
129129
.setDisplayTime(ProtobufUtil.createDurationProto(Duration.ofSeconds(5)))
130130
.build();
131131

@@ -164,7 +164,7 @@ public void displayNotificationExample(Player viewer) {
164164
));
165165

166166
message.addProperty("display_time", JsonUtil.createDurationObject(Duration.ofSeconds(5)));
167-
message.addProperty("resource_location", "icons/golden_apple.png");
167+
message.addProperty("resource_location", "textures/items/apple_golden.png");
168168

169169
JsonPacketUtil.sendPacket(viewer, message);
170170
}

example/bukkit/json/src/main/java/com/lunarclient/apollo/example/json/module/NotificationJsonExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public void displayNotificationExample(Player viewer) {
5151
));
5252

5353
message.addProperty("display_time", JsonUtil.createDurationObject(Duration.ofSeconds(5)));
54-
message.addProperty("resource_location", "icons/golden_apple.png");
54+
message.addProperty("resource_location", "textures/items/apple_golden.png");
5555

5656
JsonPacketUtil.sendPacket(viewer, message);
5757
}

example/bukkit/proto/src/main/java/com/lunarclient/apollo/example/proto/module/NotificationProtoExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public void displayNotificationExample(Player viewer) {
5050
.append(Component.text("Good luck!", NamedTextColor.GOLD))
5151
)
5252
)
53-
.setResourceLocation("icons/golden_apple.png") // This field is optional
53+
.setResourceLocation("textures/items/apple_golden.png") // This field is optional
5454
.setDisplayTime(ProtobufUtil.createDurationProto(Duration.ofSeconds(5)))
5555
.build();
5656

0 commit comments

Comments
 (0)