Class DragonEggDropPlaceholders
java.lang.Object
wtf.choco.dragoneggdrop.placeholder.DragonEggDropPlaceholders
public final class DragonEggDropPlaceholders extends Object
-
Method Summary
Modifier and Type Method Description static PlaceholderProvider
getProvider()
Get the active placeholder provider.static String
inject(org.bukkit.OfflinePlayer player, String string)
Inject placeholders into the provided string given an optional player context.static void
inject(org.bukkit.OfflinePlayer player, org.bukkit.inventory.ItemStack item)
Inject placeholders into the Strings from the provided item given an optional player context.static org.bukkit.inventory.ItemStack
injectCopy(org.bukkit.OfflinePlayer player, org.bukkit.inventory.ItemStack item)
Inject placeholders into the Strings from the provided item given an optional player context.static void
registerPlaceholders(DragonEggDrop plugin, org.bukkit.plugin.PluginManager pluginManager)
-
Method Details
-
registerPlaceholders
public static void registerPlaceholders(DragonEggDrop plugin, org.bukkit.plugin.PluginManager pluginManager) -
getProvider
Get the active placeholder provider.- Returns:
- the placeholder provider
-
inject
Inject placeholders into the provided string given an optional player context.This is a utility method for
PlaceholderProvider.inject(OfflinePlayer, String)
- Parameters:
player
- the player context or null if nonestring
- the string to inject- Returns:
- the injected string
- See Also:
PlaceholderProvider.inject(OfflinePlayer, String)
-
inject
public static void inject(org.bukkit.OfflinePlayer player, org.bukkit.inventory.ItemStack item)Inject placeholders into the Strings from the provided item given an optional player context.This is a utility method for
PlaceholderProvider.inject(OfflinePlayer, ItemStack)
- Parameters:
player
- the player context or null if noneitem
- the item to inject- See Also:
PlaceholderProvider.inject(OfflinePlayer, ItemStack)
-
injectCopy
public static org.bukkit.inventory.ItemStack injectCopy(org.bukkit.OfflinePlayer player, org.bukkit.inventory.ItemStack item)Inject placeholders into the Strings from the provided item given an optional player context. The passed ItemStack is final and will not be modified. Instead, a copy of the ItemStack (which has been injected) is returned.This is a utility method for
PlaceholderProvider.injectCopy(OfflinePlayer, ItemStack)
- Parameters:
player
- the player context or null if noneitem
- the item to inject- Returns:
- the injected ItemStack
- See Also:
PlaceholderProvider.injectCopy(OfflinePlayer, ItemStack)
-