--- a/net/minecraft/core/component/DataComponentType.java
+++ b/net/minecraft/core/component/DataComponentType.java
@@ -100,7 +100,7 @@
 
             @Override
             public String toString() {
-                return Util.getRegisteredName((Registry<DataComponentType.Builder.SimpleType<T>>)BuiltInRegistries.DATA_COMPONENT_TYPE, this);
+                return Util.getRegisteredName(BuiltInRegistries.DATA_COMPONENT_TYPE, this);
             }
         }
     }
