Interface ViewableInventory

    • Method Detail

      • viewers

        Set<ServerPlayer> viewers()
        Gets the current viewers looking at this Inventory.
        Returns:
        The current viewers of this inventory
      • hasViewers

        boolean hasViewers()
        Checks for whether this Inventory currently has viewers.
        Returns:
        True if viewers are currently looking at this inventory
      • canInteractWith

        boolean canInteractWith​(ServerPlayer player)
        Gets whether the specified player can interact with this object.
        Parameters:
        player - the Player wishing to interact with this Inventory
        Returns:
        true if the Entity is able to interact with this Inventory