9 | * This event will not be called if the "add-non-bedrock-items" setting is disabled in the Geyser config.
10 | */
11 | public abstract class GeyserDefineCustomSkullsEvent implements Event {
12 | /**
13 | * The type of texture provided
14 | */
15 | public enum SkullTextureType {
16 | USERNAME,
17 | UUID,
18 | PROFILE,
19 | SKIN_HASH
20 | }
21 |
22 | /**
23 | * Registers the given username, UUID, base64 encoded profile, or skin hash as a custom skull blocks
24 | * @param texture the username, UUID, base64 encoded profile, or skin hash
25 | * @param type the type of texture provided
26 | */
27 | public abstract void register(@NonNull String texture, @NonNull SkullTextureType type);
28 | }
29 |
--------------------------------------------------------------------------------
/api/src/main/java/org/geysermc/geyser/api/event/lifecycle/GeyserLoadResourcePacksEvent.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2019-2022 GeyserMC. http://geysermc.org
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy
5 | * of this software and associated documentation files (the "Software"), to deal
6 | * in the Software without restriction, including without limitation the rights
7 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 | * copies of the Software, and to permit persons to whom the Software is
9 | * furnished to do so, subject to the following conditions:
10 | *
11 | * The above copyright notice and this permission notice shall be included in
12 | * all copies or substantial portions of the Software.
13 | *
14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20 | * THE SOFTWARE.
21 | *
22 | * @author GeyserMC
23 | * @link https://github.com/GeyserMC/Geyser
24 | */
25 |
26 | package org.geysermc.geyser.api.event.lifecycle;
27 |
28 | import org.checkerframework.checker.nullness.qual.NonNull;
29 | import org.geysermc.event.Event;
30 |
31 | import java.nio.file.Path;
32 | import java.util.List;
33 |
34 | /**
35 | * @deprecated Use the {@link GeyserDefineResourcePacksEvent} instead.
36 | */
37 | @Deprecated
38 | public record GeyserLoadResourcePacksEvent(@NonNull List This is usually done when registries need to be loaded to make ID->key or key->ID conversions, but actual data isn't needed.
37 | * Only used in {@link Objective Objective}
38 | */
39 | UPDATE
40 | }
41 |
--------------------------------------------------------------------------------
/core/src/main/java/org/geysermc/geyser/session/auth/AuthData.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2019-2022 GeyserMC. http://geysermc.org
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy
5 | * of this software and associated documentation files (the "Software"), to deal
6 | * in the Software without restriction, including without limitation the rights
7 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 | * copies of the Software, and to permit persons to whom the Software is
9 | * furnished to do so, subject to the following conditions:
10 | *
11 | * The above copyright notice and this permission notice shall be included in
12 | * all copies or substantial portions of the Software.
13 | *
14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20 | * THE SOFTWARE.
21 | *
22 | * @author GeyserMC
23 | * @link https://github.com/GeyserMC/Geyser
24 | */
25 |
26 | package org.geysermc.geyser.session.auth;
27 |
28 | import java.util.UUID;
29 |
30 | public record AuthData(String name, UUID uuid, String xuid) {
31 | }
32 |
--------------------------------------------------------------------------------
/core/src/main/java/org/geysermc/geyser/session/cache/registry/RegistryEntryData.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2025 GeyserMC. http://geysermc.org
3 | *
4 | * Permission is hereby granted, free of charge, to any person obtaining a copy
5 | * of this software and associated documentation files (the "Software"), to deal
6 | * in the Software without restriction, including without limitation the rights
7 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 | * copies of the Software, and to permit persons to whom the Software is
9 | * furnished to do so, subject to the following conditions:
10 | *
11 | * The above copyright notice and this permission notice shall be included in
12 | * all copies or substantial portions of the Software.
13 | *
14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20 | * THE SOFTWARE.
21 | *
22 | * @author GeyserMC
23 | * @link https://github.com/GeyserMC/Geyser
24 | */
25 |
26 | package org.geysermc.geyser.session.cache.registry;
27 |
28 | import net.kyori.adventure.key.Key;
29 |
30 | public record RegistryEntryData