Registries#getId should be static

This commit is contained in:
shedaniel
2020-11-07 04:04:29 +08:00
parent cd641029c3
commit d50135b5d9

View File

@@ -53,7 +53,7 @@ public final class Registries {
* Fabric: Use registry
*/
@Nullable
public <T> ResourceLocation getId(T object, ResourceKey<net.minecraft.core.Registry<T>> fallback) {
public static <T> ResourceLocation getId(T object, ResourceKey<net.minecraft.core.Registry<T>> fallback) {
return IMPL.getId(object, fallback);
}
@@ -62,7 +62,7 @@ public final class Registries {
* Fabric: Use registry
*/
@Nullable
public <T> ResourceLocation getId(T object, net.minecraft.core.Registry<T> fallback) {
public static <T> ResourceLocation getId(T object, net.minecraft.core.Registry<T> fallback) {
return IMPL.getId(object, fallback);
}