Class GeyserDefineCustomSkullsEvent
java.lang.Object
org.geysermc.geyser.api.event.lifecycle.GeyserDefineCustomSkullsEvent
- All Implemented Interfaces:
org.geysermc.event.Event
public abstract class GeyserDefineCustomSkullsEvent
extends Object
implements org.geysermc.event.Event
Called on Geyser's startup when looking for custom skulls. Custom skulls must be registered through this event.
This event will not be called if the "add-non-bedrock-items" setting is disabled in the Geyser config.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe type of texture provided -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidregister(@NonNull String texture, @NonNull GeyserDefineCustomSkullsEvent.SkullTextureType type) Registers the given username, UUID, base64 encoded profile, or skin hash as a custom skull blocks
-
Constructor Details
-
GeyserDefineCustomSkullsEvent
public GeyserDefineCustomSkullsEvent()
-
-
Method Details
-
register
public abstract void register(@NonNull String texture, @NonNull GeyserDefineCustomSkullsEvent.SkullTextureType type) Registers the given username, UUID, base64 encoded profile, or skin hash as a custom skull blocks- Parameters:
texture- the username, UUID, base64 encoded profile, or skin hashtype- the type of texture provided
-