Skip to content

PlayerResourcePackStatusEvent

Namespace Mc.Scripting.Events · Kind struct (ref)

public ref struct PlayerResourcePackStatusEvent : IEvent

A 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.
Member Description
PlayerResourcePackStatusEvent(Player player, Uuid packId, ResourcePackStatus status) Creates the event (for firing it from a plugin; native code builds its own).
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
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.
public Uuid PackId { get; }

The pack id given in the push.

public Player Player { get; }

The player.

public ResourcePackStatus Status { get; }

The reported state.

public static ushort CatalogueId { get; }

Catalogue id (stable ABI).

public static bool IsCancellable { get; }

Whether handlers can cancel the event.

public static string Key { get; }

Registry key of the event.

IEvent · Player · ResourcePackStatus · Uuid