File tree 2 files changed +10
-0
lines changed
src/main/java/org/spongepowered/api
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 27
27
import org .spongepowered .api .ResourceKey ;
28
28
import org .spongepowered .api .Sponge ;
29
29
import org .spongepowered .api .registry .DefaultedRegistryReference ;
30
+ import org .spongepowered .api .registry .Registry ;
30
31
import org .spongepowered .api .registry .RegistryKey ;
31
32
import org .spongepowered .api .registry .RegistryScope ;
32
33
import org .spongepowered .api .registry .RegistryScopes ;
@@ -51,6 +52,10 @@ public final class SculkSensorStates {
51
52
private SculkSensorStates () {
52
53
}
53
54
55
+ public static Registry <SculkSensorState > registry () {
56
+ return Sponge .game ().registry (RegistryTypes .SCULK_SENSOR_STATE );
57
+ }
58
+
54
59
private static DefaultedRegistryReference <SculkSensorState > key (final ResourceKey location ) {
55
60
return RegistryKey .of (RegistryTypes .SCULK_SENSOR_STATE , location ).asDefaultedReference (Sponge ::game );
56
61
}
Original file line number Diff line number Diff line change 27
27
import org .spongepowered .api .ResourceKey ;
28
28
import org .spongepowered .api .Sponge ;
29
29
import org .spongepowered .api .registry .DefaultedRegistryReference ;
30
+ import org .spongepowered .api .registry .Registry ;
30
31
import org .spongepowered .api .registry .RegistryKey ;
31
32
import org .spongepowered .api .registry .RegistryTypes ;
32
33
@@ -55,6 +56,10 @@ private EntityCategories() {
55
56
throw new AssertionError ("You should not be attempting to instantiate this class." );
56
57
}
57
58
59
+ public static Registry <EntityCategory > registry () {
60
+ return Sponge .game ().registry (RegistryTypes .ENTITY_CATEGORY );
61
+ }
62
+
58
63
private static DefaultedRegistryReference <EntityCategory > key (final ResourceKey location ) {
59
64
return RegistryKey .of (RegistryTypes .ENTITY_CATEGORY , location ).asDefaultedReference (Sponge ::game );
60
65
}
You can’t perform that action at this time.
0 commit comments