Class StaticPlaceholdersService<T,P extends Placeholders<T,P>>
java.lang.Object
net.dzikoysk.funnyguilds.feature.placeholders.StaticPlaceholdersService<T,P>
- All Implemented Interfaces:
PlaceholdersService<T>
- Direct Known Subclasses:
BasicPlaceholdersService,GuildPlaceholdersService,TimePlaceholdersService,UserPlaceholdersService
public abstract class StaticPlaceholdersService<T,P extends Placeholders<T,P>>
extends Object
implements PlaceholdersService<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final BiFunction<Collection<String>,String, String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFormat text with all placeholders.formatCustom(@Nullable Object entity, @Nullable String text, T data, String prefix, String suffix, Function<String, String> nameModifier) formatCustom(@Nullable String text, T data, String prefix, String suffix, Function<String, String> nameModifier) prepareReplacements(@Nullable Object entity, T data) voidRegister placeholders set.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.dzikoysk.funnyguilds.feature.placeholders.PlaceholdersService
format
-
Field Details
-
JOIN_OR_DEFAULT
-
placeholders
-
-
Constructor Details
-
StaticPlaceholdersService
public StaticPlaceholdersService()
-
-
Method Details
-
register
Register placeholders set.- Parameters:
plugin- plugin which register placeholders setname- name of placeholders setplaceholders- placeholders set
-
format
Format text with all placeholders.- Specified by:
formatin interfacePlaceholdersService<T>- Parameters:
text- text to formatdata- data to use to formatting- Returns:
- formatted text
-
formatCustom
-
formatCustom
-
prepareReplacements
-