mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2024-11-22 20:28:00 +00:00
change internal package to api
This commit is contained in:
parent
81a2af8179
commit
b214e3dad7
@ -4,10 +4,10 @@ import com.google.common.base.Preconditions;
|
|||||||
import com.google.common.collect.ImmutableList;
|
import com.google.common.collect.ImmutableList;
|
||||||
import com.google.common.collect.ImmutableSet;
|
import com.google.common.collect.ImmutableSet;
|
||||||
import com.google.common.collect.Multimap;
|
import com.google.common.collect.Multimap;
|
||||||
import com.imaginarycode.minecraft.redisbungee.internal.RedisBungeePlugin;
|
import com.imaginarycode.minecraft.redisbungee.api.RedisBungeePlugin;
|
||||||
import com.imaginarycode.minecraft.redisbungee.internal.summoners.JedisSummoner;
|
import com.imaginarycode.minecraft.redisbungee.api.summoners.JedisSummoner;
|
||||||
import com.imaginarycode.minecraft.redisbungee.internal.summoners.Summoner;
|
import com.imaginarycode.minecraft.redisbungee.api.summoners.Summoner;
|
||||||
import com.imaginarycode.minecraft.redisbungee.internal.util.RedisBungeeMode;
|
import com.imaginarycode.minecraft.redisbungee.api.util.RedisBungeeMode;
|
||||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||||
import redis.clients.jedis.Jedis;
|
import redis.clients.jedis.Jedis;
|
||||||
import redis.clients.jedis.JedisPool;
|
import redis.clients.jedis.JedisPool;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package com.imaginarycode.minecraft.redisbungee.internal;
|
package com.imaginarycode.minecraft.redisbungee.api;
|
||||||
|
|
||||||
import com.google.common.cache.Cache;
|
import com.google.common.cache.Cache;
|
||||||
import com.google.common.cache.CacheBuilder;
|
import com.google.common.cache.CacheBuilder;
|
||||||
@ -8,7 +8,7 @@ import com.google.common.util.concurrent.UncheckedExecutionException;
|
|||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.JsonObject;
|
import com.google.gson.JsonObject;
|
||||||
import com.google.gson.JsonParser;
|
import com.google.gson.JsonParser;
|
||||||
import com.imaginarycode.minecraft.redisbungee.internal.util.RedisTask;
|
import com.imaginarycode.minecraft.redisbungee.api.util.RedisTask;
|
||||||
import redis.clients.jedis.Jedis;
|
import redis.clients.jedis.Jedis;
|
||||||
import redis.clients.jedis.JedisCluster;
|
import redis.clients.jedis.JedisCluster;
|
||||||
|
|
||||||
@ -16,7 +16,6 @@ import java.lang.reflect.InvocationTargetException;
|
|||||||
import java.net.InetAddress;
|
import java.net.InetAddress;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import java.util.concurrent.Callable;
|
|
||||||
import java.util.concurrent.ExecutionException;
|
import java.util.concurrent.ExecutionException;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.imaginarycode.minecraft.redisbungee.internal;
|
package com.imaginarycode.minecraft.redisbungee.api;
|
||||||
|
|
||||||
|
|
||||||
import com.google.common.collect.Multimap;
|
import com.google.common.collect.Multimap;
|
@ -1,4 +1,4 @@
|
|||||||
package com.imaginarycode.minecraft.redisbungee.internal;
|
package com.imaginarycode.minecraft.redisbungee.api;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Since each platform have their own events' implementation for example Bungeecord events extends Event while velocity don't
|
* Since each platform have their own events' implementation for example Bungeecord events extends Event while velocity don't
|
@ -1,4 +1,4 @@
|
|||||||
package com.imaginarycode.minecraft.redisbungee.internal;
|
package com.imaginarycode.minecraft.redisbungee.api;
|
||||||
|
|
||||||
|
|
||||||
import redis.clients.jedis.JedisPubSub;
|
import redis.clients.jedis.JedisPubSub;
|
@ -1,6 +1,6 @@
|
|||||||
package com.imaginarycode.minecraft.redisbungee.internal;
|
package com.imaginarycode.minecraft.redisbungee.api;
|
||||||
|
|
||||||
import com.imaginarycode.minecraft.redisbungee.internal.util.RedisTask;
|
import com.imaginarycode.minecraft.redisbungee.api.util.RedisTask;
|
||||||
import redis.clients.jedis.Jedis;
|
import redis.clients.jedis.Jedis;
|
||||||
import redis.clients.jedis.JedisCluster;
|
import redis.clients.jedis.JedisCluster;
|
||||||
import redis.clients.jedis.exceptions.JedisConnectionException;
|
import redis.clients.jedis.exceptions.JedisConnectionException;
|
@ -1,4 +1,4 @@
|
|||||||
package com.imaginarycode.minecraft.redisbungee.internal;
|
package com.imaginarycode.minecraft.redisbungee.api;
|
||||||
|
|
||||||
import com.google.common.collect.ImmutableList;
|
import com.google.common.collect.ImmutableList;
|
||||||
import com.google.common.net.InetAddresses;
|
import com.google.common.net.InetAddresses;
|
@ -1,11 +1,10 @@
|
|||||||
package com.imaginarycode.minecraft.redisbungee.internal;
|
package com.imaginarycode.minecraft.redisbungee.api;
|
||||||
|
|
||||||
import com.google.common.collect.Multimap;
|
import com.google.common.collect.Multimap;
|
||||||
import com.imaginarycode.minecraft.redisbungee.RedisBungeeAPI;
|
import com.imaginarycode.minecraft.redisbungee.RedisBungeeAPI;
|
||||||
import com.imaginarycode.minecraft.redisbungee.internal.summoners.Summoner;
|
import com.imaginarycode.minecraft.redisbungee.api.summoners.Summoner;
|
||||||
import com.imaginarycode.minecraft.redisbungee.internal.util.RedisBungeeMode;
|
import com.imaginarycode.minecraft.redisbungee.api.util.RedisBungeeMode;
|
||||||
import com.imaginarycode.minecraft.redisbungee.internal.util.uuid.UUIDTranslator;
|
import com.imaginarycode.minecraft.redisbungee.api.util.uuid.UUIDTranslator;
|
||||||
import redis.clients.jedis.Jedis;
|
|
||||||
|
|
||||||
import java.net.InetAddress;
|
import java.net.InetAddress;
|
||||||
import java.util.List;
|
import java.util.List;
|
@ -1,4 +1,4 @@
|
|||||||
package com.imaginarycode.minecraft.redisbungee.internal;
|
package com.imaginarycode.minecraft.redisbungee.api;
|
||||||
|
|
||||||
import com.google.common.annotations.VisibleForTesting;
|
import com.google.common.annotations.VisibleForTesting;
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
@ -1,4 +1,4 @@
|
|||||||
package com.imaginarycode.minecraft.redisbungee.internal.summoners;
|
package com.imaginarycode.minecraft.redisbungee.api.summoners;
|
||||||
|
|
||||||
import redis.clients.jedis.JedisCluster;
|
import redis.clients.jedis.JedisCluster;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.imaginarycode.minecraft.redisbungee.internal.summoners;
|
package com.imaginarycode.minecraft.redisbungee.api.summoners;
|
||||||
|
|
||||||
import redis.clients.jedis.Jedis;
|
import redis.clients.jedis.Jedis;
|
||||||
import redis.clients.jedis.JedisPool;
|
import redis.clients.jedis.JedisPool;
|
@ -1,4 +1,4 @@
|
|||||||
package com.imaginarycode.minecraft.redisbungee.internal.summoners;
|
package com.imaginarycode.minecraft.redisbungee.api.summoners;
|
||||||
|
|
||||||
import java.io.Closeable;
|
import java.io.Closeable;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.imaginarycode.minecraft.redisbungee.internal.util;
|
package com.imaginarycode.minecraft.redisbungee.api.util;
|
||||||
|
|
||||||
import com.google.common.io.ByteStreams;
|
import com.google.common.io.ByteStreams;
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
package com.imaginarycode.minecraft.redisbungee.internal.util;
|
package com.imaginarycode.minecraft.redisbungee.api.util;
|
||||||
|
|
||||||
import com.imaginarycode.minecraft.redisbungee.internal.RedisBungeePlugin;
|
import com.imaginarycode.minecraft.redisbungee.api.RedisBungeePlugin;
|
||||||
import redis.clients.jedis.Jedis;
|
import redis.clients.jedis.Jedis;
|
||||||
import redis.clients.jedis.JedisCluster;
|
import redis.clients.jedis.JedisCluster;
|
||||||
import redis.clients.jedis.exceptions.JedisDataException;
|
import redis.clients.jedis.exceptions.JedisDataException;
|
@ -0,0 +1,5 @@
|
|||||||
|
package com.imaginarycode.minecraft.redisbungee.api.util;
|
||||||
|
|
||||||
|
public enum RedisBungeeMode {
|
||||||
|
SINGLE, CLUSTER
|
||||||
|
}
|
@ -1,10 +1,10 @@
|
|||||||
package com.imaginarycode.minecraft.redisbungee.internal.util;
|
package com.imaginarycode.minecraft.redisbungee.api.util;
|
||||||
|
|
||||||
import com.imaginarycode.minecraft.redisbungee.RedisBungeeAPI;
|
import com.imaginarycode.minecraft.redisbungee.RedisBungeeAPI;
|
||||||
import com.imaginarycode.minecraft.redisbungee.internal.RedisBungeePlugin;
|
import com.imaginarycode.minecraft.redisbungee.api.RedisBungeePlugin;
|
||||||
import com.imaginarycode.minecraft.redisbungee.internal.summoners.ClusterJedisSummoner;
|
import com.imaginarycode.minecraft.redisbungee.api.summoners.ClusterJedisSummoner;
|
||||||
import com.imaginarycode.minecraft.redisbungee.internal.summoners.JedisSummoner;
|
import com.imaginarycode.minecraft.redisbungee.api.summoners.JedisSummoner;
|
||||||
import com.imaginarycode.minecraft.redisbungee.internal.summoners.Summoner;
|
import com.imaginarycode.minecraft.redisbungee.api.summoners.Summoner;
|
||||||
import redis.clients.jedis.Jedis;
|
import redis.clients.jedis.Jedis;
|
||||||
import redis.clients.jedis.JedisCluster;
|
import redis.clients.jedis.JedisCluster;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.imaginarycode.minecraft.redisbungee.internal.util.uuid;
|
package com.imaginarycode.minecraft.redisbungee.api.util.uuid;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.reflect.TypeToken;
|
import com.google.gson.reflect.TypeToken;
|
@ -1,4 +1,4 @@
|
|||||||
package com.imaginarycode.minecraft.redisbungee.internal.util.uuid;
|
package com.imaginarycode.minecraft.redisbungee.api.util.uuid;
|
||||||
|
|
||||||
import com.google.common.collect.ImmutableList;
|
import com.google.common.collect.ImmutableList;
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
@ -1,13 +1,12 @@
|
|||||||
package com.imaginarycode.minecraft.redisbungee.internal.util.uuid;
|
package com.imaginarycode.minecraft.redisbungee.api.util.uuid;
|
||||||
|
|
||||||
import com.google.common.base.Charsets;
|
import com.google.common.base.Charsets;
|
||||||
import com.google.common.collect.ImmutableMap;
|
import com.google.common.collect.ImmutableMap;
|
||||||
import com.google.common.collect.Iterables;
|
import com.google.common.collect.Iterables;
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.imaginarycode.minecraft.redisbungee.RedisBungeeAPI;
|
import com.imaginarycode.minecraft.redisbungee.api.RedisBungeePlugin;
|
||||||
import com.imaginarycode.minecraft.redisbungee.internal.RedisBungeePlugin;
|
|
||||||
|
|
||||||
import com.imaginarycode.minecraft.redisbungee.internal.util.RedisTask;
|
import com.imaginarycode.minecraft.redisbungee.api.util.RedisTask;
|
||||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||||
import redis.clients.jedis.Jedis;
|
import redis.clients.jedis.Jedis;
|
||||||
import redis.clients.jedis.JedisCluster;
|
import redis.clients.jedis.JedisCluster;
|
@ -1,5 +0,0 @@
|
|||||||
package com.imaginarycode.minecraft.redisbungee.internal.util;
|
|
||||||
|
|
||||||
public enum RedisBungeeMode {
|
|
||||||
SINGLE, CLUSTER
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user