mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2026-07-21 14:04:29 +02:00
rough prototype
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
package me.clip.placeholderapi.expansion;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public final class PlaceholderContext<T> {
|
||||
@Nullable private final Player player;
|
||||
@NotNull private final T type;
|
||||
@NotNull private final String args;
|
||||
|
||||
public PlaceholderContext(@Nullable final Player player, @NotNull final T type,
|
||||
@NotNull final String args) {
|
||||
this.player = player;
|
||||
this.type = type;
|
||||
this.args = args;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public Player player() {
|
||||
return player;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public T type() {
|
||||
return type;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public String args() {
|
||||
return args;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user