Class endstone::Ability¶
ClassList > endstone > Ability
All player abilities. More...
#include <endstone/ability.h>
Inherits the following classes: endstone::Registry::Type
Public Types inherited from endstone::Registry::Type¶
| Type | Name |
|---|---|
| typedef Identifier< T > | Id The identifier type used to look up this object in its registry. |
Public Static Attributes¶
| Type | Name |
|---|---|
| constexpr auto | AttackMobs = [**AbilityId**](classendstone_1_1AbilityId.md)<[**bool**](classendstone_1_1Identifier.md)>::minecraft("attackmobs")Whether the player can attack mobs. |
| constexpr auto | AttackPlayers = [**AbilityId**](classendstone_1_1AbilityId.md)<[**bool**](classendstone_1_1Identifier.md)>::minecraft("attackplayers")Whether the player can attack other players. |
| constexpr auto | Build = [**AbilityId**](classendstone_1_1AbilityId.md)<[**bool**](classendstone_1_1Identifier.md)>::minecraft("build")Whether the player can place blocks. |
| constexpr auto | DoorsAndSwitches = [**AbilityId**](classendstone_1_1AbilityId.md)<[**bool**](classendstone_1_1Identifier.md)>::minecraft("doorsandswitches")Whether the player can use doors, trapdoors, buttons, levers and other redstone components. |
| constexpr auto | FlySpeed = [**AbilityId**](classendstone_1_1AbilityId.md)<[**float**](classendstone_1_1Identifier.md)>::minecraft("flyspeed")The speed at which the player flies, default is 0.05 . |
| constexpr auto | Flying = [**AbilityId**](classendstone_1_1AbilityId.md)<[**bool**](classendstone_1_1Identifier.md)>::minecraft("flying")Whether the player is currently flying. |
| constexpr auto | Instabuild = [**AbilityId**](classendstone_1_1AbilityId.md)<[**bool**](classendstone_1_1Identifier.md)>::minecraft("instabuild")Whether the player destroys blocks instantly. |
| constexpr auto | Invulnerable = [**AbilityId**](classendstone_1_1AbilityId.md)<[**bool**](classendstone_1_1Identifier.md)>::minecraft("invulnerable")Whether the player is immune to all damage. |
| constexpr auto | Lightning = [**AbilityId**](classendstone_1_1AbilityId.md)<[**bool**](classendstone_1_1Identifier.md)>::minecraft("lightning")Whether the player was struck by lightning. |
| constexpr auto | MayFly = [**AbilityId**](classendstone_1_1AbilityId.md)<[**bool**](classendstone_1_1Identifier.md)>::minecraft("mayfly")Whether the player is allowed to fly. |
| constexpr auto | Mine = [**AbilityId**](classendstone_1_1AbilityId.md)<[**bool**](classendstone_1_1Identifier.md)>::minecraft("mine")Whether the player can destroy blocks. |
| constexpr auto | Muted = [**AbilityId**](classendstone_1_1AbilityId.md)<[**bool**](classendstone_1_1Identifier.md)>::minecraft("mute")Whether the player's chat messages are hidden from other players. |
| constexpr auto | NoClip = [**AbilityId**](classendstone_1_1AbilityId.md)<[**bool**](classendstone_1_1Identifier.md)>::minecraft("noclip")Whether the player can move through blocks. |
| constexpr auto | OpenContainers = [**AbilityId**](classendstone_1_1AbilityId.md)<[**bool**](classendstone_1_1Identifier.md)>::minecraft("opencontainers")Whether the player can open containers. |
| constexpr auto | OperatorCommands = [**AbilityId**](classendstone_1_1AbilityId.md)<[**bool**](classendstone_1_1Identifier.md)>::minecraft("op")Whether the player can use operator commands. |
| constexpr auto | PrivilegedBuilder = [**AbilityId**](classendstone_1_1AbilityId.md)<[**bool**](classendstone_1_1Identifier.md)>::minecraft("privilegedbuilder")Whether the player is a privileged builder. |
| constexpr auto | Teleport = [**AbilityId**](classendstone_1_1AbilityId.md)<[**bool**](classendstone_1_1Identifier.md)>::minecraft("teleport")Whether the player can teleport. |
| constexpr auto | VerticalFlySpeed = [**AbilityId**](classendstone_1_1AbilityId.md)<[**float**](classendstone_1_1Identifier.md)>::minecraft("verticalflyspeed")The speed at which the player flies up and down, default is 1 . |
| constexpr auto | WalkSpeed = [**AbilityId**](classendstone_1_1AbilityId.md)<[**float**](classendstone_1_1Identifier.md)>::minecraft("walkspeed")The speed at which the player walks, default is 0.1 . |
| constexpr auto | WorldBuilder = [**AbilityId**](classendstone_1_1AbilityId.md)<[**bool**](classendstone_1_1Identifier.md)>::minecraft("worldbuilder")Whether the player is a world builder. |
Public Functions inherited from endstone::Registry::Type¶
| Type | Name |
|---|---|
| virtual Id | getId () const = 0 Return the identifier of this object. |
| virtual std::string | getTranslationKey () const = 0 Get the translation key, suitable for use in a translation component. |
| operator Id () const |
|
| bool | operator!= (const Id & other) const |
| bool | operator!= (const T & other) const |
| bool | operator== (const Id & other) const |
| bool | operator== (const T & other) const |
| virtual | ~Type () = default |
Public Static Functions inherited from endstone::Registry::Type¶
| Type | Name |
|---|---|
| const T * | get (Id id) Look up a registry entry by identifier. |
Detailed Description¶
AttackMobs, AttackPlayers, Build, DoorsAndSwitches, Mine, OpenContainers, OperatorCommands and Teleport are the eight member permissions the client shows in its pause menu, and the server enforces every one of them.
Public Static Attributes Documentation¶
variable AttackMobs¶
Whether the player can attack mobs.
variable AttackPlayers¶
Whether the player can attack other players.
variable Build¶
Whether the player can place blocks.
variable DoorsAndSwitches¶
Whether the player can use doors, trapdoors, buttons, levers and other redstone components.
variable FlySpeed¶
The speed at which the player flies, default is 0.05 .
variable Flying¶
Whether the player is currently flying.
variable Instabuild¶
Whether the player destroys blocks instantly.
variable Invulnerable¶
Whether the player is immune to all damage.
variable Lightning¶
Whether the player was struck by lightning.
variable MayFly¶
Whether the player is allowed to fly.
variable Mine¶
Whether the player can destroy blocks.
variable Muted¶
Whether the player's chat messages are hidden from other players.
variable NoClip¶
Whether the player can move through blocks.
variable OpenContainers¶
Whether the player can open containers.
variable OperatorCommands¶
Whether the player can use operator commands.
variable PrivilegedBuilder¶
Whether the player is a privileged builder.
variable Teleport¶
Whether the player can teleport.
variable VerticalFlySpeed¶
The speed at which the player flies up and down, default is 1 .
variable WalkSpeed¶
The speed at which the player walks, default is 0.1 .
variable WorldBuilder¶
Whether the player is a world builder.
The documentation for this class was generated from the following file include/endstone/ability.h