// 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;
/*
 * Copyright (C) 2011-2020 lishid. All rights reserved.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, version 3.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

package com.lishid.openinv.util;


public class InternalAccessor {

    private final Plugin plugin;
    private final String version;
    private boolean supported = false;
    private IPlayerDataManager playerDataManager;
// 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;

/*
 * Copyright (C) 2011-2020 lishid. All rights reserved.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, version 3.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

package com.lishid.openinv.util;


public class InternalAccessor {

    private final Plugin plugin;
    private final String version;
    private boolean supported = false;
    private IPlayerDataManager playerDataManager;
    private IAnySilentContainer anySilentContainer;