55import com .mojang .logging .LogUtils ;
66import net .minecraft .network .chat .Component ;
77import net .minecraft .network .chat .MutableComponent ;
8- import net .minecraft .resources .ResourceLocation ;
8+ import net .minecraft .resources .Identifier ;
99import org .jetbrains .annotations .Nullable ;
1010import org .slf4j .Logger ;
1111
@@ -27,28 +27,28 @@ private TooltipBuilder()
2727 /**
2828 * Used to create a translatable tooltip.
2929 * Not setting the mod id will result in the tooltip being registered under the default <i>minecraft</i> namespace.
30- * If the tooltip name is empty, {@link #build(ResourceLocation , Object...)} will throw a {@link IllegalStateException}.
30+ * If the tooltip name is empty, {@link #build(Identifier , Object...)} will throw a {@link IllegalStateException}.
3131 *
32- * Use {@link #create(ResourceLocation , Object...)} if the tooltip should contain other sub-elements.
32+ * Use {@link #create(Identifier , Object...)} if the tooltip should contain other sub-elements.
3333 *
3434 * @param key name of the tooltip
3535 * @return a MutableComponent
3636 */
37- public static MutableComponent create (ResourceLocation key )
37+ public static MutableComponent create (Identifier key )
3838 {
3939 return build (key , (Object ) null );
4040 }
4141
4242 /**
4343 * Used to create a translatable tooltip.
4444 * Not setting the mod id will result in the tooltip being registered under the default <i>minecraft</i> namespace.
45- * If the tooltip name is empty, {@link #build(ResourceLocation , Object...)} will throw a {@link IllegalStateException}.
45+ * If the tooltip name is empty, {@link #build(Identifier , Object...)} will throw a {@link IllegalStateException}.
4646 *
4747 * @param key name of the tooltip
4848 * @param args sub-elements
4949 * @return a MutableComponent
5050 */
51- public static MutableComponent create (ResourceLocation key , Object ... args )
51+ public static MutableComponent create (Identifier key , Object ... args )
5252 {
5353 return build (key , args );
5454 }
@@ -57,7 +57,7 @@ public static MutableComponent create(ResourceLocation key, Object... args)
5757 * Builder used for internal purposes only.
5858 */
5959 @ Internal
60- private static MutableComponent build (ResourceLocation key , @ Nullable Object ... args )
60+ private static MutableComponent build (Identifier key , @ Nullable Object ... args )
6161 {
6262 String content = "tooltip." + key .getNamespace () + "." + key .getPath ();
6363 if (!content .endsWith ("." ))
0 commit comments