Package com.pixelmonmod.pixelmon.client
Class ClientProxy
java.lang.Object
com.pixelmonmod.pixelmon.client.ClientProxy
Client-side initialization helper methods.
-
Field Summary
Modifier and TypeFieldDescriptionstatic ActionKey
The keybind for targeting a Pokémon.static ClientPixelmonKeyMapping
static ClientPixelmonKeyMapping
static ClientPixelmonKeyMapping
static ClientPixelmonKeyMapping
static ClientPixelmonKeyMapping
static ClientPixelmonKeyMapping
static ClientBattleManager
The battle manager for the client.static BattleNumberedKey[]
Key binds that allow a user to use their keyboard/controller to input their choices during battles.static ClientPixelmonKeyMapping
static ClientPixelmonKeyMapping
static ClientPixelmonKeyMapping
static CameraEntity
The player's camera.static ChooseMoveSkillKey
The keybind for opening the move skill screen.static final int
static final int
static ClientPixelmonKeyMapping
The pc options keybindings.static ClientPixelmonKeyMapping
The pc options keybindings.static ClientPixelmonKeyMapping
The pc options keybindings.static ClientPixelmonKeyMapping
The pc options keybindings.static ClientPixelmonKeyMapping
The pc options keybindings.static ClientPixelmonKeyMapping
The pc options keybindings.static PokedexKey
The keybind for opening the Pokédex.static final SendPokemonKey
static SpectateKey
The keybind for requesting to spectate a battlestatic final PixelmonKeyMapping
static ClientPixelmonKeyMapping
The keybind for toggling the player's POV in battle.static ClientPixelmonKeyMapping
The keybind for turning on or off the rendering of the battle UI.static TrainerCardKey
The keybind for opening the Trainer Card.static UseMoveSkillKey
The keybind for using a move skill.static WikiKey
The keybind for opening the Wiki. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addLayers
(net.minecraftforge.client.event.EntityRenderersEvent.AddLayers event) static void
addPokemonRenderers
(net.minecraftforge.client.event.EntityRenderersEvent.RegisterRenderers event) Initializes renderers for Pokémon and NPCs.static net.minecraft.client.gui.screens.Screen
createScreen
(net.minecraft.world.entity.player.Player player, EnumGuiScreen gui, int[] data) static File
Gets the Minecraft directory.getMoveSkills
(Pokemon pokemon) static PixelmonRichPresence
static List<net.minecraft.server.packs.resources.IoSupplier<InputStream>>
getStandardIcons
(net.minecraft.server.packs.PackResources resources) static ExpandingTutorialToast
getToast()
static void
init
(net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent event) static void
onClientLoaded
(net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent event) static void
onColourBlockEvent
(net.minecraftforge.client.event.RegisterColorHandlersEvent.Block event) void
onDimensionChange
(net.minecraftforge.event.entity.player.PlayerEvent.PlayerChangedDimensionEvent event) Cleans up battles when the player changes dimensions.static void
onModelBakeEvent
(net.minecraftforge.client.event.ModelEvent.ModifyBakingResult event) Registers orb texture renderers.static void
onModelRegister
(net.minecraftforge.client.event.ModelEvent.RegisterAdditional event) void
onPreClientTick
(net.minecraftforge.event.TickEvent.ClientTickEvent event) static void
onTileEntityRendererRegister
(net.minecraftforge.client.event.EntityRenderersEvent.RegisterRenderers event) void
onWorldLoad
(net.minecraftforge.event.level.LevelEvent.Load event) Resets the client-side Pokémon storage.void
onWorldUnload
(net.minecraftforge.event.level.LevelEvent.Unload event) Unfreezes Pokémon in the world.static void
registerKeyBindings
(net.minecraftforge.client.event.RegisterKeyMappingsEvent event) static void
static void
static boolean
resourceLocationExists
(net.minecraft.resources.ResourceLocation resourceLocation) static void
setIcon
(com.mojang.blaze3d.platform.Window window, net.minecraft.server.packs.PackResources resources, com.mojang.blaze3d.platform.IconSet iconSet) static void
spawnParticle
(EnumBreedingParticles particle, net.minecraft.world.level.Level worldObj, double posX, double posY, double posZ, PaletteProperties paletteProperties) 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.
-
Field Details
-
SEND_POKEMON_KEY
-
defaultTexUnit
public static final int defaultTexUnit- See Also:
-
lightmapTexUnit
public static final int lightmapTexUnit- See Also:
-
battleManager
The battle manager for the client. -
moveSkills
-
camera
The player's camera. -
actionKeyBind
The keybind for targeting a Pokémon. -
useMoveSkillKeyBind
The keybind for using a move skill. -
chooseMoveSkillKey
The keybind for opening the move skill screen. -
pokedexKeyBind
The keybind for opening the Pokédex. -
trainerCardKeyBind
The keybind for opening the Trainer Card. -
wikiKeyBind
The keybind for opening the Wiki. -
spectateKeyBind
The keybind for requesting to spectate a battle -
pcSearchKeyBind
The pc options keybindings. -
pcRenameKeyBind
The pc options keybindings. -
pcWallpaperKeyBind
The pc options keybindings. -
pcModeKeyBind
The pc options keybindings. -
pcSwapScreenKeyBind
The pc options keybindings. -
pcSortKeyBind
The pc options keybindings. -
toggleBattlePerspectiveKeyBind
The keybind for toggling the player's POV in battle. -
toggleBattleUserInterfaceKeyBind
The keybind for turning on or off the rendering of the battle UI. -
TOGGLE_FREE_TO_MOVE_IN_BATTLE_KEY_BIND
-
battleNumberedKeys
Key binds that allow a user to use their keyboard/controller to input their choices during battles. -
battleAcceptKeyBind
-
battleAttackGimmickKeyBind
-
battleBagKeyBind
-
battleDownKeyBind
-
battleFleeKeyBind
-
battleLeftKeyBind
-
battlePokemonTeamKeyBind
-
battleRightKeyBind
-
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
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
-
getRichPresence
-
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
-