mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2024-11-15 23:15:10 +01:00
Move API implementations to a common package
This commit is contained in:
parent
dfcc597a02
commit
08d3219c37
@ -11,6 +11,7 @@ import me.filoghost.fcommons.FeatureSupport;
|
||||
import me.filoghost.fcommons.config.exception.ConfigException;
|
||||
import me.filoghost.fcommons.logging.ErrorCollector;
|
||||
import me.filoghost.holographicdisplays.api.internal.HolographicDisplaysAPIProvider;
|
||||
import me.filoghost.holographicdisplays.plugin.api.current.DefaultHolographicDisplaysAPIProvider;
|
||||
import me.filoghost.holographicdisplays.plugin.bridge.bungeecord.BungeeServerTracker;
|
||||
import me.filoghost.holographicdisplays.plugin.bridge.placeholderapi.PlaceholderAPIHook;
|
||||
import me.filoghost.holographicdisplays.plugin.bridge.protocollib.ProtocolLibHook;
|
||||
@ -21,7 +22,7 @@ import me.filoghost.holographicdisplays.plugin.disk.ConfigManager;
|
||||
import me.filoghost.holographicdisplays.plugin.disk.Configuration;
|
||||
import me.filoghost.holographicdisplays.plugin.disk.HologramDatabase;
|
||||
import me.filoghost.holographicdisplays.plugin.disk.upgrade.LegacySymbolsUpgrade;
|
||||
import me.filoghost.holographicdisplays.plugin.legacy.api.v2.V2HologramsAPIProvider;
|
||||
import me.filoghost.holographicdisplays.plugin.api.v2.V2HologramsAPIProvider;
|
||||
import me.filoghost.holographicdisplays.plugin.listener.ChunkListener;
|
||||
import me.filoghost.holographicdisplays.plugin.listener.InteractListener;
|
||||
import me.filoghost.holographicdisplays.plugin.listener.SpawnListener;
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package me.filoghost.holographicdisplays.plugin;
|
||||
package me.filoghost.holographicdisplays.plugin.api.current;
|
||||
|
||||
import me.filoghost.fcommons.Preconditions;
|
||||
import me.filoghost.holographicdisplays.api.Hologram;
|
||||
@ -18,13 +18,13 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
public class DefaultHolographicDisplaysAPI implements HolographicDisplaysAPI {
|
||||
class DefaultHolographicDisplaysAPI implements HolographicDisplaysAPI {
|
||||
|
||||
private final Plugin plugin;
|
||||
private final APIHologramManager apiHologramManager;
|
||||
private final PlaceholderRegistry placeholderRegistry;
|
||||
|
||||
public DefaultHolographicDisplaysAPI(Plugin plugin, APIHologramManager apiHologramManager, PlaceholderRegistry placeholderRegistry) {
|
||||
DefaultHolographicDisplaysAPI(Plugin plugin, APIHologramManager apiHologramManager, PlaceholderRegistry placeholderRegistry) {
|
||||
this.plugin = plugin;
|
||||
this.apiHologramManager = apiHologramManager;
|
||||
this.placeholderRegistry = placeholderRegistry;
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package me.filoghost.holographicdisplays.plugin;
|
||||
package me.filoghost.holographicdisplays.plugin.api.current;
|
||||
|
||||
import me.filoghost.fcommons.Preconditions;
|
||||
import me.filoghost.holographicdisplays.api.HolographicDisplaysAPI;
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package me.filoghost.holographicdisplays.plugin.legacy.api.v2;
|
||||
package me.filoghost.holographicdisplays.plugin.api.v2;
|
||||
|
||||
import com.gmail.filoghost.holographicdisplays.api.handler.PickupHandler;
|
||||
import org.bukkit.entity.Player;
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package me.filoghost.holographicdisplays.plugin.legacy.api.v2;
|
||||
package me.filoghost.holographicdisplays.plugin.api.v2;
|
||||
|
||||
import com.gmail.filoghost.holographicdisplays.api.handler.TouchHandler;
|
||||
import org.bukkit.entity.Player;
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package me.filoghost.holographicdisplays.plugin.legacy.api.v2;
|
||||
package me.filoghost.holographicdisplays.plugin.api.v2;
|
||||
|
||||
import com.gmail.filoghost.holographicdisplays.api.Hologram;
|
||||
import com.gmail.filoghost.holographicdisplays.api.VisibilityManager;
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package me.filoghost.holographicdisplays.plugin.legacy.api.v2;
|
||||
package me.filoghost.holographicdisplays.plugin.api.v2;
|
||||
|
||||
import com.gmail.filoghost.holographicdisplays.api.line.HologramLine;
|
||||
import me.filoghost.holographicdisplays.plugin.object.api.APIHologramLine;
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package me.filoghost.holographicdisplays.plugin.legacy.api.v2;
|
||||
package me.filoghost.holographicdisplays.plugin.api.v2;
|
||||
|
||||
import com.gmail.filoghost.holographicdisplays.api.Hologram;
|
||||
import com.gmail.filoghost.holographicdisplays.api.internal.HologramsAPIProvider;
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package me.filoghost.holographicdisplays.plugin.legacy.api.v2;
|
||||
package me.filoghost.holographicdisplays.plugin.api.v2;
|
||||
|
||||
import com.gmail.filoghost.holographicdisplays.api.handler.PickupHandler;
|
||||
import com.gmail.filoghost.holographicdisplays.api.line.ItemLine;
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package me.filoghost.holographicdisplays.plugin.legacy.api.v2;
|
||||
package me.filoghost.holographicdisplays.plugin.api.v2;
|
||||
|
||||
import me.filoghost.holographicdisplays.api.handler.PickupHandler;
|
||||
import org.bukkit.entity.Player;
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package me.filoghost.holographicdisplays.plugin.legacy.api.v2;
|
||||
package me.filoghost.holographicdisplays.plugin.api.v2;
|
||||
|
||||
import com.gmail.filoghost.holographicdisplays.api.line.TextLine;
|
||||
import me.filoghost.holographicdisplays.plugin.object.api.APITextLine;
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package me.filoghost.holographicdisplays.plugin.legacy.api.v2;
|
||||
package me.filoghost.holographicdisplays.plugin.api.v2;
|
||||
|
||||
import me.filoghost.holographicdisplays.api.handler.TouchHandler;
|
||||
import org.bukkit.entity.Player;
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package me.filoghost.holographicdisplays.plugin.legacy.api.v2;
|
||||
package me.filoghost.holographicdisplays.plugin.api.v2;
|
||||
|
||||
import com.gmail.filoghost.holographicdisplays.api.handler.TouchHandler;
|
||||
import com.gmail.filoghost.holographicdisplays.api.line.TouchableLine;
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package me.filoghost.holographicdisplays.plugin.legacy.api.v2;
|
||||
package me.filoghost.holographicdisplays.plugin.api.v2;
|
||||
|
||||
import com.gmail.filoghost.holographicdisplays.api.VisibilityManager;
|
||||
import me.filoghost.holographicdisplays.api.VisibilitySettings.Visibility;
|
@ -10,7 +10,7 @@ import me.filoghost.holographicdisplays.api.Hologram;
|
||||
import me.filoghost.holographicdisplays.core.nms.NMSManager;
|
||||
import me.filoghost.holographicdisplays.plugin.placeholder.tracking.PlaceholderLineTracker;
|
||||
import me.filoghost.holographicdisplays.plugin.disk.Configuration;
|
||||
import me.filoghost.holographicdisplays.plugin.legacy.api.v2.V2HologramAdapter;
|
||||
import me.filoghost.holographicdisplays.plugin.api.v2.V2HologramAdapter;
|
||||
import me.filoghost.holographicdisplays.plugin.object.base.BaseHologram;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.entity.Player;
|
||||
|
@ -7,7 +7,7 @@ package me.filoghost.holographicdisplays.plugin.object.api;
|
||||
|
||||
import me.filoghost.holographicdisplays.api.line.HologramLine;
|
||||
import me.filoghost.holographicdisplays.core.hologram.StandardHologramLine;
|
||||
import me.filoghost.holographicdisplays.plugin.legacy.api.v2.V2HologramLineAdapter;
|
||||
import me.filoghost.holographicdisplays.plugin.api.v2.V2HologramLineAdapter;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public interface APIHologramLine extends HologramLine, StandardHologramLine {
|
||||
|
@ -8,7 +8,7 @@ package me.filoghost.holographicdisplays.plugin.object.api;
|
||||
import me.filoghost.holographicdisplays.api.handler.PickupHandler;
|
||||
import me.filoghost.holographicdisplays.api.handler.TouchHandler;
|
||||
import me.filoghost.holographicdisplays.api.line.ItemLine;
|
||||
import me.filoghost.holographicdisplays.plugin.legacy.api.v2.V2ItemLineAdapter;
|
||||
import me.filoghost.holographicdisplays.plugin.api.v2.V2ItemLineAdapter;
|
||||
import me.filoghost.holographicdisplays.plugin.object.base.BaseItemLine;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
@ -7,7 +7,7 @@ package me.filoghost.holographicdisplays.plugin.object.api;
|
||||
|
||||
import me.filoghost.holographicdisplays.api.handler.TouchHandler;
|
||||
import me.filoghost.holographicdisplays.api.line.TextLine;
|
||||
import me.filoghost.holographicdisplays.plugin.legacy.api.v2.V2TextLineAdapter;
|
||||
import me.filoghost.holographicdisplays.plugin.api.v2.V2TextLineAdapter;
|
||||
import me.filoghost.holographicdisplays.plugin.object.base.BaseTextLine;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
@ -9,7 +9,7 @@ import me.filoghost.fcommons.Preconditions;
|
||||
import me.filoghost.holographicdisplays.api.VisibilitySettings;
|
||||
import me.filoghost.holographicdisplays.plugin.bridge.protocollib.ProtocolLibHook;
|
||||
import me.filoghost.holographicdisplays.core.hologram.StandardHologram;
|
||||
import me.filoghost.holographicdisplays.plugin.legacy.api.v2.V2VisibilityManagerAdapter;
|
||||
import me.filoghost.holographicdisplays.plugin.api.v2.V2VisibilityManagerAdapter;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package me.filoghost.holographicdisplays.plugin.legacy.api.v2;
|
||||
package me.filoghost.holographicdisplays.plugin.api.v2;
|
||||
|
||||
import com.gmail.filoghost.holographicdisplays.api.line.TextLine;
|
||||
import me.filoghost.holographicdisplays.api.handler.TouchHandler;
|
Loading…
Reference in New Issue
Block a user