Move classes

This commit is contained in:
filoghost 2021-05-25 21:05:10 +02:00
parent 33bdce7915
commit 864f76eac6
3 changed files with 6 additions and 8 deletions

View File

@ -14,8 +14,6 @@ import me.filoghost.holographicdisplays.api.placeholder.PlaceholderReplacer;
import me.filoghost.holographicdisplays.placeholder.parsing.PlaceholderIdentifier;
import me.filoghost.holographicdisplays.placeholder.parsing.PlaceholderOccurrence;
import me.filoghost.holographicdisplays.placeholder.parsing.PluginName;
import me.filoghost.holographicdisplays.placeholder.util.SimplePlaceholder;
import me.filoghost.holographicdisplays.placeholder.util.SingletonPlaceholderFactory;
import org.bukkit.plugin.Plugin;
import org.jetbrains.annotations.Nullable;

View File

@ -3,18 +3,18 @@
*
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package me.filoghost.holographicdisplays.placeholder.util;
package me.filoghost.holographicdisplays.placeholder.registry;
import me.filoghost.fcommons.Preconditions;
import me.filoghost.holographicdisplays.api.placeholder.Placeholder;
import me.filoghost.holographicdisplays.api.placeholder.PlaceholderReplacer;
public class SimplePlaceholder implements Placeholder {
class SimplePlaceholder implements Placeholder {
private final int refreshIntervalTicks;
private final PlaceholderReplacer placeholderReplacer;
public SimplePlaceholder(int refreshIntervalTicks, PlaceholderReplacer placeholderReplacer) {
SimplePlaceholder(int refreshIntervalTicks, PlaceholderReplacer placeholderReplacer) {
Preconditions.checkArgument(refreshIntervalTicks >= 0, "refreshIntervalTicks cannot be negative");
Preconditions.notNull(placeholderReplacer, "placeholderReplacer");
this.refreshIntervalTicks = refreshIntervalTicks;

View File

@ -3,17 +3,17 @@
*
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package me.filoghost.holographicdisplays.placeholder.util;
package me.filoghost.holographicdisplays.placeholder.registry;
import me.filoghost.fcommons.Preconditions;
import me.filoghost.holographicdisplays.api.placeholder.Placeholder;
import me.filoghost.holographicdisplays.api.placeholder.PlaceholderFactory;
public class SingletonPlaceholderFactory implements PlaceholderFactory {
class SingletonPlaceholderFactory implements PlaceholderFactory {
private final Placeholder placeholder;
public SingletonPlaceholderFactory(Placeholder placeholder) {
SingletonPlaceholderFactory(Placeholder placeholder) {
Preconditions.notNull(placeholder, "placeholder");
this.placeholder = placeholder;
}