Package com.elikill58.negativity.fabric
Class FabricAdapter
java.lang.Object
com.elikill58.negativity.universal.Adapter
com.elikill58.negativity.fabric.FabricAdapter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
broadcastMessage
(String message) boolean
createFakePlayer
(Location loc, String name) createInventory
(String inventoryName, int size, NegativityHolder holder) createItemBuilder
(ItemStack item) createItemBuilder
(Material type) createItemBuilder
(String type) createSkullItemBuilder
(Player owner) void
double
@Nullable OfflinePlayer
getOfflinePlayer
(String name) @Nullable OfflinePlayer
getOfflinePlayer
(UUID uuid) @Nullable Player
@Nullable Player
double[]
getTPS()
boolean
isUsingMcLeaks
(UUID playerId) void
registerNewIncomingChannel
(String channel, BiConsumer<Player, byte[]> event) void
reload()
void
void
runConsoleCommand
(String cmd) void
void
sendMessageRunnableHover
(Player p, String message, String hover, String command) Methods inherited from class com.elikill58.negativity.universal.Adapter
getAdapter, getName, getUUID, setAdapter
-
Constructor Details
-
FabricAdapter
-
-
Method Details
-
getPlatformID
- Specified by:
getPlatformID
in classAdapter
-
getConfig
-
getDataFolder
- Specified by:
getDataFolder
in classAdapter
-
debug
-
getPlatformTranslationProviderFactory
- Specified by:
getPlatformTranslationProviderFactory
in classAdapter
-
reload
public void reload() -
getVersion
- Specified by:
getVersion
in classAdapter
-
getServerVersion
- Specified by:
getServerVersion
in classAdapter
-
getPluginVersion
- Specified by:
getPluginVersion
in classAdapter
-
reloadConfig
public void reloadConfig()- Specified by:
reloadConfig
in classAdapter
-
getAccountManager
- Specified by:
getAccountManager
in classAdapter
-
runConsoleCommand
- Specified by:
runConsoleCommand
in classAdapter
-
isUsingMcLeaks
- Specified by:
isUsingMcLeaks
in classAdapter
-
getLogger
-
getOnlinePlayersUUID
- Specified by:
getOnlinePlayersUUID
in classAdapter
-
getTPS
public double[] getTPS() -
getLastTPS
public double getLastTPS()- Specified by:
getLastTPS
in classAdapter
-
getItemRegistrar
- Specified by:
getItemRegistrar
in classAdapter
-
sendMessageRunnableHover
- Specified by:
sendMessageRunnableHover
in classAdapter
-
getOnlinePlayers
- Specified by:
getOnlinePlayers
in classAdapter
-
createItemBuilder
- Specified by:
createItemBuilder
in classAdapter
-
createItemBuilder
- Specified by:
createItemBuilder
in classAdapter
-
createItemBuilder
- Specified by:
createItemBuilder
in classAdapter
-
createSkullItemBuilder
- Specified by:
createSkullItemBuilder
in classAdapter
-
createSkullItemBuilder
- Specified by:
createSkullItemBuilder
in classAdapter
-
createInventory
- Specified by:
createInventory
in classAdapter
-
getPlayer
-
getPlayer
-
getOfflinePlayer
- Specified by:
getOfflinePlayer
in classAdapter
-
getOfflinePlayer
- Specified by:
getOfflinePlayer
in classAdapter
-
createFakePlayer
- Specified by:
createFakePlayer
in classAdapter
-
hasPlugin
-
getPlugin
-
getDependentPlugins
- Specified by:
getDependentPlugins
in classAdapter
-
runSync
-
getScheduler
- Specified by:
getScheduler
in classAdapter
-
canSendStats
public boolean canSendStats()- Overrides:
canSendStats
in classAdapter
-
registerNewIncomingChannel
- Specified by:
registerNewIncomingChannel
in classAdapter
-
broadcastMessage
- Specified by:
broadcastMessage
in classAdapter
-
getVersionAdapter
- Specified by:
getVersionAdapter
in classAdapter
-
getAllPlugins
- Specified by:
getAllPlugins
in classAdapter
-