public abstract class ProxyAdapter extends Adapter
| Constructor and Description |
|---|
ProxyAdapter() |
| Modifier and Type | Method and Description |
|---|---|
FakePlayer |
createFakePlayer(Location loc,
String name)
Create a fake player
WARN: Not supported yet with all platform
|
Inventory |
createInventory(String inventoryName,
int size,
NegativityHolder holder)
Create a new inventory
|
ItemBuilder |
createItemBuilder(ItemStack item)
Create a new item builder with the given item
|
ItemBuilder |
createItemBuilder(Material type)
Create a new item builder with the given type
|
ItemBuilder |
createItemBuilder(String type)
Create a new item builder with the given type name
|
ItemBuilder |
createSkullItemBuilder(OfflinePlayer owner)
Create a new item builder of skull with the current owner
|
ItemBuilder |
createSkullItemBuilder(Player owner)
Create a new item builder of skull with the current owner
|
ItemRegistrar |
getItemRegistrar()
Get the registrar of all items
|
double |
getLastTPS()
Get last TPS value
|
@Nullable OfflinePlayer |
getOfflinePlayer(String name)
Get offline player with the given name
Prefer use
Adapter.getOfflinePlayer(UUID) because this method isn't supported on all platform, and a name can be changed |
@Nullable OfflinePlayer |
getOfflinePlayer(UUID uuid)
Get offline player with the given UUID
|
Version |
getServerVersion()
The Minecraft version the server is running
|
double[] |
getTPS()
Get all available TPS
This array is not empty, at least, it contains the
Adapter.getLastTPS() value in [0] place |
@Nullable UUID |
getUUID(String name)
Get the UUID with the name
|
VersionAdapter<?> |
getVersionAdapter()
Get the version adapter for the actual platform version
|
broadcastMessage, canSendStats, debug, getAccountManager, getAdapter, getAllPlugins, getConfig, getDataFolder, getDependentPlugins, getLogger, getName, getOnlinePlayers, getOnlinePlayersUUID, getPlatformID, getPlatformTranslationProviderFactory, getPlayer, getPlayer, getPlugin, getPluginVersion, getScheduler, getVersion, hasPlugin, isUsingMcLeaks, registerNewIncomingChannel, reload, reloadConfig, runConsoleCommand, runSync, sendMessageRunnableHover, setAdapterpublic Version getServerVersion()
AdaptergetServerVersion in class Adapterpublic ItemRegistrar getItemRegistrar()
AdaptergetItemRegistrar in class Adapterpublic ItemBuilder createItemBuilder(Material type)
AdaptercreateItemBuilder in class Adaptertype - the item typepublic ItemBuilder createItemBuilder(ItemStack item)
AdaptercreateItemBuilder in class Adapteritem - the beginning itempublic ItemBuilder createItemBuilder(String type)
AdaptercreateItemBuilder in class Adaptertype - the item type namepublic ItemBuilder createSkullItemBuilder(Player owner)
AdaptercreateSkullItemBuilder in class Adapterowner - the player owner of the skullpublic ItemBuilder createSkullItemBuilder(OfflinePlayer owner)
AdaptercreateSkullItemBuilder in class Adapterowner - the player owner of the skullpublic Inventory createInventory(String inventoryName, int size, NegativityHolder holder)
AdaptercreateInventory in class AdapterinventoryName - the inventory namesize - the inventory sizeholder - the inventory holderpublic FakePlayer createFakePlayer(Location loc, String name)
AdaptercreateFakePlayer in class Adapterloc - the location of the fake playername - the name of the fake playerpublic double[] getTPS()
AdapterAdapter.getLastTPS() value in [0] placepublic double getLastTPS()
AdaptergetLastTPS in class Adapterpublic @Nullable UUID getUUID(String name)
Adapterpublic @Nullable OfflinePlayer getOfflinePlayer(String name)
AdapterAdapter.getOfflinePlayer(UUID) because this method isn't supported on all platform, and a name can be changedgetOfflinePlayer in class Adaptername - the offline player namenull if no player matching this name has played on this serverpublic @Nullable OfflinePlayer getOfflinePlayer(UUID uuid)
AdaptergetOfflinePlayer in class Adapteruuid - the offline player UUIDnull if no player with this UUID has played on this serverpublic VersionAdapter<?> getVersionAdapter()
AdaptergetVersionAdapter in class Adapter