Skip to content

Commit 6b2a24d

Browse files
committed
Rename loot chest example to display block example
1 parent 2f83250 commit 6b2a24d

6 files changed

Lines changed: 12 additions & 12 deletions

File tree

docs/developers/modules/marker.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ Explore each integration by cycling through each tab, to find the best fit for y
2525
**Apollo API examples.** See [General](/apollo/developers/general) for common patterns and helpers.
2626
</Callout>
2727

28-
### Marking a loot chest
28+
### Marking a block
2929

3030
```java
31-
public void displayLootChestMarkerExample(Player viewer) {
31+
public void displayBlockMarkerExample(Player viewer) {
3232
Optional<ApolloPlayer> apolloPlayerOpt = Apollo.getPlayerManager().getPlayer(viewer.getUniqueId());
3333

3434
apolloPlayerOpt.ifPresent(apolloPlayer -> {
@@ -296,10 +296,10 @@ When `compactMode` is enabled the marker uses a compact single-row layout, and
296296
Make sure the server is sending the world name to the client as shown in the [Player Detection](/apollo/developers/lightweight/protobuf/player-detection) example.
297297
</Callout>
298298

299-
**Marking a loot chest**
299+
**Marking a block**
300300

301301
```java
302-
public void displayLootChestMarkerExample(Player viewer) {
302+
public void displayBlockMarkerExample(Player viewer) {
303303
DisplayMarkerMessage message = DisplayMarkerMessage.newBuilder()
304304
.setId("loot-chest")
305305
.setLocation(ProtobufUtil.createLocationProto(viewer.getLocation()))
@@ -482,10 +482,10 @@ public void resetMarkersExample(Player viewer) {
482482
Make sure the server is sending the world name to the client as shown in the [Player Detection](/apollo/developers/lightweight/json/player-detection) example.
483483
</Callout>
484484

485-
**Marking a loot chest**
485+
**Marking a block**
486486

487487
```java
488-
public void displayLootChestMarkerExample(Player viewer) {
488+
public void displayBlockMarkerExample(Player viewer) {
489489
JsonObject message = new JsonObject();
490490
message.addProperty("@type", "type.googleapis.com/lunarclient.apollo.marker.v1.DisplayMarkerMessage");
491491
message.addProperty("id", "loot-chest");

example/bukkit/api/src/main/java/com/lunarclient/apollo/example/api/module/MarkerApiExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public class MarkerApiExample extends MarkerExample {
5050
private final MarkerModule markerModule = Apollo.getModuleManager().getModule(MarkerModule.class);
5151

5252
@Override
53-
public void displayLootChestMarkerExample(Player viewer) {
53+
public void displayBlockMarkerExample(Player viewer) {
5454
Optional<ApolloPlayer> apolloPlayerOpt = Apollo.getPlayerManager().getPlayer(viewer.getUniqueId());
5555

5656
apolloPlayerOpt.ifPresent(apolloPlayer -> {

example/bukkit/common/src/main/java/com/lunarclient/apollo/example/command/MarkerCommand.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command
5151

5252
switch (args[0].toLowerCase()) {
5353
case "chest": {
54-
markerExample.displayLootChestMarkerExample(player);
55-
player.sendMessage("Marking a loot chest....");
54+
markerExample.displayBlockMarkerExample(player);
55+
player.sendMessage("Marking a block....");
5656
break;
5757
}
5858

example/bukkit/common/src/main/java/com/lunarclient/apollo/example/module/impl/MarkerExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
public abstract class MarkerExample extends ApolloModuleExample {
3030

31-
public abstract void displayLootChestMarkerExample(Player viewer);
31+
public abstract void displayBlockMarkerExample(Player viewer);
3232

3333
public abstract void displayPlayerMarkerExample(Player viewer);
3434

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
public class MarkerJsonExample extends MarkerExample {
3838

3939
@Override
40-
public void displayLootChestMarkerExample(Player viewer) {
40+
public void displayBlockMarkerExample(Player viewer) {
4141
JsonObject message = new JsonObject();
4242
message.addProperty("@type", "type.googleapis.com/lunarclient.apollo.marker.v1.DisplayMarkerMessage");
4343
message.addProperty("id", "loot-chest");

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
public class MarkerProtoExample extends MarkerExample {
5353

5454
@Override
55-
public void displayLootChestMarkerExample(Player viewer) {
55+
public void displayBlockMarkerExample(Player viewer) {
5656
DisplayMarkerMessage message = DisplayMarkerMessage.newBuilder()
5757
.setId("loot-chest")
5858
.setLocation(ProtobufUtil.createLocationProto(viewer.getLocation()))

0 commit comments

Comments
 (0)