PlayerResourcePackStatusEvent
Namespace Mc.Scripting.Events · Kind struct (ref)
public ref struct PlayerResourcePackStatusEvent : IEventA client reported the state of a pushed resource pack.
| Id | 127 |
| Key | mc:player_resource_pack_status |
| Cancellable | no |
| Fired by the engine | yes |
| Field | Type | Handlers may write | Description |
|---|---|---|---|
Player |
player |
no (readonly) | The player. |
PackId |
Uuid |
no (readonly) | The pack id given in the push. |
Status |
enum:ResourcePackStatus |
no (readonly) | The reported state. |
Constructors
Section titled “Constructors”| Member | Description |
|---|---|
PlayerResourcePackStatusEvent(Player player, Uuid packId, ResourcePackStatus status) |
Creates the event (for firing it from a plugin; native code builds its own). |
Constructor
Section titled “Constructor”public PlayerResourcePackStatusEvent(Player player, Uuid packId, ResourcePackStatus status)Creates the event (for firing it from a plugin; native code builds its own). Signature of API 1.0.
Parameters
| Name | Type | Description |
|---|---|---|
player |
Player |
|
packId |
Uuid |
|
status |
ResourcePackStatus |
Properties
Section titled “Properties”| Member | Description |
|---|---|
Uuid PackId { get; } |
The pack id given in the push. |
Player Player { get; } |
The player. |
ResourcePackStatus Status { get; } |
The reported state. |
static ushort CatalogueId { get; } |
Catalogue id (stable ABI). |
static bool IsCancellable { get; } |
Whether handlers can cancel the event. |
static string Key { get; } |
Registry key of the event. |
PackId
Section titled “PackId”public Uuid PackId { get; }The pack id given in the push.
Player
Section titled “Player”public Player Player { get; }The player.
Status
Section titled “Status”public ResourcePackStatus Status { get; }The reported state.
CatalogueId
Section titled “CatalogueId”public static ushort CatalogueId { get; }Catalogue id (stable ABI).
IsCancellable
Section titled “IsCancellable”public static bool IsCancellable { get; }Whether handlers can cancel the event.
public static string Key { get; }Registry key of the event.
See also
Section titled “See also”IEvent · Player · ResourcePackStatus · Uuid