Class PlaceHolder
- java.lang.Object
-
- dev.aura.bungeechat.api.placeholder.PlaceHolder
-
- All Implemented Interfaces:
BungeeChatPlaceHolder
public class PlaceHolder extends Object implements BungeeChatPlaceHolder
-
-
Constructor Summary
Constructors Constructor Description PlaceHolder(String placeholder, ReplacementSupplier replacementSupplier, Predicate<? super BungeeChatContext>... requirements)
PlaceHolder(String placeholder, ReplacementSupplier replacementSupplier, List<Predicate<? super BungeeChatContext>> requirements)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRequirement(Predicate<? super BungeeChatContext> requirement)
protected boolean
canEqual(Object other)
PlaceHolder[]
createAliases(String... aliases)
boolean
equals(Object o)
String
getName()
String
getPlaceholder()
String
getReplacement(String name, BungeeChatContext context)
int
hashCode()
boolean
isContextApplicable(BungeeChatContext context)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface dev.aura.bungeechat.api.placeholder.BungeeChatPlaceHolder
matchesName
-
-
-
-
Constructor Detail
-
PlaceHolder
@SafeVarargs public PlaceHolder(String placeholder, ReplacementSupplier replacementSupplier, Predicate<? super BungeeChatContext>... requirements)
-
PlaceHolder
public PlaceHolder(String placeholder, ReplacementSupplier replacementSupplier, List<Predicate<? super BungeeChatContext>> requirements)
-
-
Method Detail
-
isContextApplicable
public boolean isContextApplicable(BungeeChatContext context)
- Specified by:
isContextApplicable
in interfaceBungeeChatPlaceHolder
-
getReplacement
public String getReplacement(String name, BungeeChatContext context)
- Specified by:
getReplacement
in interfaceBungeeChatPlaceHolder
-
addRequirement
public void addRequirement(Predicate<? super BungeeChatContext> requirement)
-
getName
public String getName()
- Specified by:
getName
in interfaceBungeeChatPlaceHolder
-
createAliases
public PlaceHolder[] createAliases(String... aliases)
-
canEqual
protected boolean canEqual(Object other)
-
getPlaceholder
public String getPlaceholder()
-
-