-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor to use Geyser's version of Configurate
- Loading branch information
1 parent
08ffeed
commit e95b11e
Showing
15 changed files
with
152 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
src/main/java/com/triassic/geyserdebuginfo/command/BaseCommand.java
This file was deleted.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
src/main/java/com/triassic/geyserdebuginfo/command/Command.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.triassic.geyserdebuginfo.command; | ||
|
||
public interface Command { | ||
|
||
org.geysermc.geyser.api.command.Command createCommand(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 0 additions & 40 deletions
40
src/main/java/com/triassic/geyserdebuginfo/config/Configuration.java
This file was deleted.
Oops, something went wrong.
69 changes: 0 additions & 69 deletions
69
src/main/java/com/triassic/geyserdebuginfo/config/ConfigurationContainer.java
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
src/main/java/com/triassic/geyserdebuginfo/configuration/Configuration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.triassic.geyserdebuginfo.configuration; | ||
|
||
import lombok.Getter; | ||
import org.spongepowered.configurate.objectmapping.ConfigSerializable; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
@Getter | ||
@ConfigSerializable | ||
@SuppressWarnings("FieldMayBeFinal") | ||
public class Configuration { | ||
|
||
private long refreshInterval = 50; | ||
private List<String> displayFormat = Arrays.asList( | ||
"Geyser Debug Information", | ||
"", | ||
"%player_world%", | ||
"", | ||
"XYZ: %player_x% / %player_y% / %player_z%", | ||
"Block: %player_x:floor% %player_y:floor% %player_z:floor% [%player_relative_x% %player_relative_y% %player_relative_z%]", | ||
"Chunk: %player_chunk_x% %player_chunk_y% %player_chunk_z% [%player_global_x% %player_global_z% in %player_region_file%]", | ||
"Facing: %player_facing% (%player_yaw% / %player_pitch%)" | ||
); | ||
} |
Oops, something went wrong.