-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to Navigator api & add Xaeros maps integration (#91)
* Switch to Navigator api & add Xaeros maps integration * fix readme link * fix dep * remove debug logging * Spotless apply for branch navigator-api-migration for #91 (#92) Co-authored-by: GitHub GTNH Actions <> * update navigator dep * Unify buttons * Simplify Xaero tooltips * no need to register all this anymore --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Martin Robertz <[email protected]>
- Loading branch information
1 parent
cd8dbdc
commit 9da77f8
Showing
26 changed files
with
346 additions
and
218 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 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
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
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
24 changes: 24 additions & 0 deletions
24
src/main/java/serverutils/integration/navigator/ClaimsButtonManager.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,24 @@ | ||
package serverutils.integration.navigator; | ||
|
||
import net.minecraft.util.ResourceLocation; | ||
import net.minecraft.util.StatCollector; | ||
|
||
import com.gtnewhorizons.navigator.api.model.SupportedMods; | ||
import com.gtnewhorizons.navigator.api.model.buttons.ButtonManager; | ||
|
||
import serverutils.ServerUtilities; | ||
|
||
public class ClaimsButtonManager extends ButtonManager { | ||
|
||
public static final ClaimsButtonManager INSTANCE = new ClaimsButtonManager(); | ||
|
||
@Override | ||
public ResourceLocation getIcon(SupportedMods mod, String theme) { | ||
return new ResourceLocation(ServerUtilities.MOD_ID, "textures/icons/team_blank.png"); | ||
} | ||
|
||
@Override | ||
public String getButtonText() { | ||
return StatCollector.translateToLocal("serverutilities.navigator.button"); | ||
} | ||
} |
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
Oops, something went wrong.