Class ClientProxy

java.lang.Object
com.pixelmonmod.pixelmon.client.ClientProxy

public class ClientProxy extends Object
Client-side initialization helper methods.
  • Field Details

    • SEND_POKEMON_KEY

      public static final SendPokemonKey SEND_POKEMON_KEY
    • defaultTexUnit

      public static final int defaultTexUnit
      See Also:
    • lightmapTexUnit

      public static final int lightmapTexUnit
      See Also:
    • battleManager

      public static ClientBattleManager battleManager
      The battle manager for the client.
    • moveSkills

      public static ArrayList<MoveSkill> moveSkills
    • camera

      public static CameraEntity camera
      The player's camera.
    • actionKeyBind

      public static ActionKey actionKeyBind
      The keybind for targeting a Pokémon.
    • useMoveSkillKeyBind

      public static UseMoveSkillKey useMoveSkillKeyBind
      The keybind for using a move skill.
    • chooseMoveSkillKey

      public static ChooseMoveSkillKey chooseMoveSkillKey
      The keybind for opening the move skill screen.
    • pokedexKeyBind

      public static PokedexKey pokedexKeyBind
      The keybind for opening the Pokédex.
    • trainerCardKeyBind

      public static TrainerCardKey trainerCardKeyBind
      The keybind for opening the Trainer Card.
    • wikiKeyBind

      public static WikiKey wikiKeyBind
      The keybind for opening the Wiki.
    • spectateKeyBind

      public static SpectateKey spectateKeyBind
      The keybind for requesting to spectate a battle
    • questJournalKeyBind

      public static QuestJournalKey questJournalKeyBind
      The keybind for opening the quest journal
    • questCycleKeyBind

      public static QuestCycleKey questCycleKeyBind
      The keybind for cycling the displayed quest
    • pcSearchKeyBind

      public static ClientPixelmonKeyMapping pcSearchKeyBind
      The pc options keybindings.
    • pcRenameKeyBind

      public static ClientPixelmonKeyMapping pcRenameKeyBind
      The pc options keybindings.
    • pcWallpaperKeyBind

      public static ClientPixelmonKeyMapping pcWallpaperKeyBind
      The pc options keybindings.
    • pcModeKeyBind

      public static ClientPixelmonKeyMapping pcModeKeyBind
      The pc options keybindings.
    • pcSwapScreenKeyBind

      public static ClientPixelmonKeyMapping pcSwapScreenKeyBind
      The pc options keybindings.
    • pcSortKeyBind

      public static ClientPixelmonKeyMapping pcSortKeyBind
      The pc options keybindings.
    • toggleBattlePerspectiveKeyBind

      public static ClientPixelmonKeyMapping toggleBattlePerspectiveKeyBind
      The keybind for toggling the player's POV in battle.
    • toggleBattleUserInterfaceKeyBind

      public static ClientPixelmonKeyMapping toggleBattleUserInterfaceKeyBind
      The keybind for turning on or off the rendering of the battle UI.
    • TOGGLE_FREE_TO_MOVE_IN_BATTLE_KEY_BIND

      public static final PixelmonKeyMapping TOGGLE_FREE_TO_MOVE_IN_BATTLE_KEY_BIND
    • battleNumberedKeys

      public static BattleNumberedKey[] battleNumberedKeys
      Key binds that allow a user to use their keyboard/controller to input their choices during battles.
    • battleAcceptKeyBind

      public static ClientPixelmonKeyMapping battleAcceptKeyBind
    • battleAttackGimmickKeyBind

      public static ClientPixelmonKeyMapping battleAttackGimmickKeyBind
    • battleBagKeyBind

      public static ClientPixelmonKeyMapping battleBagKeyBind
    • battleDownKeyBind

      public static ClientPixelmonKeyMapping battleDownKeyBind
    • battleFleeKeyBind

      public static ClientPixelmonKeyMapping battleFleeKeyBind
    • battleLeftKeyBind

      public static ClientPixelmonKeyMapping battleLeftKeyBind
    • battlePokemonTeamKeyBind

      public static ClientPixelmonKeyMapping battlePokemonTeamKeyBind
    • battleRightKeyBind

      public static ClientPixelmonKeyMapping battleRightKeyBind
    • battleUpKeyBind

      public static ClientPixelmonKeyMapping battleUpKeyBind
  • Constructor Details

    • ClientProxy

      public ClientProxy()
  • Method Details

    • init

      public static void init(net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent event)
    • registerRenderers

      public static void registerRenderers()
    • addLayers

      public static void addLayers(net.minecraftforge.client.event.EntityRenderersEvent.AddLayers event)
    • onModelBakeEvent

      public static void onModelBakeEvent(net.minecraftforge.client.event.ModelEvent.ModifyBakingResult event)
      Registers orb texture renderers.
      Parameters:
      event - The bake event that called this method.
    • onModelRegister

      public static void onModelRegister(net.minecraftforge.client.event.ModelEvent.RegisterAdditional event)
    • onTileEntityRendererRegister

      public static void onTileEntityRendererRegister(net.minecraftforge.client.event.EntityRenderersEvent.RegisterRenderers event)
    • onColourBlockEvent

      public static void onColourBlockEvent(net.minecraftforge.client.event.RegisterColorHandlersEvent.Block event)
    • registerKeyBindings

      public static void registerKeyBindings(net.minecraftforge.client.event.RegisterKeyMappingsEvent event)
    • addPokemonRenderers

      public static void addPokemonRenderers(net.minecraftforge.client.event.EntityRenderersEvent.RegisterRenderers event)
      Initializes renderers for Pokémon and NPCs.
    • createScreen

      public static net.minecraft.client.gui.screens.Screen createScreen(net.minecraft.world.entity.player.Player player, EnumGuiScreen gui, int[] data)
    • getMinecraftDir

      public static File getMinecraftDir()
      Gets the Minecraft directory.
      Returns:
      The Minecraft directory as a file.
    • onWorldLoad

      public void onWorldLoad(net.minecraftforge.event.level.LevelEvent.Load event)
      Resets the client-side Pokémon storage.
      Parameters:
      event - The load event that called this method.
    • onDimensionChange

      public void onDimensionChange(net.minecraftforge.event.entity.player.PlayerEvent.PlayerChangedDimensionEvent event)
      Cleans up battles when the player changes dimensions.
      Parameters:
      event - The change dimensions event that called this method.
    • onWorldUnload

      public void onWorldUnload(net.minecraftforge.event.level.LevelEvent.Unload event)
      Unfreezes Pokémon in the world.
      Parameters:
      event - The unload event that called this method.
    • onPreClientTick

      public void onPreClientTick(net.minecraftforge.event.TickEvent.ClientTickEvent event)
    • spawnParticle

      public static void spawnParticle(EnumPixelmonParticles particle, net.minecraft.client.multiplayer.ClientLevel worldObj, double posX, double posY, double posZ, boolean isShiny)
      Spawns a particle in the world.
      Parameters:
      particle - The particle to spawn.
      worldObj - The world to spawn the particle in.
      posX - The x coordinate of the particle.
      posY - The y coordinate of the particle.
      posZ - The z coordinate of the particle.
      isShiny - Whether the Pokémon is Shiny.
    • spawnParticle

      public static void spawnParticle(EnumBreedingParticles particle, net.minecraft.world.level.Level worldObj, double posX, double posY, double posZ, PaletteProperties paletteProperties)
    • registerTickHandlers

      public static void registerTickHandlers()
    • resourceLocationExists

      public static boolean resourceLocationExists(net.minecraft.resources.ResourceLocation resourceLocation)
    • getMoveSkills

      public static ArrayList<MoveSkill> getMoveSkills(Pokemon pokemon)
    • getRichPresence

      public static PixelmonRichPresence getRichPresence()
    • getToast

      public static ExpandingTutorialToast getToast()
    • onClientLoaded

      public static void onClientLoaded(net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent event)
    • setIcon

      public static void setIcon(com.mojang.blaze3d.platform.Window window, net.minecraft.server.packs.PackResources resources, com.mojang.blaze3d.platform.IconSet iconSet) throws IOException
      Throws:
      IOException
    • getStandardIcons

      public static List<net.minecraft.server.packs.resources.IoSupplier<InputStream>> getStandardIcons(net.minecraft.server.packs.PackResources resources) throws IOException
      Throws:
      IOException