Class Placeholders

java.lang.Object
net.elytrium.serializer.placeholders.Placeholders

public class Placeholders extends Object
  • Constructor Details

    • Placeholders

      public Placeholders()
  • Method Details

    • replace

      public static <T, R> R replace(T value, Object... values)
    • replaceFor

      public static <H, T, P, R> R replaceFor(H holder, T value, Object... values)
    • addPlaceholders

      public static void addPlaceholders(Object value, PlaceholderReplacer<?,?> replacer, String... placeholders)
    • addPlaceholders

      public static void addPlaceholders(Object value, PlaceholderReplacer<?,?> replacer, boolean wrapWithBraces, String... placeholders)
    • addPlaceholders

      public static void addPlaceholders(int hash, PlaceholderReplacer<?,?> replacer, String... placeholders)
    • addPlaceholders

      public static void addPlaceholders(int hash, PlaceholderReplacer<?,?> replacer, boolean wrapWithBraces, String... placeholders)
    • setPlaceholders

      public static void setPlaceholders(Object value, PlaceholderReplacer<?,?> fallbackReplacer, String... placeholders)
    • setPlaceholders

      public static void setPlaceholders(int hash, PlaceholderReplacer<?,?> fallbackReplacer, String... placeholders)
    • setPlaceholders

      public static void setPlaceholders(int hash, PlaceholderReplacer<?,?> fallbackReplacer, boolean wrapWithBraces, String... placeholders)
    • removePlaceholders

      public static void removePlaceholders(Object value)
    • removePlaceholders

      public static void removePlaceholders(int hash)
    • hasPlaceholders

      public static boolean hasPlaceholders(Object value)
    • hasPlaceholders

      public static boolean hasPlaceholders(int hash)
    • getPlaceholders

      public static <P> P[] getPlaceholders(Object value)
    • getPlaceholders

      public static <P> P[] getPlaceholders(int hash)
    • getReplacer

      public static <T> PlaceholderReplacer<T,?> getReplacer(T value)
    • getReplacer

      public static <T> PlaceholderReplacer<T,?> getReplacer(int hash)