Class PokeCheckerHelper

java.lang.Object
com.pixelmonmod.pixelmon.client.gui.PokeCheckerHelper

public class PokeCheckerHelper extends Object
Used to add a Poke Checker (the floating box) to the screen
  • Constructor Details

    • PokeCheckerHelper

      public PokeCheckerHelper()
  • Method Details

    • genPokeChecker

      @Nullable public static @Nullable ContextMenu genPokeChecker(int x, int y, Pokemon[] pokemon, net.minecraft.client.gui.screens.Screen gui)
      Call this, then you'd get a floating box on the screen.
      Its position depends on your click position
      Parameters:
      x - Input mouse X
      y - Input mouse Y
      pokemon - Pokemons involved in this click
      gui - source GUI of this click
      Returns:
      a Poke Checker (ContextMenu object)