MCPcopy Create free account
hub / github.com/Teneted/Tenet / applyAmendment

Method applyAmendment

src/main/java/org/bukkit/help/HelpTopic.java:119–126  ·  view source on GitHub ↗

Developers implementing their own custom HelpTopic implementations can use this utility method to ensure their implementations comply with the expected behavior of the HelpTopic#amendTopic(String, String) method. @param baseText The existing text of the help topic. @param amendment The amen

(@NotNull String baseText, @Nullable String amendment)

Source from the content-addressed store, hash-verified

117 * according to the expected rules of amendTopic().
118 */
119 @NotNull
120 protected String applyAmendment(@NotNull String baseText, @Nullable String amendment) {
121 if (amendment == null) {
122 return baseText;
123 } else {
124 return amendment.replaceAll("<text>", baseText);
125 }
126 }
127}

Callers 1

amendTopicMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected