Class IntegrationType<T extends ChatPluginIntegration>
java.lang.Object
me.remigio07.chatplugin.api.common.integration.IntegrationType<T>
- Type Parameters:
T
- Integration's interface
Class that contains information about plugins which ChatPlugin can interact with.
This class is a pseudo-Enum
. It contains the following methods:
name()
, ordinal()
, valueOf(String)
and values()
.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IntegrationType
<CombatLogIntegration> Represents the CombatLogX integration.static final IntegrationType
<SocialIntegration> Represents the DiscordSRV integration.static final IntegrationType
<EconomyIntegration> Represents the EssentialsX integration.static final IntegrationType
<CosmeticsIntegration> Represents the GadgetsMenu integration.static final IntegrationType
<MultiPlatformIntegration> Represents the GeyserMC integration.static final IntegrationType
<PermissionIntegration> Represents the LuckPerms integration.static final IntegrationType
<AnticheatIntegration> Represents the Matrix integration.static final IntegrationType
<PlaceholderIntegration> Represents the MVdWPlaceholderAPI integration.static final IntegrationType
<AnticheatIntegration> Represents the Negativity integration.static final IntegrationType
<PlaceholderIntegration> Represents the PlaceholderAPI integration.static final IntegrationType
<CosmeticsIntegration> Represents the PlayerParticles integration.static final IntegrationType
<VersionIntegration> Represents the ProtocolSupport integration.static final IntegrationType
<CosmeticsIntegration> Represents the UltraCosmetics integration.static final IntegrationType
<EconomyIntegration> Represents the Vault integration.static final IntegrationType
<VersionIntegration> Represents the ViaVersion integration.static final IntegrationType
<AnticheatIntegration> Represents the Vulcan integration.static final IntegrationType
<RegionIntegration> Represents the WorldGuard integration. -
Method Summary
Modifier and TypeMethodDescriptionget()
Gets the instance of the class used by ChatPlugin to interact with the plugin.getClazz()
Gets this integration's main class or a random class if a main class is not applicable.Gets this integration's plugin's name.Gets a list containing the environments this integrations can run on.static List
<IntegrationType<?>> Gets the integrations types supported onEnvironment.getCurrent()
.boolean
Checks if this integration is enabled.name()
Equivalent ofEnum.name()
.int
ordinal()
Equivalent ofEnum.ordinal()
.static IntegrationType
<?> Equivalent ofEnum#valueOf(String)
, with the only difference that instead of throwingIllegalArgumentException
null
is returned if the constant's name is invalid.static IntegrationType<?>[]
values()
Equivalent ofEnum#values()
.
-
Field Details
-
COMBATLOGX
Represents the CombatLogX integration. -
DISCORDSRV
Represents the DiscordSRV integration. -
ESSENTIALSX
Represents the EssentialsX integration. -
GADGETSMENU
Represents the GadgetsMenu integration. -
GEYSERMC
Represents the GeyserMC integration. -
LUCKPERMS
Represents the LuckPerms integration. -
MATRIX
Represents the Matrix integration. -
MVDWPLACEHOLDERAPI
Represents the MVdWPlaceholderAPI integration. -
NEGATIVITY
Represents the Negativity integration. -
PLACEHOLDERAPI
Represents the PlaceholderAPI integration. -
PLAYERPARTICLES
Represents the PlayerParticles integration. -
PROTOCOLSUPPORT
Represents the ProtocolSupport integration. -
ULTRACOSMETICS
Represents the UltraCosmetics integration. -
VAULT
Represents the Vault integration.This is considered an
EconomyIntegration
but it is used internally by the plugin also to check permissions. -
VIAVERSION
Represents the ViaVersion integration. -
VULCAN
Represents the Vulcan integration. -
WORLDGUARD
Represents the WorldGuard integration.
-
-
Method Details
-
name
Equivalent ofEnum.name()
.- Returns:
- Constant's name
-
ordinal
public int ordinal()Equivalent ofEnum.ordinal()
.- Returns:
- Constant's ordinal
-
get
Gets the instance of the class used by ChatPlugin to interact with the plugin.- Returns:
- Integration's class' instance
-
getPlugin
Gets this integration's plugin's name.- Returns:
- Integration's plugin name
-
getClazz
Gets this integration's main class or a random class if a main class is not applicable.- Returns:
- A class of this integration
-
getSupportedEnvironments
Gets a list containing the environments this integrations can run on.- Returns:
- Integration's supported environments
-
isEnabled
public boolean isEnabled()Checks if this integration is enabled.- Returns:
- Whether this integration is enabled
-
valueOf
Equivalent ofEnum#valueOf(String)
, with the only difference that instead of throwingIllegalArgumentException
null
is returned if the constant's name is invalid.- Parameters:
name
- Constant's name- Returns:
- Enum constant
-
values
Equivalent ofEnum#values()
.- Returns:
- Enum constants
-
getSupportedIntegrations
Gets the integrations types supported onEnvironment.getCurrent()
.- Returns:
- Supported integrations types
-