|
|
virtual void | respawn () |
| | Trigger the player's respawn.
|
| virtual shared_ptr< ItemInstance > | getCarriedItem () |
| | Get the item currently held in the player's hand.
|
| virtual void | playSound (int soundId, float volume, float pitch) |
| | Play a sound effect at the player's position.
|
|
virtual void | respawn () override |
| | Respawn the player and trigger the respawn animation.
|
|
virtual void | animateRespawn () |
| | Trigger the respawn animation on the client.
|
| virtual void | chat (const wstring &message) |
| | Send a chat message from this player.
|
| virtual int | ThirdPersonView () |
| | Get the active third-person view mode.
|
| virtual void | SetThirdPersonView (int val) |
| | Set the third-person view mode.
|
|
void | ResetInactiveTicks () |
| | Reset the idle timer (prevents idle animations).
|
| unsigned int | GetInactiveTicks () |
| | Get the number of ticks the player has been idle.
|
| void | setSprinting (bool value) |
| | Set the player's sprint state.
|
| void | setExperienceValues (float experienceProgress, int totalExp, int experienceLevel) |
| | Update the player's XP display values.
|
| virtual void | crit (shared_ptr< Entity > entity) |
| | Trigger a critical hit visual on an entity.
|
| virtual void | magicCrit (shared_ptr< Entity > entity) |
| | Trigger a magic critical hit visual on an entity.
|
| int | GetXboxPad () |
| | Get the Xbox pad index assigned to this player.
|
| void | SetXboxPad (int iPad) |
| | Set the Xbox pad index for this player.
|
| virtual void | changeDimension (int i) |
| | Change the player's dimension (triggers dimension change logic).
|
| float | getHealth () const |
| | Get the player's current health.
|
| void | setHealth (float health) |
| | Set the player's health directly.
|
| float | getMaxHealth () const |
| | Get the player's maximum health.
|
| bool | hurt (DamageSource *source, float amount) |
| | Apply damage from a damage source.
|
| void | heal (float amount) |
| | Heal the player by a given amount.
|
| int | getFoodLevel () const |
| | Get the player's current food level.
|
| int | getExperienceLevel () const |
| | Get the player's experience level.
|
| void | giveExperienceLevels (int amount) |
| | Give experience levels to the player.
|
| wstring | getName () const |
| | Get the player's username.
|
| bool | isSneaking () const |
| | Check if the player is currently sneaking.
|
| bool | isSprinting () const |
| | Check if the player is currently sprinting.
|
| bool | isFlying () const |
| | Check if the player is flying.
|
| void | setFlying (bool flying) |
| | Set the player's flying state.
|
|
double | getX () const |
| | Get the player's current X position.
|
|
double | getY () const |
| | Get the player's current Y position (feet level).
|
|
double | getZ () const |
| | Get the player's current Z position.
|
| void | teleportTo (double x, double y, double z) |
| | Teleport the player to a world position.
|
| class Inventory * | getInventory () |
| | Add an item to the player's inventory.
|
|
void | kill () |
| | Kill the player immediately. Triggers death screen.
|
| bool | hasPermission (class EGameCommand command) |
| | Check whether this player has a given game permission.
|
Client-side representation of a local (human-controlled) player.
Extends Player with client-specific input handling, portal effects, splitscreen management, and view control.
Obtain via SDK::GetLocalPlayer() or Minecraft::GetInstance()->localplayers[idx].
Definition at line 35 of file LocalPlayer.h.