Annotation Interface BracketDumper
If not all values can be dumped, then the method should be responsible for providing the biggest subset of valid values possible. This ensures that the information provided by the dumper is complete.
Methods annotated by this annotation must be both public and static. They must
have no parameters and return a Collection of Strings (i.e Collection<String>).
Moreover, the classes where they are declared must be annotated with ZenRegister.
It is not necessary for a mod to manually register a method annotated with this annotation through a plugin's
IBracketParserRegistrationHandler: using the annotation as described
above is sufficient for CraftTweaker to handle registration automatically.
- Since:
- 9.1.0
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionGets the name of the file where data will be dumped to if requested.Gets the name of the sub command used in/ct dumpto invoke this dumper.
-
Element Details
-
value
String valueIndicates the name of bracket handler for which this dumper is for.- Returns:
- The bracket handler for which this dumper is for.
- Since:
- 9.1.0
-
-
-
subCommandName
String subCommandNameGets the name of the sub command used in/ct dumpto invoke this dumper.If no value or an empty string is specified, then CraftTweaker will attempt to pluralize the string returned by
value().- Returns:
- The name of the sub command to invoke this dumper.
- Since:
- 9.1.0
- Default:
- ""
-
fileName
String fileNameGets the name of the file where data will be dumped to if requested.If no value or an empty string is specified, then CraftTweaker will use the string returned by
value()as the file name instead.- Returns:
- The name of the file where data will be dumped to.
- Since:
- 9.1.0
- Default:
- ""
-