|
25 | 25 | package org.spongepowered.api.data.type; |
26 | 26 |
|
27 | 27 | import org.spongepowered.api.ResourceKey; |
| 28 | +import org.spongepowered.api.Sponge; |
| 29 | +import org.spongepowered.api.registry.DefaultedRegistryReference; |
28 | 30 | import org.spongepowered.api.registry.Registry; |
29 | 31 | import org.spongepowered.api.registry.RegistryKey; |
30 | | -import org.spongepowered.api.registry.RegistryReference; |
31 | 32 | import org.spongepowered.api.registry.RegistryScope; |
32 | 33 | import org.spongepowered.api.registry.RegistryScopes; |
33 | 34 | import org.spongepowered.api.registry.RegistryTypes; |
34 | | -import org.spongepowered.api.world.server.ServerWorld; |
35 | 35 |
|
36 | 36 | /** |
37 | 37 | * <!-- This file is automatically generated. Any manual changes will be overwritten. --> |
38 | 38 | */ |
39 | 39 | @SuppressWarnings("unused") |
40 | | -@RegistryScopes(scopes = RegistryScope.WORLD) |
| 40 | +@RegistryScopes(scopes = RegistryScope.ENGINE) |
41 | 41 | public final class WolfVariants { |
42 | 42 |
|
43 | | - public static final RegistryReference<WolfVariant> ASHEN = WolfVariants.key(ResourceKey.minecraft("ashen")); |
| 43 | + public static final DefaultedRegistryReference<WolfVariant> ASHEN = WolfVariants.key(ResourceKey.minecraft("ashen")); |
44 | 44 |
|
45 | | - public static final RegistryReference<WolfVariant> BLACK = WolfVariants.key(ResourceKey.minecraft("black")); |
| 45 | + public static final DefaultedRegistryReference<WolfVariant> BLACK = WolfVariants.key(ResourceKey.minecraft("black")); |
46 | 46 |
|
47 | | - public static final RegistryReference<WolfVariant> CHESTNUT = WolfVariants.key(ResourceKey.minecraft("chestnut")); |
| 47 | + public static final DefaultedRegistryReference<WolfVariant> CHESTNUT = WolfVariants.key(ResourceKey.minecraft("chestnut")); |
48 | 48 |
|
49 | | - public static final RegistryReference<WolfVariant> PALE = WolfVariants.key(ResourceKey.minecraft("pale")); |
| 49 | + public static final DefaultedRegistryReference<WolfVariant> PALE = WolfVariants.key(ResourceKey.minecraft("pale")); |
50 | 50 |
|
51 | | - public static final RegistryReference<WolfVariant> RUSTY = WolfVariants.key(ResourceKey.minecraft("rusty")); |
| 51 | + public static final DefaultedRegistryReference<WolfVariant> RUSTY = WolfVariants.key(ResourceKey.minecraft("rusty")); |
52 | 52 |
|
53 | | - public static final RegistryReference<WolfVariant> SNOWY = WolfVariants.key(ResourceKey.minecraft("snowy")); |
| 53 | + public static final DefaultedRegistryReference<WolfVariant> SNOWY = WolfVariants.key(ResourceKey.minecraft("snowy")); |
54 | 54 |
|
55 | | - public static final RegistryReference<WolfVariant> SPOTTED = WolfVariants.key(ResourceKey.minecraft("spotted")); |
| 55 | + public static final DefaultedRegistryReference<WolfVariant> SPOTTED = WolfVariants.key(ResourceKey.minecraft("spotted")); |
56 | 56 |
|
57 | | - public static final RegistryReference<WolfVariant> STRIPED = WolfVariants.key(ResourceKey.minecraft("striped")); |
| 57 | + public static final DefaultedRegistryReference<WolfVariant> STRIPED = WolfVariants.key(ResourceKey.minecraft("striped")); |
58 | 58 |
|
59 | | - public static final RegistryReference<WolfVariant> WOODS = WolfVariants.key(ResourceKey.minecraft("woods")); |
| 59 | + public static final DefaultedRegistryReference<WolfVariant> WOODS = WolfVariants.key(ResourceKey.minecraft("woods")); |
60 | 60 |
|
61 | 61 | private WolfVariants() { |
62 | 62 | } |
63 | 63 |
|
64 | | - public static Registry<WolfVariant> registry(final ServerWorld world) { |
65 | | - return world.registry(RegistryTypes.WOLF_VARIANT); |
| 64 | + public static Registry<WolfVariant> registry() { |
| 65 | + return Sponge.server().registry(RegistryTypes.WOLF_VARIANT); |
66 | 66 | } |
67 | 67 |
|
68 | | - private static RegistryReference<WolfVariant> key(final ResourceKey location) { |
69 | | - return RegistryKey.of(RegistryTypes.WOLF_VARIANT, location).asReference(); |
| 68 | + private static DefaultedRegistryReference<WolfVariant> key(final ResourceKey location) { |
| 69 | + return RegistryKey.of(RegistryTypes.WOLF_VARIANT, location).asScopedReference(); |
70 | 70 | } |
71 | 71 | } |
0 commit comments