mirror of
https://github.com/songoda/EpicEnchants.git
synced 2024-09-27 15:22:45 +02:00
24 lines
592 B
Java
24 lines
592 B
Java
package com.craftaro.epicenchants.objects;
|
|
|
|
public class Placeholder {
|
|
private final String placeholder;
|
|
private final Object toReplace;
|
|
|
|
private Placeholder(String placeholder, Object toReplace) {
|
|
this.placeholder = "{" + placeholder + "}";
|
|
this.toReplace = toReplace;
|
|
}
|
|
|
|
public static Placeholder of(String placeholder, Object toReplace) {
|
|
return new Placeholder(placeholder, toReplace);
|
|
}
|
|
|
|
public String getPlaceholder() {
|
|
return this.placeholder;
|
|
}
|
|
|
|
public Object getToReplace() {
|
|
return this.toReplace;
|
|
}
|
|
}
|