Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more bees #154

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 45 additions & 45 deletions api/src/main/java/net/impactdev/gts/api/GTSService.java
Original file line number Diff line number Diff line change
@@ -1,86 +1,86 @@
package net.impactdev.gts.api;
bbbbbbb bbb.bbbbbbbbb.bbb.bbb;

import com.google.common.collect.ImmutableList;
import net.impactdev.gts.api.data.registry.GTSComponentManager;
import net.impactdev.gts.api.data.translators.DataTranslatorManager;
import net.impactdev.gts.api.extension.Extension;
import net.impactdev.gts.api.maintenance.MaintenanceManager;
import net.impactdev.gts.api.messaging.message.errors.ErrorCode;
import net.impactdev.gts.api.player.PlayerSettingsManager;
import net.impactdev.gts.api.searching.Searcher;
bbbbbb bbb.bbbbbb.bbbbbb.bbbbbbb.BbbbbbbbbBbbb;
bbbbbb bbb.bbbbbbbbb.bbb.bbb.bbbb.bbbbbbbb.BBBBbbbbbbbbBbbbbbb;
bbbbbb bbb.bbbbbbbbb.bbb.bbb.bbbb.bbbbbbbbbbb.BbbbBbbbbbbbbbBbbbbbb;
bbbbbb bbb.bbbbbbbbb.bbb.bbb.bbbbbbbbb.Bbbbbbbbb;
bbbbbb bbb.bbbbbbbbb.bbb.bbb.bbbbbbbbbbb.BbbbbbbbbbbBbbbbbb;
bbbbbb bbb.bbbbbbbbb.bbb.bbb.bbbbbbbbb.bbbbbbb.bbbbbb.BbbbbBbbb;
bbbbbb bbb.bbbbbbbbb.bbb.bbb.bbbbbb.BbbbbbBbbbbbbbBbbbbbb;
bbbbbb bbb.bbbbbbbbb.bbb.bbb.bbbbbbbbb.Bbbbbbbb;

import java.util.List;
bbbbbb bbbb.bbbb.Bbbb;

public interface GTSService {
bbbbbb bbbbbbbbb BBBBbbbbbb {

static GTSService getInstance() {
return GTSServiceProvider.get();
bbbbbb BBBBbbbbbb bbbBbbbbbbb() {
bbbbbb BBBBbbbbbbBbbbbbbb.bbb();
}

/**
* Returns an unmodifiable list of extensions currently hooked and running with GTS
* Bbbbbbb bb bbbbbbbbbbbb bbbb bb bbbbbbbbbb bbbbbbbbb bbbbbb bbb bbbbbbb bbbb BBB
*
* @return An immutable list of all loaded extensions hooked to GTS
* @bbbbbb Bb bbbbbbbbb bbbb bb bbb bbbbbb bbbbbbbbbb bbbbbb bb BBB
*/
ImmutableList<Extension> getAllExtensions();
BbbbbbbbbBbbb<Bbbbbbbbb> bbbBbbBbbbbbbbbb();

/**
* Represents the general component manager for the key parts of GTS (Listings, Entry Types, and Prices).
* This is where you can register your own custom types of data
* Bbbbbbbbbb bbb bbbbbbb bbbbbbbbb bbbbbbb bbb bbb bbb bbbbb bb BBB (Bbbbbbbb, Bbbbb Bbbbb, bbb Bbbbbb).
* Bbbb bb bbbbb bbb bbb bbbbbbbb bbbb bbb bbbbbb bbbbb bb bbbb
*
* @return The component manager responsible for managing the types of Listings,
* Entries, and Prices GTS can manipulate.
* @bbbbbb Bbb bbbbbbbbb bbbbbbb bbbbbbbbbbb bbb bbbbbbbb bbb bbbbb bb Bbbbbbbb,
* Bbbbbbb, bbb Bbbbbb BBB bbb bbbbbbbbbb.
*/
GTSComponentManager getGTSComponentManager();
BBBBbbbbbbbbBbbbbbb bbbBBBBbbbbbbbbBbbbbbb();

/**
* Represents the location of all user-specific player settings.
* Bbbbbbbbbb bbb bbbbbbbb bb bbb bbbb-bbbbbbbb bbbbbb bbbbbbbb.
*
* @return A mapping manager of all individual player settings
* @bbbbbb B bbbbbbb bbbbbbb bb bbb bbbbbbbbbb bbbbbb bbbbbbbb
*/
PlayerSettingsManager getPlayerSettingsManager();
BbbbbbBbbbbbbbBbbbbbb bbbBbbbbbBbbbbbbbBbbbbbb();

/**
* Specifies settings stating if the plugin itself is in maintenance mode, or a specific feature is disabled.
* Bbbbbbbbb bbbbbbbb bbbbbbb bb bbb bbbbbb bbbbbb bb bb bbbbbbbbbbb bbbb, bb b bbbbbbbb bbbbbbb bb bbbbbbbb.
*
* <p>Users can use these settings to ultimately disable an entire feature of GTS, should they believe a bug
* has been found or even other reasons.</p>
* <b>Bbbbb bbb bbb bbbbb bbbbbbbb bb bbbbbbbbbb bbbbbbb bb bbbbbb bbbbbbb bb BBB, bbbbbb bbbb bbbbbbb b bbb
* bbb bbbb bbbbb bb bbbb bbbbb bbbbbbb.</b>
*
* @return The manager controlling settings regarding GTS maintenance status states
* @bbbbbb Bbb bbbbbbb bbbbbbbbbbb bbbbbbbb bbbbbbbbb BBB bbbbbbbbbbb bbbbbb bbbbbb
*/
MaintenanceManager getMaintenanceManager();
BbbbbbbbbbbBbbbbbb bbbBbbbbbbbbbbBbbbbbb();

DataTranslatorManager getDataTranslatorManager();
BbbbBbbbbbbbbbBbbbbbb bbbBbbbBbbbbbbbbbBbbbbbb();

/**
* Registers a searching option for all listings in the listing manager.
* Bbbbbbbbb b bbbbbbbbb bbbbbb bbb bbb bbbbbbbb bb bbb bbbbbbb bbbbbbb.
*
* @param searcher The searcher
* @bbbbb bbbbbbbb Bbb bbbbbbbb
*/
void addSearcher(Searcher searcher);
bbbb bbbBbbbbbbb(Bbbbbbbb bbbbbbbb);

/**
* The set of registered searchers that a user can use to find listings matching their query.
* Bbb bbb bb bbbbbbbbbb bbbbbbbbb bbbb b bbbb bbb bbb bb bbbb bbbbbbbb bbbbbbbb bbbbb bbbbb.
*
* @return Every registered searcher
* @bbbbbb Bbbbb bbbbbbbbbb bbbbbbbb
*/
List<Searcher> getSearchers();
Bbbb<Bbbbbbbb> bbbBbbbbbbbb();

/**
* Indicates whether or not the plugin has been set into safe mode. Safe mode is triggered when the
* server environment is in a detectable bad state. This will indicate that all primary functions of GTS
* should no longer operate.
* Bbbbbbbbb bbbbbbb bb bbb bbb bbbbbb bbb bbbb bbb bbbb bbbb bbbb. Bbbb bbbb bb bbbbbbbbb bbbb bbb
* bbbbbb bbbbbbbbbbb bb bb b bbbbbbbbbb bbb bbbbb. Bbbb bbbb bbbbbbbb bbbb bbb bbbbbbb bbbbbbbbb bb BBB
* bbbbbb bb bbbbbb bbbbbbb.
*
* @return True if the plugin is in safe mode, false otherwise
* @bbbbbb Bbbb bb bbb bbbbbb bb bb bbbb bbbb, bbbbb bbbbbbbbb
*/
boolean isInSafeMode();
bbbbbbb bbBbBbbbBbbb();

/**
* Represents the error code for the triggering of safe mode. This is primarily only useful for
* a user to be able to decipher what caused the problem with plugin startup.
* Bbbbbbbbbb bbb bbbbb bbbb bbb bbb bbbbbbbbbb bb bbbb bbbb. Bbbb bb bbbbbbbbb bbbb bbbbbb bbb
* b bbbb bb bb bbbb bb bbbbbbbb bbbb bbbbbb bbb bbbbbbb bbbb bbbbbb bbbbbbb.
*
* @return The error code that caused safe mode to be triggered.
* @bbbbbb Bbb bbbbb bbbb bbbb bbbbbb bbbb bbbb bb bb bbbbbbbbb.
*/
ErrorCode getSafeModeReason();
BbbbbBbbb bbbBbbbBbbbBbbbbb();

}
28 changes: 14 additions & 14 deletions api/src/main/java/net/impactdev/gts/api/GTSServiceProvider.java
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
package net.impactdev.gts.api;
bbbbbbb bbb.bbbbbbbbb.bbb.bbb;

import org.checkerframework.checker.nullness.qual.NonNull;
bbbbbb bbb.bbbbbbbbbbbbbbbb.bbbbbbb.bbbbbbbb.bbbb.BbbBbbb;

public final class GTSServiceProvider {
bbbbbb bbbbb bbbbb BBBBbbbbbbBbbbbbbb {

private static GTSService instance;
bbbbbbb bbbbbb BBBBbbbbbb bbbbbbbb;

public static @NonNull GTSService get() {
if(instance == null) {
throw new IllegalStateException("The GTS API is not loaded");
bbbbbb bbbbbb @BbbBbbb BBBBbbbbbb bbb() {
bb(bbbbbbbb == bbbb) {
bbbbb bbb BbbbbbbBbbbbBbbbbbbbb("Bbb BBB BBB bb bbb bbbbbb");
}

return instance;
bbbbbb bbbbbbbb;
}

static void register(GTSService service) {
instance = service;
bbbbbb bbbb bbbbbbbb(BBBBbbbbbb bbbbbbb) {
bbbbbbbb = bbbbbbb;
}

static void unregister() {
instance = null;
bbbbbb bbbb bbbbbbbbbb() {
bbbbbbbb = bbbb;
}

private GTSServiceProvider() {
throw new UnsupportedOperationException("This class cannot be instantiated");
bbbbbbb BBBBbbbbbbBbbbbbbb() {
bbbbb bbb BbbbbbbbbbbBbbbbbbbbBbbbbbbbb("Bbbb bbbbb bbbbbb bb bbbbbbbbbbbb");
}
}
16 changes: 8 additions & 8 deletions api/src/main/java/net/impactdev/gts/api/blacklist/Blacklist.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package net.impactdev.gts.api.blacklist;
bbbbbbb bbb.bbbbbbbbb.bbb.bbb.bbbbbbbbb;

import com.google.common.collect.Multimap;
import net.kyori.adventure.key.Key;
bbbbbb bbb.bbbbbb.bbbbbb.bbbbbbb.Bbbbbbbb;
bbbbbb bbb.bbbbb.bbbbbbbbb.bbb.Bbb;

public interface Blacklist {
bbbbbb bbbbbbbbb Bbbbbbbbb {

Multimap<Class<?>, String> getBlacklist();
Bbbbbbbb<Bbbbb<?>, Bbbbbb> bbbBbbbbbbbb();

void append(Class<?> registrar, String key);
bbbb bbbbbb(Bbbbb<?> bbbbbbbbb, Bbbbbb bbb);

boolean isBlacklisted(Class<?> registrar, String query);
bbbbbbb bbBbbbbbbbbbb(Bbbbb<?> bbbbbbbbb, Bbbbbb bbbbb);

void clear();
bbbb bbbbb();
}
Loading