HomeJavaMods[API] MiniMapGUI
[API] MiniMapGUI
ModsJava

[API] MiniMapGUI

Get support here: ​ MiniMapGUI An easy-to-use Spigot library that implements a GUI interface within offhand maps. Maven and Gradle dependencies are…

⬇ Download on Spigot
Get support here: https://discord.gg/G8BDgqsuyw
MiniMapGUI
An easy-to-use Spigot library that implements a GUI interface within offhand maps.

Maven and Gradle dependencies are available on the GitHub page!



Spoiler: Example Usage
Code (Java):
[ /SIZE ]
public class WarpGUI extends MiniMapGUI {
  private final JavaPlugin plugin ;

  public WarpGUI (JavaPlugin plugin, Player player ) {
    super (plugin, player ) ;
    this. plugin = plugin ;

   wraparoundStages = false ;
  }

  @Override
  public void setup ( ) {
    try {
     addStage (
          0,
         SimpleStage. newBuilder ( )
             . wraparoundOptions ( true )
             . addOption (
                  new ImageOption (
                     getPlayer ( ). getWorld ( ),
                      new URL ( "someimgurlink.com/image.png" ),
                     gui -> {
                       gui. close ( ) ;
                       gui. getPlayer ( ). teleport (Bukkit. getWorld ( "world" ). getSpawnLocation ( ) ) ;
                      } ) )
             . addOption (
                  new ImageOption (
                     getPlayer ( ). getWorld ( ),
                      new URL ( "someimgurlink.com/image2.png" ),
                     gui -> {
                       gui. close ( ) ;
                       gui. getPlayer ( )
                           . teleport (Bukkit. getWorld ( "world_nether" ). getSpawnLocation ( ) ) ;
                      } ) )
             . build ( ) ) ;
    } catch ( MalformedURLException e ) {
     e. printStackTrace ( ) ;
    }
  }

  @Override
  public void onLeftClick ( boolean isSneaking, boolean isClickingBlock ) {
    if (getCurrentStage ( ) != null ) {
     getCurrentStage ( ). nextOption ( ) ;
     render ( ) ;
    }
  }

  @Override
  public void onRightClick ( boolean isSneaking, boolean isClickingBlock ) {
   selectCurrentOption ( ) ;
  }
}
[SIZE = 4 ]
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

[API] MiniMapGUI is a free Minecraft Java mod. Compatible with Minecraft 1.13, 1.14, 1.15, 1.16 and newer. Downloaded 456 times (via Spigot). Download it and open it directly in the game.

Explore more