mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2024-11-15 23:15:10 +01:00
Move classes
This commit is contained in:
parent
33bdce7915
commit
864f76eac6
@ -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;
|
||||
|
||||
|
@ -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;
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user