Package com.pixelmonmod.pixelmon.client
Class ClientProxy
java.lang.Object
com.pixelmonmod.pixelmon.client.ClientProxy
Client-side initialization helper methods.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic ActionKeyThe keybind for targeting a Pokémon.static ClientPixelmonKeyMappingstatic ClientPixelmonKeyMappingstatic ClientPixelmonKeyMappingstatic ClientPixelmonKeyMappingstatic ClientPixelmonKeyMappingstatic ClientPixelmonKeyMappingstatic ClientBattleManagerThe 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 ClientPixelmonKeyMappingstatic ClientPixelmonKeyMappingstatic ClientPixelmonKeyMappingstatic CameraEntityThe player's camera.static ChooseMoveSkillKeyThe keybind for opening the move skill screen.static final intstatic final intstatic ClientPixelmonKeyMappingThe pc options keybindings.static ClientPixelmonKeyMappingThe pc options keybindings.static ClientPixelmonKeyMappingThe pc options keybindings.static ClientPixelmonKeyMappingThe pc options keybindings.static ClientPixelmonKeyMappingThe pc options keybindings.static ClientPixelmonKeyMappingThe pc options keybindings.static PokedexKeyThe keybind for opening the Pokédex.static final SendPokemonKeystatic SpectateKeyThe keybind for requesting to spectate a battlestatic final PixelmonKeyMappingstatic ClientPixelmonKeyMappingThe keybind for toggling the player's POV in battle.static ClientPixelmonKeyMappingThe keybind for turning on or off the rendering of the battle UI.static TrainerCardKeyThe keybind for opening the Trainer Card.static UseMoveSkillKeyThe keybind for using a move skill.static WikiKeyThe keybind for opening the Wiki. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddLayers(net.minecraftforge.client.event.EntityRenderersEvent.AddLayers event) static voidaddPokemonRenderers(net.minecraftforge.client.event.EntityRenderersEvent.RegisterRenderers event) Initializes renderers for Pokémon and NPCs.static net.minecraft.client.gui.screens.ScreencreateScreen(net.minecraft.world.entity.player.Player player, EnumGuiScreen gui, int[] data) static FileGets the Minecraft directory.getMoveSkills(Pokemon pokemon) static PixelmonRichPresencestatic List<net.minecraft.server.packs.resources.IoSupplier<InputStream>>getStandardIcons(net.minecraft.server.packs.PackResources resources) static ExpandingTutorialToastgetToast()static voidinit(net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent event) static voidonClientLoaded(net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent event) static voidonColourBlockEvent(net.minecraftforge.client.event.RegisterColorHandlersEvent.Block event) voidonDimensionChange(net.minecraftforge.event.entity.player.PlayerEvent.PlayerChangedDimensionEvent event) Cleans up battles when the player changes dimensions.static voidonModelBakeEvent(net.minecraftforge.client.event.ModelEvent.ModifyBakingResult event) Registers orb texture renderers.static voidonModelRegister(net.minecraftforge.client.event.ModelEvent.RegisterAdditional event) voidonPreClientTick(net.minecraftforge.event.TickEvent.ClientTickEvent event) static voidonTileEntityRendererRegister(net.minecraftforge.client.event.EntityRenderersEvent.RegisterRenderers event) voidonWorldLoad(net.minecraftforge.event.level.LevelEvent.Load event) Resets the client-side Pokémon storage.voidonWorldUnload(net.minecraftforge.event.level.LevelEvent.Unload event) Unfreezes Pokémon in the world.static voidregisterKeyBindings(net.minecraftforge.client.event.RegisterKeyMappingsEvent event) static voidstatic voidstatic booleanresourceLocationExists(net.minecraft.resources.ResourceLocation resourceLocation) static voidsetIcon(com.mojang.blaze3d.platform.Window window, net.minecraft.server.packs.PackResources resources, com.mojang.blaze3d.platform.IconSet iconSet) static voidspawnParticle(EnumBreedingParticles particle, net.minecraft.world.level.Level worldObj, double posX, double posY, double posZ, PaletteProperties paletteProperties) static voidspawnParticle(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
-