Class SessionLoadResourcePacksEvent
java.lang.Object
org.geysermc.geyser.api.event.connection.ConnectionEvent
org.geysermc.geyser.api.event.bedrock.SessionLoadResourcePacksEvent
- All Implemented Interfaces:
org.geysermc.event.Event
Called when Geyser initializes a session for a new Bedrock client and is in the process of sending resource packs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanregister(@NonNull ResourcePack resourcePack)Registers aResourcePackto be sent to the client.abstract @NonNull List<ResourcePack>Gets an unmodifiable list ofResourcePacks that will be sent to the client.abstract booleanunregister(@NonNull UUID uuid)Unregisters a resource pack from being sent to the client.Methods inherited from class org.geysermc.geyser.api.event.connection.ConnectionEvent
connection
-
Constructor Details
-
SessionLoadResourcePacksEvent
-
-
Method Details
-
resourcePacks
Gets an unmodifiable list ofResourcePacks that will be sent to the client.- Returns:
- an unmodifiable list of resource packs that will be sent to the client.
-
register
Registers aResourcePackto be sent to the client.- Parameters:
resourcePack- a resource pack that will be sent to the client.- Returns:
- true if the resource pack was added successfully, or false if already present
-
unregister
Unregisters a resource pack from being sent to the client.- Parameters:
uuid- the UUID of the resource pack- Returns:
- true whether the resource pack was removed from the list of resource packs.
-