// Path: api/src/main/java/com/lishid/openinv/internal/IAnySilentContainer.java
// public interface IAnySilentContainer {
// 
//     /**
//      * Opens the container at the given coordinates for the Player. If you do not want blocked
//      * containers to open, be sure to check {@link #isAnyContainerNeeded(Player, Block)}
//      * first.
//      *
//      * @param player    the Player opening the container
//      * @param silent    whether the container's noise is to be silenced
//      * @param block     the Block
//      * @return true if the container can be opened
//      */
//     boolean activateContainer(@NotNull Player player, boolean silent, @NotNull Block block);
// 
//     /**
//      * Closes the Player's currently open container silently, if necessary.
//      *
//      * @param player the Player closing a container
//      */
//     void deactivateContainer(@NotNull Player player);
// 
//     /**
//      * Checks if the container at the given coordinates is blocked.
//      *
//      * @param player the Player opening the container
//      * @param block  the Block
//      * @return true if the container is blocked
//      */
//     boolean isAnyContainerNeeded(@NotNull Player player, @NotNull Block block);
// 
//     /**
//      * Checks if the given block is a container which can be unblocked or silenced.
//      *
//      * @param block the BlockState
//      * @return true if the Block is a supported container
//      */
//     boolean isAnySilentContainer(@NotNull Block block);
// 
// }
// 
// Path: plugin/src/main/java/com/lishid/openinv/internal/IPlayerDataManager.java
// public interface IPlayerDataManager {
// 
//     /**
//      * Loads a Player for an OfflinePlayer.
//      * </p>
//      * This method is potentially blocking, and should not be called on the main thread.
//      *
//      * @param offline the OfflinePlayer
//      * @return the Player loaded
//      */
//     @Nullable Player loadPlayer(@NotNull OfflinePlayer offline);
// 
//     /**
//      * Creates a new Player from an existing one that will function slightly better offline.
//      *
//      * @return the Player
//      */
//     @NotNull Player inject(@NotNull Player player);
// 
//     /**
//      * Opens an ISpecialInventory for a Player.
//      *
//      * @param player the Player opening the ISpecialInventory
//      * @param inventory the Inventory
//      *`
//      * @return the InventoryView opened
//      */
//     @Nullable InventoryView openInventory(@NotNull Player player, @NotNull ISpecialInventory inventory);
// 
//     /**
//      * Convert a raw slot number into a player inventory slot number.
//      *
//      * <p>Note that this method is specifically for converting an ISpecialPlayerInventory slot number into a regular
//      * player inventory slot number.
//      *
//      * @param view the open inventory view
//      * @param rawSlot the raw slot in the view
//      * @return the converted slot number
//      */
//     int convertToPlayerSlot(InventoryView view, int rawSlot);
// 
// }
// 
// Path: api/src/main/java/com/lishid/openinv/internal/ISpecialEnderChest.java
// public interface ISpecialEnderChest extends ISpecialInventory {
// 
// }
// 
// Path: api/src/main/java/com/lishid/openinv/internal/ISpecialPlayerInventory.java
// public interface ISpecialPlayerInventory extends ISpecialInventory {
// 
// }


import com.lishid.openinv.internal.IAnySilentContainer;
import com.lishid.openinv.internal.IPlayerDataManager;
import com.lishid.openinv.internal.ISpecialEnderChest;
import com.lishid.openinv.internal.ISpecialPlayerInventory;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;
        for (Object object : params) {
            builder.append(object.getClass().getName()).append(", ");
        }
        builder.delete(builder.length() - 2, builder.length());

        String message = builder.append(']').toString();
        this.plugin.getLogger().warning(message);

        throw new IllegalArgumentException(message);
    }

    /**
     * Creates an instance of the IAnySilentContainer implementation for the current server version.
     *
     * @return the IAnySilentContainer
     * @throws IllegalStateException if server version is unsupported
     */
    public IAnySilentContainer getAnySilentContainer() {
        if (!this.supported) {
            throw new IllegalStateException(String.format("Unsupported server version %s!", this.version));
        }
        return this.anySilentContainer;
    }

    /**
     * Creates an instance of the IPlayerDataManager implementation for the current server version.
     *
     * @return the IPlayerDataManager
     * @throws IllegalStateException if server version is unsupported
     */
// Path: api/src/main/java/com/lishid/openinv/internal/IAnySilentContainer.java
// public interface IAnySilentContainer {
// 
//     /**
//      * Opens the container at the given coordinates for the Player. If you do not want blocked
//      * containers to open, be sure to check {@link #isAnyContainerNeeded(Player, Block)}
//      * first.
//      *
//      * @param player    the Player opening the container
//      * @param silent    whether the container's noise is to be silenced
//      * @param block     the Block
//      * @return true if the container can be opened
//      */
//     boolean activateContainer(@NotNull Player player, boolean silent, @NotNull Block block);
// 
//     /**
//      * Closes the Player's currently open container silently, if necessary.
//      *
//      * @param player the Player closing a container
//      */
//     void deactivateContainer(@NotNull Player player);
// 
//     /**
//      * Checks if the container at the given coordinates is blocked.
//      *
//      * @param player the Player opening the container
//      * @param block  the Block
//      * @return true if the container is blocked
//      */
//     boolean isAnyContainerNeeded(@NotNull Player player, @NotNull Block block);
// 
//     /**
//      * Checks if the given block is a container which can be unblocked or silenced.
//      *
//      * @param block the BlockState
//      * @return true if the Block is a supported container
//      */
//     boolean isAnySilentContainer(@NotNull Block block);
// 
// }
// 
// Path: plugin/src/main/java/com/lishid/openinv/internal/IPlayerDataManager.java
// public interface IPlayerDataManager {
// 
//     /**
//      * Loads a Player for an OfflinePlayer.
//      * </p>
//      * This method is potentially blocking, and should not be called on the main thread.
//      *
//      * @param offline the OfflinePlayer
//      * @return the Player loaded
//      */
//     @Nullable Player loadPlayer(@NotNull OfflinePlayer offline);
// 
//     /**
//      * Creates a new Player from an existing one that will function slightly better offline.
//      *
//      * @return the Player
//      */
//     @NotNull Player inject(@NotNull Player player);
// 
//     /**
//      * Opens an ISpecialInventory for a Player.
//      *
//      * @param player the Player opening the ISpecialInventory
//      * @param inventory the Inventory
//      *`
//      * @return the InventoryView opened
//      */
//     @Nullable InventoryView openInventory(@NotNull Player player, @NotNull ISpecialInventory inventory);
// 
//     /**
//      * Convert a raw slot number into a player inventory slot number.
//      *
//      * <p>Note that this method is specifically for converting an ISpecialPlayerInventory slot number into a regular
//      * player inventory slot number.
//      *
//      * @param view the open inventory view
//      * @param rawSlot the raw slot in the view
//      * @return the converted slot number
//      */
//     int convertToPlayerSlot(InventoryView view, int rawSlot);
// 
// }
// 
// Path: api/src/main/java/com/lishid/openinv/internal/ISpecialEnderChest.java
// public interface ISpecialEnderChest extends ISpecialInventory {
// 
// }
// 
// Path: api/src/main/java/com/lishid/openinv/internal/ISpecialPlayerInventory.java
// public interface ISpecialPlayerInventory extends ISpecialInventory {
// 
// }


// Path: plugin/src/main/java/com/lishid/openinv/util/InternalAccessor.java
import com.lishid.openinv.internal.IAnySilentContainer;
import com.lishid.openinv.internal.IPlayerDataManager;
import com.lishid.openinv.internal.ISpecialEnderChest;
import com.lishid.openinv.internal.ISpecialPlayerInventory;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;

        for (Object object : params) {
            builder.append(object.getClass().getName()).append(", ");
        }
        builder.delete(builder.length() - 2, builder.length());

        String message = builder.append(']').toString();
        this.plugin.getLogger().warning(message);

        throw new IllegalArgumentException(message);
    }

    /**
     * Creates an instance of the IAnySilentContainer implementation for the current server version.
     *
     * @return the IAnySilentContainer
     * @throws IllegalStateException if server version is unsupported
     */
    public IAnySilentContainer getAnySilentContainer() {
        if (!this.supported) {
            throw new IllegalStateException(String.format("Unsupported server version %s!", this.version));
        }
        return this.anySilentContainer;
    }

    /**
     * Creates an instance of the IPlayerDataManager implementation for the current server version.
     *
     * @return the IPlayerDataManager
     * @throws IllegalStateException if server version is unsupported
     */
    public IPlayerDataManager getPlayerDataManager() {