VOOZH about

URL: https://minecraft.wiki/w/Template:Java_classpath

⇱ Template:Java classpath – Minecraft Wiki


Template:Java classpath

From Minecraft Wiki
Jump to navigation Jump to search
Documentation[view] [edit] [history] [purge]
Shortcut

This template is used to shorten a Java classpath to the last name in the path, and puts the full path information inside a tooltip, which appears when hovered by the mouse cursor. This is useful when citing the game's source code in a reference.

{{Java classpath|1=<classpath>|2=<alias>|mapping=<mapping name>}}

  • |1=<classpath> – full path to the Java class.
  • |2=<alias> optional – specify a text that takes place instead of the class name in the classpath.
  • |mapping=<mapping name> optional – specify a mapping name if the classpath comes from a different mapping, other than the Mojang mapping, which is the default.

Examples

[edit source]
  • You can specify the classpath parameter with the full path to the Java class:
    {{jcp|path.to.the.class.ClassReference}} results in ClassReference.
  • You can specify an alias which appear in the text instead of the class name:
    {{jcp|path.to.the.class.ClassReference|aliased name}} results in aliased name.

See also

[edit source]
[view] [edit] [history] [purge]The above documentation is transcluded from Template:Java classpath/doc.
Retrieved from "https://minecraft.wiki/w/Template:Java_classpath?oldid=3391750"

Navigation menu